• 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!

Lua doItemSetAttribute, absorbpercent issues

sestorme

Member
Joined
Dec 9, 2011
Messages
272
Reaction score
6
Location
Birmingham, UK
Lua:
local weapon2 = getPlayerSlotItem(cid, CONST_SLOT_ARMOR)

doItemSetAttribute(weapon2.uid, "absorbpercentmagic", "90")

Is this even possible to be made? At least that way?

Just to be clear, desired item is added to movements, just in case.

I also tried adding this to the item code in items.xml;

Code:
<attribute key="absorbPercentFire" value="0" />

and removing it to see if that helps. Of course no effect at all.

Also relog does no desired effect.
 
you have to add a line in movements

Code:
	<movevent type="Equip" itemid="1" slot="armor" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="1" slot="armor" event="function" value="onDeEquipItem"/>
 
Need to add absorbpercent using doItemSetAttribute, however, I just found out that this one of those few attributes that is not possible to be added, need to be added into sources first.
 
Need to add absorbpercent using doItemSetAttribute, however, I just found out that this one of those few attributes that is not possible to be added, need to be added into sources first.

i have searched alot of times on "doItemSetAttribute"
i needed to use the ather attr in this function " doItemSetAttribute"
it has to be c++ edit and there is no full working without bugs system to do it
so i gave up xD
 
Back
Top