bimbi Posted August 30, 2012 Posted August 30, 2012 Is it poissible to increase the stats of a player via npc command like the item script do, i mean the right stats STR: 99 + 5 -> is it possible to increase the + 5 via npc command? Quote
EvilPuncker Posted August 30, 2012 Posted August 30, 2012 --------------------------------------- *statusup <stat>; This command will bump a specified stat of the invoking character up by one permanently. Stats are to be given as number, but you can use these constants to replace them: bStr - Strength bVit - Vitality bInt - Intelligence bAgi - Agility bDex - Dexterity bLuk - Luck --------------------------------------- *statusup2 <stat>,<amount>; This command will bump a specified stat of the invoking character up by the specified amount permanently. The amount can be negative. See 'statusup'. // This will decrease a character's Vit forever. statusup bVit,-1; --------------------------------------- Quote
bimbi Posted August 30, 2012 Author Posted August 30, 2012 statusup is not working, if you have max str for example, i want to increase the stats which were increased by item scripts Quote
EvilPuncker Posted August 30, 2012 Posted August 30, 2012 my bad, maybe this then: ---------------------------------------*setitemscript(<item id>,<"{ new item script }">{,<type>}); Set a new script bonus to the Item. Very useful for game events. You can remove an item's itemscript by leaving the itemscript argument empty. Returns 1 on success, or 0 on fail (item_id not found or new item script is invalid). Type can optionally be used indicates which script to set (default is 0): 0 - Script 1 - OnEquip_Script 2 - OnUnequip_Script Example: setitemscript 2637,"{ if(isequipped(2236)==0)end; if(getskilllv(26)){skill 40,1;}else{skill 26,1+isequipped(2636);} }"; setitemscript 2637,""; --------------------------------------- Quote
Emistry Posted August 31, 2012 Posted August 31, 2012 will be removed upon dead / time's up. cant stack with normal food usage.... sc_start SC_STRFOOD, <Time>, <Amount>; sc_start SC_AGIFOOD, <Time>, <Amount>; sc_start SC_VITFOOD, <Time>, <Amount>; sc_start SC_INTFOOD, <Time>, <Amount>; sc_start SC_DEXFOOD, <Time>, <Amount>; sc_start SC_LUKFOOD, <Time>, <Amount>; wont remove upon dead until time's up sc_start SC_FOOD_STR_CASH, <Time>, <Amount>; sc_start SC_FOOD_AGI_CASH, <Time>, <Amount>; sc_start SC_FOOD_DEX_CASH, <Time>, <Amount>; sc_start SC_FOOD_INT_CASH, <Time>, <Amount>; sc_start SC_FOOD_VIT_CASH, <Time>, <Amount>; sc_start SC_FOOD_LUK_CASH, <Time>, <Amount>; Quote
bimbi Posted August 31, 2012 Author Posted August 31, 2012 and without timelimit, it should be a bonus by a quest. Quote
Emistry Posted August 31, 2012 Posted August 31, 2012 if you want it to be timeless.....try use -1 as the time.....and use the cashfood script so that the effect wont dissapear upon dead. Quote
bimbi Posted August 31, 2012 Author Posted August 31, 2012 allright i will try thanks, it would be a good suggestion to add a script function like this to rathena Quote
dice4real Posted October 31, 2012 Posted October 31, 2012 Lutie lady's and Cashfood Wont Stack please Help... Quote
AnnieRuru Posted October 31, 2012 Posted October 31, 2012 try search for OnPCStatCalcEvent source modification that modification can increase stats without using an item and its permanent I start to see this modification is getting more useful Quote
Question
bimbi
Is it poissible to increase the stats of a player via npc command like the item script do, i mean the right stats
STR: 99 + 5 -> is it possible to increase the + 5 via npc command?
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.