Jump to content

Recommended Posts

Posted

Anyone have ?. I have for all other kind of pots and elixirs but not this.

I`m new in scripting and duno from where i can get WQHP(Warrior's Quick Healing Potion) item id :)

Need something like that:

 

HIDE="20"]//Character Status Checker
//Version 1.0
 
Call Status
 

FUNCTION Status
 
//For Debugging
DEFINE INT Debug 0
 
//Sleep Between Item Use Spam
DEFINE INT _SLEEP 250
 
//What Percent Before Using Pots
DEFINE INT LOWHP 95 //When To Use A Warrior's Quick Healing Potion
DEFINE INT HUNDRED 100 //Dont Change
 
//Dont Change - Used for Item ID
DEFINE INT WQHPID 0
 
//Dont Change - Used for Threshold Before Potting
DEFINE INT WQHP 0

//Dont Change - Used for Item Count
DEFINE INT _WQHP 0
 
//Dont Change - Get Stats
CP = LOWCP * CHAR_MAX_CP
CP = CP / HUNDRED
LC = MINCP * CHAR_MAX_CP
LC = LC / HUNDRED
HP = LOWHP * CHAR_MAX_HP
HP = HP / HUNDRED
LH = MINHP * CHAR_MAX_HP
LH = LH / HUNDRED
 
//Items To Use - Put Names Of Items To use Here
ITEM_GET_ID WQHPID "Warrior's Quick Healing Potion"
 
//Used for Debug Mode
DEFINE STRING _WQHPID "none"
 
//Used for Debug Mode
ITEM_GET_NAME _WQHPID "<&WQHPID&>"
 
//When Debug Mode Is On, Remaining Count Is Incorrect By 1, This Fixes That
DEFINE INT __WQHP 0
DEFINE INT ONE 1
 

//MAIN LOOP//
 WHILE ZERO == ZERO
 

//Item Count Check
ITEM_COUNT _WQHP "<&WQHPID&>"
 
//Proper Item Count Remaining For Debug Mode
__WQHP = _WQHP - ONE
 
IF CHAR_CUR_HP <= WQHP //Warrior's Quick Health Potion
 IF _HP > ZERO
 IF Debug == ONE
 PRINT_TEXT "Currently: <&CHAR_CUR_HP&> / <&CHAR_MAX_HP&> HP - Using <&_WQHPID&>"
 PRINT_TEXT "Used <&_WQHPID&> - Currently <&__WQHP&> Left."
 ENDIF
 USE_ITEM "<&WQHPID&>"
 ELSE
 PRINT_TEXT "Out of <&_WQHPID&>"
 ENDIF
 ENDIF
SLEEP "<&_SLEEP&>"
 
SLEEP 1000
 
WEND
RETURN VOID[/HIDE]

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