Jump to content
  • 0

Card Restriction


skymia

Question


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   4
  • Joined:  02/19/17
  • Last Seen:  

is there a script that restrict the usage of the card?

Example:

Assassin Cross Card the effect is enchant deadly poison but i want is the champion cannot use this card

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

9 hours ago, skymia said:

is there a script that restrict the usage of the card?

Example:

Assassin Cross Card the effect is enchant deadly poison but i want is the champion cannot use this card

everything is in doc/item_bonus.txt

TXT version:

Quote

4359,B_EREMES_CARD,Assassin Cross Card,6,20,,10,,,,,,,,4,,,,,{ if( Class == Job_Champion ) { end; } else { skill "ASC_EDP",5; },{},{}

SQL Version:

Quote

REPLACE INTO `item_db` VALUES (4359,'B_EREMES_CARD','Assassin Cross Card',6,20,NULL,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,4,NULL,NULL,NULL,NULL,'if( Class == Job_Champion ) { end; } else { skill \"ASC_EDP\",5; } ',NULL,NULL);

When Job_Champion equipped this card it won't work but other classes will worked on this effect.
if you want some class that you don't like the effect to be worked. Just by adding ||

Quote

if( Class == Job_Champion || Job_Novice || Job_Professor ) {....................

 

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