Jump to content

Recommended Posts

Posted

guys i tried make a script with MANA POTIONS and CP POTIONS.. but, about mana potions all OK, also about CP potions, the script doesn't respect < = >.. it use every 2000 mls cp potions, if i'm FULL CP too.. what can be the problem? or maybe, someone have this script rdy and can be post it here? thx..

Posted

Unless it was added in a very recent version, walker scripts never had CP variables

 

which is why your script won't work.

 

 

An available option is to do it at packet level.

catch StatusUpdate(0x0E) packets, look for CurrentCP/MaxCP fields (0x21 and 0x22 respectively)

If the CP% is below whatever threshold you assign, you have two options to actually use the CP pots

 

By getting the object ID of your CP potions from the ItemList(0x1B) packet and sending a UseItem with that,

or if you want to make it simpler, you may do a cheap walker script hack, by crafting a StatusUpdate for say, SP, with a set value.

 

Then in walker script, you CharStatus(SP,==,yourvalue){useitem ...

 

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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..