Jump to content
  • 0

this kind of item script


Question

Posted

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

Posted

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;
  • Upvote 1
Posted


1229,Mama's_Knife............,{.... },{ if( isequipped(1230) ) nude; },{}

1230,House_Auger............,{.... },{ if( isequipped(1229) ) nude; },{}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...