Yonko Posted June 26, 2013 Group: Members Topic Count: 166 Topics Per Day: 0.03 Content Count: 789 Reputation: 50 Joined: 04/16/12 Last Seen: July 8, 2022 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted July 2, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 4 hours ago Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted July 2, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: 20 hours ago Share Posted July 2, 2013 1229,Mama's_Knife............,{.... },{ if( isequipped(1230) ) nude; },{} 1230,House_Auger............,{.... },{ if( isequipped(1229) ) nude; },{} Quote Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.