Dolphin86 Posted January 30, 2019 Group: Members Topic Count: 253 Topics Per Day: 0.06 Content Count: 701 Reputation: 16 Joined: 01/07/12 Last Seen: April 2 Share Posted January 30, 2019 (edited) 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 January 30, 2019 by dolphincute Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted January 30, 2019 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 30, 2019 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;} Quote Link to comment Share on other sites More sharing options...
Question
Dolphin86
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; },{},{}
Link to comment
Share on other sites
1 answer 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.