Jump to content
  • 0

Card Stacking Limit Script ( Willing to Pay )


Ahmad Rashidi

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  04/22/17
  • Last Seen:  

Hello , i have been searching for the entire forum about this script i wanted.
 

1st - I found from sir emistry http://rathena.org/board/topic/78767-card-effect-stack-limit/

 

but those link cannot be reach.

2nd- its from sir emistry too 

Quote

1.

use isequippedcnt


bonus bDelayRate,( -30 / isequippedcnt(4403) );

Please search the forum next time, similar questions has been asked and answered many times since the past.

 

2. 

custom source mod

but it didnt work for me.

3rd - its from annieruru http://www.eathena.ws/board/index.php?s=&showtopic=274457&view=findpost&p=1505595
the link cannot be reach too.

4th - i got this from somewhere i forgot already which post 

Quote

{ bonus3 bAutoSpell,"WZ_STORMGUST",(2,20/ isequipped(4318)); bonus2 bAddEff,Eff_Freeze,(2000/isequipped( 4318)); },{},{}

but still didnt work for me , the stormy knight card still can be use more than 2

5th- Lastly i found this one i was hoping this will work

//callfunc "Card";

function	script	Card	{
setarray .Card[0],25150,25151,25152,25153,25154,25155,25156,25157,25158,25159,25160,25161,25162,25163,25164,25165,25166,25167,25168,25169,25170,25171,25172,25173,25174;
for( set .@i,0; .@i<getarraysize(.Card); set .@i,.@i+1 ) {
	if ( isequipped(.Card[.@i]) == 1 ) {
		set @Card,@Card+1;
		if ( @Card > 2){
		dispbottom "You can't Wear more than 2 same Card at the same time.";
		set @Card,0;
		nude;
		}
	}
}
end;
}

but unfortunately it still didnt work and i have an error on this script that i couldnt fix it


So, just like the title , im willing to pay to a working script which is stack card limit :
Example if the user equip more than 2 kiel card. the equip that compound with the card will be unequip and also there will be a message at the chatlog instead of no effect that will confuse its working or not.
If anyone interest please do contact me [email protected]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

8 minutes ago, Aisha said:

4403,Kiel_Card,Kiel-D-01 Card,6,20,,10,,,,,,,,769,,,,,{ if(isequipped(4403) == 1){bonus bDelayRate,-30;} },{ if(isequipped(4403) > 1){ message strcharinfo(0),"You can only equip 1x "+getitemname(4403)+"! Additional card(s) has been disabled."; } },{}

What this does:

  • Effect only activates if there is one card equipped.
  • If more than one card is equipped, a notice will pop up for the user notifying them that other cards will have no effect.

Note:

  • Please test, this is untested. Also to anyone who is better at coding than me, please enlighten us if this would work or not xD

this should work fine


also looking at the codes 2,3 and 5 should also work..... so my bets are on @Ahmad Rashidi making mistakes in implementing them



Edit:
correction it will never return > 1
 

*isequipped(<id>{,<id>{,<id>{,<id>}}})

This function will return 1 if the invoking character has all of the item
IDs given equipped (if card IDs are passed, then it checks if the cards are
inserted into slots in the equipment they are currently wearing). Theoretically
there is no limit to the number of items that may be tested for at the same time.
If even one of the items given is not equipped, 0 will be returned.

    // (Poring,Santa Poring,Poporing,Marin)
    if (isequipped(4001,4005,4033,4196)) mes "Wow! You're wearing a full complement of possible poring cards!";
    // (Poring)
    if (isequipped(4001)) mes "A poring card is useful, don't you think?";

The function was meant for item scripts to support the cards released by Gravity
in February 2005, but it will work just fine in normal NPC scripts.

 

 

try replacing it with 

isequippedcnt(4403);

 

Edited by Stolao
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  06/27/17
  • Last Seen:  

4403,Kiel_Card,Kiel-D-01 Card,6,20,,10,,,,,,,,769,,,,,{ if(isequippedcnt(4403) == 1){bonus bDelayRate,-30;} },{ if(isequippedcnt(4403) > 1){ message strcharinfo(0),"You can only equip 1x "+getitemname(4403)+"! Additional card(s) has been disabled."; } },{}

What this does:

  • Effect only activates if there is one card equipped.
  • If more than one card is equipped, a notice will pop up for the user notifying them that other cards will have no effect.

Note:

  • Please test, this is untested. Also to anyone who is better at coding than me, please enlighten us if this would work or not xD
Edited by Aisha
Changed isequipped to isequippedcnt
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  06/27/17
  • Last Seen:  

Thanks, corrected the script above.

Edited by Aisha
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...