• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

onEquip requirement

Xagul

deathzot.net
Joined
Jun 30, 2008
Messages
1,295
Solutions
3
Reaction score
1,043
Hello, and thank you for taking a look at my question. I am going to try to keep this as simple and easy as possible so here we go.

I currently have level requirements for onEquip functions such as rings so that attributes will work (absorbPercentAll) this is how I currently have it done:

Code:
<movevent type="Equip" itemid="2214" level="50" slot="ring" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="2214" slot="ring" event="function" value="onDeEquipItem"/>

I would like to also add a requirement of a storage value but I can't seem to think of a way to do this seeing as you cant have 2 movements for one item >.< what I am trying to do in the end is make sumthin like this...

item - Ring of Healing
lvl requirement - 50
storage requirement - 1

If anyone can think of a way to do this it would be great!
 
Yea, but that is a script, and by using a script you cant use

Code:
event="function" value="onEquipItem"

Or am I wrong?
 
@Cykotitan

Yea my server is currently running 0.4 can you explain how I would go about using this:

Code:
callFunction(cid, item, slot)
 
Because when you use:

Code:
event="script" value="equip_lalala.lua"

The attributes on the item such as:

Code:
<attribute key="absorbPercentAll" value="20"/>

Will not work, you need to use:

Code:
event="function" value="onEquipItem"

Or what Cykotitan was talking about possibly you can use:

Code:
callFunction(cid, item, slot)
 
Back
Top