Jump to content
  • 0

Please Help Me ( Item Script )


Dolphin86

Question


  • Group:  Members
  • Topic Count:  253
  • Topics Per Day:  0.06
  • Content Count:  701
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

i am trying to add item script in item_db.txt, but somehow when i test it kinda fail, i tested by making the item +5, it suppose to +20 INT, but in my char it dint add up..

32024,Blue_Butterfly_Wings,Blue Butterfly Wings,4,,,100,,5,,0,0xFFFFFFFF,7,2,256,,0,1,2001,{ skill "AL_HEAL",5; skill "AL_TELEPORT",1; if(getrefine()>9) {bonus bDex,20;} if(getrefine()>7) { bonus bVit,20;} if(getrefine()>5) {bonus bInt,20;}},{},{}

 

also is this correct??

32022,Blue_Butterfly_Wings8,Blue Butterfly Wings Tier 8,4,,,100,,1,,0,0xFFFFFFFF,7,2,4096,,0,1,2000,{ bonus2 bAddRace,RC_DemiHuman,55; bonus2 bAddRace,RC_Player,55; },{},{}

 

Edited by dolphincute
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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

if(getrefine()>5) {bonus bInt,20;}

means if refine is equal to 6 or above

if you want it 5 or above, should use >=

if(getrefine()>=5) {bonus bInt,20;}

 

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