Jump to content
  • 0

Str, agi or dex increase like itemscript


Question

Posted

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

Posted

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

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

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

Posted

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

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

Posted

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

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...