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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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