Jump to content

Create Healthstones (warlock fightclass)


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
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

 

Link to comment
Share on other sites

  • 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");");
        }
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...