What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

[PB] Use hearthstone

Gideonnn

New Member
Joined
Apr 7, 2012
Messages
94
Reaction score
0
If I look into other profiles of PB, I never see that someone actually calls for HS use. I want to make some profile that forces it if not in SW, is there a simple way to do this?
Also, can I find more documentation for PB than just the help file? Because I have no clue what is possible, or how to do it.
 
In custom string and declaration you can call any C# code.
For example to use HS you can do the following:
PHP:
Lua.DoString("UseHearthstone()");
 
In custom string and declaration you can call any C# code.
For example to use HS you can do the following:
PHP:
Lua.DoString("UseHearthstone()");

Yeah, I use nearly the same:

PHP:
<CustomAction Code="Lua.DoString("UseItemByName(6948)");" />

If you want the code for hs if not in sw just use

If Me.ZoneID != 1519
then what inrego posted and so on.
 
Last edited:
After more than 20 profiles searched with 'hearthstone' i found someone sent a string to wow, but via a macro funtion. So it just sends "/use hearthstone". Is there any difference with this? Also, someone told me that i should avoid using lua as much as possible, and use built in functions. But I couldnt find a Me.Hearthstone() function or something similiar.
 
After more than 20 profiles searched with 'hearthstone' i found someone sent a string to wow, but via a macro funtion. So it just sends "/use hearthstone". Is there any difference with this? Also, someone told me that i should avoid using lua as much as possible, and use built in functions. But I couldnt find a Me.Hearthstone() function or something similiar.
That's true, but for a single use item, it doesn't matter. It is possible to write a C# method to use HS, but it'd be more trouble than using the lua I wrote before. It's not that bad to use lua a single time for using the HS.
But if you do choose to use lua, than the way I wrote before is best. buzzerbeater's way doesn't work if someone have an alternative HS (innkeeper's daughter), and the way you wrote doesn't work if people are using another language client.
 
Just out of curiosity... what's wrong with using lua? Why is it advisable not to do so?
 
Just used the Hearthstone method together with the 'Wait until Condition' function, works perfect :) But I miss one thing, how can I check if the HS has cooldown?
 
Just out of curiosity... what's wrong with using lua? Why is it advisable not to do so?
Nothing really as long as its short and not returning a large amount of data, HB uses it allot internally. If you need to execute a large lua script or return allot of data then split it up into smaller junks and run it inside a framelock.
Lua uses a frame in wow but so do allot of the other HB api.
 
Back
Top