Jump to content
  • 0

Kiel combo card


AllHailToTheKing

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

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.

 

 

 

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


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


4403,Kiel_Card,Kiel-D-01 Card,6,20,,10,,,,,,,,769,,,,,{if(isequippedcnt(4403)>1) end; bonus bDelayRate,-30; },{},{}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

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 by AllHailToTheKing
Link to comment
Share on other sites


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

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 ring

and the rate only floats around with kiel card, so just do a division on the card itself is enough

Edited by AnnieRuru
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

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 ring

and 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
Link to comment
Share on other sites


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

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 =/

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

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 by AllHailToTheKing
Link to comment
Share on other sites


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

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 =/

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

 

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

Link to comment
Share on other sites


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

lol :ani_swt3:

 

xxxx,....,{ if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30; },{},{}
just put them in a single line .... :ani_swt3:

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

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

lol :ani_swt3:

 

xxxx,....,{ if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30; },{},{}
just put them in a single line .... :ani_swt3:

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

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