maynard Posted April 2, 2014 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Share Posted April 2, 2014 An array of custom head gear equipments ex: 6900,6901,6902,6903 Lord knight card can not be compounded or disabled the effect of the card on my custom head gear if you insert it. You can compound the Lord knight card as normal on other head gear except from the Head gear that listed in the array. Then for easy use maybe a callfunc will do. 4357,,,,,,,,,{callfunc "prevent_compound";skill "LK_BERSERK",1; bonus bMaxHPrate,-50;}{}{} Quote Link to comment Share on other sites More sharing options...
Yuka Posted April 2, 2014 Group: Members Topic Count: 100 Topics Per Day: 0.02 Content Count: 333 Reputation: 7 Joined: 03/01/14 Last Seen: May 6, 2020 Share Posted April 2, 2014 I have no idea how to get the id of the item that you try to put a card in, if I knew I could do it for you. A work around would be to make two versions of the item, one with a slot one without a slot and then make a NPC that "cards" your headgear, thus gives you the carded item back and removes your card and unslotted headgear. But I'm pretty sure there is a direct way by getting the id of the item you want to put the card in. Quote Link to comment Share on other sites More sharing options...
sandbox Posted April 5, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted April 5, 2014 { if(!isequipped(6900,6901,6902,6903)) { skill "LK_BERSERK",1; bonus bMaxHPrate,-50 } } Try Quote Link to comment Share on other sites More sharing options...
maynard Posted April 5, 2014 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Author Share Posted April 5, 2014 sir your script needs to wear all of the id above to disable the berserk skill, what I want is if you input the card in 1 of them the card will be disabled. your script 6900,6901,6902 = must put on all of them to disabled the card I want 6900,0000,0000 = If I put the card in 6900 the card will be disabled even though I equip other head gear. Actually I already have the script created in the her****s and working as intended but not exactly like I wanted. Its not an array and I have to input manually to all the ID I want to disabled. Here is the script for those who want it.credits to evilpuncker callfunc "prevent",1,cardIDhere;function script prevent {if( isequippedcnt( getarg(1) ) > 0 ) { successremovecards getarg(0); end;} Quote Link to comment Share on other sites More sharing options...
sandbox Posted April 5, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted April 5, 2014 Nope, read the bold line. That's why I placed a ! on the expression, though I admit i've not tested it, it should work properly. >_> 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. Quote Link to comment Share on other sites More sharing options...
Question
maynard
Link to comment
Share on other sites
4 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.