Jump to content

SCRIPT : CP + MANA


Geovision

Recommended Posts

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

Link to comment
Share on other sites

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

 

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.
Note: Your post will require moderator approval before it will be visible.

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.



×
×
  • Create New...