Yonko Posted June 26, 2013 Posted June 26, 2013 Hi,I'm requesting this kind of item script, let's say assassin cross wearing 2 same weapons(main gauche) how can i restrict 2 same weapons on it? like it will become (maingauche and knife) so it will be able. Quote
Patskie Posted July 2, 2013 Posted July 2, 2013 Like this? set the name of item you want to restrict. // ID,AegisName,Name,Type,Buy,Sell,Weight,ATK,DEF,Range,Slots,Job,Upper,Gender,Loc,wLV,eLV,Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script } 1229,Mama's_Knife,Kitchen Knife,4,20,,500,75,,1,0,0x028F5EEE,7,2,2,4,36,1,1,{ bonus bCritical,30; bonus3 bAddMonsterDropItem,517,RC_Brute,5000; },{},{} 1230,House_Auger,Ice Pick,4,20,,600,80,,1,0,0x028F5EEE,7,2,2,4,36,1,1,{ bonus bDefRatioAtkRace,RC_Boss; bonus bDefRatioAtkRace,RC_NonBoss; },{},{} setarray .@restricted$[0], "Kitchen Knife", "Ice Pick"; for ( .@i = 0; .@i < getarraysize(.@restricted$); .@i++ ) { if ( getequipname(3) == .@restricted$[.@i] && getequipname(4) == .@restricted$[.@i] ) { nude; message strcharinfo(0), "You cannot use 2 same weapons at the same time"; end; } } end; 1 Quote
Emistry Posted July 2, 2013 Posted July 2, 2013 1229,Mama's_Knife............,{.... },{ if( isequipped(1230) ) nude; },{} 1230,House_Auger............,{.... },{ if( isequipped(1229) ) nude; },{} Quote
Question
Yonko
Hi,
I'm requesting this kind of item script, let's say assassin cross wearing 2 same weapons(main gauche) how can i restrict 2 same weapons on it? like it will become (maingauche and knife) so it will be able.
2 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.