Jump to content

Recommended Posts

I've been trying to automate creating healthstones and use them, with no luck...
The bot simply wont create them.
Has anyone managed this?


[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - NeedToRun = false - timer
[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - NeedToRun time to execute: 0
[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - NeedToRun = false - timer
[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - NeedToRun time to execute: 0
[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - NeedToRun = false - timer
[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - NeedToRun time to execute: 0
[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - NeedToRun time to execute: 47
[F] 11.03.07 - [Spell] Cast Create Healthstone (Minor) (Create Healthstone (Minor))
[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - Run() time to execute: 203
[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - NeedToRun = false - timer
[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - NeedToRun time to execute: 0
[D] 11.03.07 - [FightClass] Create Healthstone (Minor) - NeedToRun = false - timer
 

Link to comment
https://wrobot.eu/forums/topic/5070-create-healthstones-warlock-fightclass/
Share on other sites

I managed to get this to work by using lua script. Currently using the CastSpell() in combination with GetSpellTabInfo()
CastSpellByName is not working for Healthstones for some odd reason (Elysium server)

name,texture,offset,numSpells = GetSpellTabInfo(3); CastSpell((offset+1),"spell");

 

http://wowprogramming.com/docs/api/CastSpell
http://wowprogramming.com/docs/api/GetSpellTabInfo

 

  • 4 years later...

@Droidz: I cant get this to work can you suggest how it should be done? Im writing a C# fight class. need to know what to put here. 

 

        if(ItemsManager.GetItemCountByNameLUA("Minor Healthstone")==0 && ItemsManager.GetItemCountByNameLUA("Soul Shard")>=1 && CreateHealthstone.KnownSpell && CreateHealthstone.IsSpellUsable){
            //CreateHealthstone.Launch();
            //wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(6201, "target");
            //Lua.LuaDoString("CastSpell((offset+1),"spell");");
        }
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...