Jump to content
  • 0
Sign in to follow this  
Shiro

Item Restriction

Question

Hello, how do you make it that only one item will take effect if the user wears the same item? For example, you can't equip two megingjards, even if you equip two of them only one should take effect. And also, if possible you can do that with other equips too, like you can't equip megingjard + brisingamen, only one would take effect. Thanks

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You can use

isequippedcnt

 

Like this?

{
	Id: 2629
	AegisName: "Magingiorde"
	Name: "Megingjard"
	Type: "IT_ARMOR"
	Buy: 20
	Weight: 8000
	Def: 2
	Loc: "EQP_ACC"
	EquipLv: 94
	Refine: false
	Script: <"
		if (isequippedcnt(2629)<2) {	
			bonus bStr,40;
			bonus bMdef,7;
		}
	">
},

 

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, vBrenth said:

 

isequippedcnt


isequippedcnt

 

Like this?

{ Id: 2629 AegisName: "Magingiorde" Name: "Megingjard" Type: "IT_ARMOR" Buy: 20 Weight: 8000 Def: 2 Loc: "EQP_ACC" EquipLv: 94 Refine: false Script: <" if (isequippedcnt(2629)<2) { bonus bStr,40; bonus bMdef,7; } "> },


{
	Id: 2629
	AegisName: "Magingiorde"
	Name: "Megingjard"
	Type: "IT_ARMOR"
	Buy: 20
	Weight: 8000
	Def: 2
	Loc: "EQP_ACC"
	EquipLv: 94
	Refine: false
	Script: <"
		if (isequippedcnt(2629)<2) {	
			bonus bStr,40;
			bonus bMdef,7;
		}
	">
},

 

Thanks for this. I think I had a different of way of doing this with rathena but this seems much easier.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.