Jump to content
  • 0

Str, agi or dex increase like itemscript


bimbi

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   1
  • Joined:  01/15/12
  • Last Seen:  

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?

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

---------------------------------------

*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;

---------------------------------------

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   1
  • Joined:  01/15/12
  • Last Seen:  

statusup is not working, if you have max str for example, i want to increase the stats which were increased by item scripts

scaled.php?server=341&filename=screeneathena081.jpg&res=landing

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

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,"";

---------------------------------------

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   1
  • Joined:  01/15/12
  • Last Seen:  

Thanks i will try :)

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   1
  • Joined:  01/15/12
  • Last Seen:  

and without timelimit, it should be a bonus by a quest.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   1
  • Joined:  01/15/12
  • Last Seen:  

allright i will try thanks, it would be a good suggestion to add a script function like this to rathena

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   1
  • Joined:  10/18/12
  • Last Seen:  

Lutie lady's and Cashfood Wont Stack please Help... /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

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.

Guest
Answer this question...

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