Jump to content
  • 0

this kind of item script


Yonko

Question


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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

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

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...