Jump to content
  • 0

Item script.


Snap

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.01
  • Content Count:  186
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

Can anyone give me a script for the following?

Request # 1

Every Refine it gains 2% Resist to Demi Human

Request #2

If Upper Gear + Lower Gear + Mid Gear Equipt = Special Bonus +5 Alltstats and allows to use bash skill

Thanks! :)

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

if(getrefine()) { bonus2 bSubRace,RC_DemiHuman,2*getrefine(); }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   1
  • Joined:  03/06/12
  • Last Seen:  

Else Choice :)

Request # 1 : Resist Human Upto 20%

bonus2 bSubRace,RC_DemiHuman,getrefine()*2;

Request # 2

if(isequipped(Item_ID) && isequipped(Item_ID) && isequipped(Item_ID)) { bonus bAllStats,5; }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

Request # 2

if(isequipped(Item_ID) && isequipped(Item_ID) && isequipped(Item_ID)) { bonus bAllStats,5; }

if(isequipped(Item_ID) && isequipped(Item_ID) && isequipped(Item_ID)) { bonus bAllStats,5; skill "SM_BASH",(skill_lvl); }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

if(getequipid(1)>0 && getequipid(9)>0 && getequipid(10)>0){......}

I think to use getequipid would be better

Edited by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

if(getequipid(1)>0 && getequipid(9)>0 && getequipid(10)>0){......}

I think to use getequipid would be better

I think this would be better too o.O

*isequipped(<id>{,<id>{,<id>{,<id>}}})

This function will return 1 if the invoking character has all of the item

IDs given equipped (if card IDs are passed, then it checks if the cards are

inserted into slots in the equipment they are currently wearing). Theoretically

there is no limit to the number of items that may be tested for at the same time.

If even one of the items given is not equipped, 0 will be returned.

// (Poring,Santa Poring,Poporing,Marin)

if (isequipped(4001,4005,4033,4196)) mes "Wow! You're wearing a full complement of possible poring cards!";

// (Poring)

if (isequipped(4001)) mes "A poring card is useful, don't you think?";

The function was meant for item scripts to support the cards released by Gravity

in February 2005, but it will work just fine in normal NPC scripts.

if(isequipped(<id1>,<id2>,<id3>) { bonus bAllStats,5; skill "SM_BASH",(<skill_lvl>); }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.01
  • Content Count:  186
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

Okay about the request number. First i got a 10% Demi Human Resists. As i enhance it It will add 2%

Example : +1 Cap ( 10% + 2% Refine Bonus = 12% Demihuman)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

bonus2 bSubRace,RC_DemiHuman,10+(getrefine()*2);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.01
  • Content Count:  186
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

Thanks guys!

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