Jump to content
  • 0

Max card in Headgear!


Phantom Of Rogue-Gon

Question


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

hello, 

the max use for kiel card 2 pcs in headgear or mid or low . if 3 kiel in alt Q  cant use 

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  


function script Sample {

if( isequippedcnt( 4403 ) > 2 ){

message strcharinfo(0),"Cant Wear More than 2 Kiel Cards.";

nude;

}

return;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

hello, 

the max use for kiel card 2 pcs in headgear or mid or low . if 3 kiel in alt Q  cant use 

Try this one :

if( isequippedcnt( 4403 ) > 2 ) { // do some script if kiel is more than 2 }
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  764
  • Reputation:   220
  • Joined:  11/14/11
  • Last Seen:  

You have to do some dirty math to achieve this.

Change the bonus script from

bonus bDelayRate,-30;

to

set .@cnt, isequippedcnt(4403); bonus bDelayRate, (.@cnt > 2) ? -1 * (30 / .@cnt * 2) : -30;

 

Now the first to cards will have the full effect and every additional card will be ignored. There are some cases where more than two cards will nerf the bonus:

 

Amount of cards | Bonus value

1 | -30

2 | -60

3 | -60

4 | -60

5 | -60

6 | -60

7 | -56

8 | -56

9 | -54

10 | -60

11 | -55

12 | -60

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

copy then paste to itemdb?

Yes

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Try this one :

set .@cnt, isequippedcnt(4403); bonus bDelayRate, (.@cnt >= 2) ? -60 : -30;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

you have another script master like card limit 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

you have another script master like card limit 

Like this? 

http://rathena.org/board/topic/56757-requesting-for-item-script/?p=67720

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

yup



function script Sample {
if( isequippedcnt(  4403,4403 ) > 2 ){
message strcharinfo(0),"Cant Wear More than 2 LHZ Card.";
nude;
}
return;
}

like this?

 

item db

 callfunc "Sample"; 
Edited by Phantom Of Rogue-Gon
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...