AllHailToTheKing Posted January 8, 2014 Posted January 8, 2014 how to make this item script . Thanks in advance rAthena, 1 kiel -works. 2 kiel - doesnt work.1 kiel 1er -works.1 kiel 2 er - works.2 kiel 1er - doesn't work sorry if im in a wrong section, im not sure where to post this. Quote
QQfoolsorellina Posted January 8, 2014 Posted January 8, 2014 4403,Kiel_Card,Kiel-D-01 Card,6,20,,10,,,,,,,,769,,,,,{if(isequippedcnt(4403)>1) end; bonus bDelayRate,-30; },{},{} Quote
AllHailToTheKing Posted January 9, 2014 Author Posted January 9, 2014 (edited) EDIT: i saw this error when i restart my server script error on db/pre-re/item_db.txt line 2031 parse_line: expect command, missing function name or calling undeclared function * 2031 : { '''if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -15 / i already fix it. with this 'if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30;' where id = 4403; source: http://www.eathena.ws/board/lofiversion/index.php/t273438.html up anyone? Edited January 9, 2014 by AllHailToTheKing Quote
AnnieRuru Posted January 9, 2014 Posted January 9, 2014 (edited) xxxx,....,{ if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30; },{},{} I think your request is different from that topic ... wait I write out the formula ... the ' parenthesis is meant for sql query if you are using TXT, there's no need for the parenthesis EDITED: xxxx,....,{ bonus bDelayRate, -30 / isequippedcnt(4403); },{},{}since you said your condition doesn't have anything to do with expert ringand the rate only floats around with kiel card, so just do a division on the card itself is enough Edited January 9, 2014 by AnnieRuru 1 Quote
AllHailToTheKing Posted January 10, 2014 Author Posted January 10, 2014 xxxx,....,{ if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30; },{},{} I think your request is different from that topic ... wait I write out the formula ... the ' parenthesis is meant for sql query if you are using TXT, there's no need for the parenthesis EDITED: xxxx,....,{ bonus bDelayRate, -30 / isequippedcnt(4403); },{},{}since you said your condition doesn't have anything to do with expert ringand the rate only floats around with kiel card, so just do a division on the card itself is enough actually it has something to do with expert ring. because 2 kiel wont work if they have no 2 expert ring. 1 kiel -works. 2 kiel - doesnt work. 1 kiel 1er -works. 1 kiel 2 er - works. 2 kiel 1er - doesn't work Quote
AnnieRuru Posted January 10, 2014 Posted January 10, 2014 I list out all possible combination :- 0 keil 0 er - unknown 0 keil 1 er - unknown 0 keil 2 er - unknown 1 keil 0 er - work 1 keil 1 er - work 1 keil 2 er - work 2 keil 0 er - doesn't work 2 keil 1 er - doesn't work 2 keil 2 er - unknown please fill in the blank where it is unknown as you can see, except you didn't state the 2 keil 2 er, so I guess it going to be doesn't work thus my script on post#4 is correct in that topic 0 keil 0 er - work 0 keil 1 er - work 0 keil 2 er - work 1 keil 0 er - work 1 keil 1 er - work 1 keil 2 er - work 2 keil 0 er - only 1 card in effect 2 keil 1 er - only 1 card in effect 2 keil 2 er - work which is different from what you said well anyway, I think you already know how to fix it, just remove the parenthesis up to you want to use which script =/ 1 Quote
AllHailToTheKing Posted January 10, 2014 Author Posted January 10, 2014 (edited) I list out all possible combination :- 0 keil 0 er - unknown 0 keil 1 er - unknown 0 keil 2 er - unknown 1 keil 0 er - work 1 keil 1 er - work 1 keil 2 er - work 2 keil 0 er - doesn't work 2 keil 1 er - doesn't work 2 keil 2 er - unknown please fill in the blank where it is unknown as you can see, except you didn't state the 2 keil 2 er, so I guess it going to be doesn't work thus my script on post#4 is correct in that topic 0 keil 0 er - work 0 keil 1 er - work 0 keil 2 er - work 1 keil 0 er - work 1 keil 1 er - work 1 keil 2 er - work 2 keil 0 er - only 1 card in effect 2 keil 1 er - only 1 card in effect 2 keil 2 er - work which is different from what you said well anyway, I think you already know how to fix it, just remove the parenthesis up to you want to use which script =/ 0 keil 0 er - no effect 0 keil 1 er - 1 expert ring effect 0 keil 2 er - 2 expert ring effect 1 keil 0 er - kiel card effect 1 keil 1 er - 1kiel card and expert ring effect 1 keil 2 er - 1 kiel and 2 expert ring effect 2 keil 0 er - 1 kiel card effect only 2 keil 1 er - effect is 1 kiel and 1 ER only 2 keil 2 er - work both 2 kiel and 2 ER Thanks annie . Edited January 10, 2014 by AllHailToTheKing Quote
AnnieRuru Posted January 10, 2014 Posted January 10, 2014 0 keil 0 er - no effect 0 keil 1 er - 1 expert ring effect 0 keil 2 er - 2 expert ring effect 1 keil 0 er - kiel card effect 1 keil 1 er - 1kiel card and expert ring effect 1 keil 2 er - 1 kiel and 2 expert ring effect 2 keil 0 er - 1 kiel card effect only 2 keil 1 er - effect is 1 kiel and 1 ER only 2 keil 2 er - work both 2 kiel and 2 ER lol if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30;same to that topic =/... haha our discussion turn around into a circle =/ 1 Quote
AllHailToTheKing Posted January 12, 2014 Author Posted January 12, 2014 0 keil 0 er - no effect 0 keil 1 er - 1 expert ring effect 0 keil 2 er - 2 expert ring effect 1 keil 0 er - kiel card effect 1 keil 1 er - 1kiel card and expert ring effect 1 keil 2 er - 1 kiel and 2 expert ring effect 2 keil 0 er - 1 kiel card effect only 2 keil 1 er - effect is 1 kiel and 1 ER only 2 keil 2 er - work both 2 kiel and 2 ER lol if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30;same to that topic =/... haha our discussion turn around into a circle =/ if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30; this will be the item script? look like npc script to me. sorry for being noob. thanks annie Quote
AnnieRuru Posted January 12, 2014 Posted January 12, 2014 lol xxxx,....,{ if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30; },{},{}just put them in a single line .... actually, do you know you can always use *callfunc script command in a item to call for a npc script, it works with item database *bonus only doevent/addtimer doesn't work though 1 Quote
AllHailToTheKing Posted January 13, 2014 Author Posted January 13, 2014 lol xxxx,....,{ if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30; },{},{}just put them in a single line .... actually, do you know you can always use *callfunc script command in a item to call for a npc script, it works with item database *bonus only doevent/addtimer doesn't work though Thank you bigtime ! you are one of the best around here Quote
Question
AllHailToTheKing
how to make this item script . Thanks in advance rAthena,
1 kiel -works.
2 kiel - doesnt work.
1 kiel 1er -works.
1 kiel 2 er - works.
2 kiel 1er - doesn't work
sorry if im in a wrong section, im not sure where to post this.
10 answers 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.