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

WiLDTuRTLE

Member
Joined
Feb 26, 2011
Messages
478
Reaction score
5
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isInArray({2433,7438,2390,2400,2408,2446}, itemEx.itemid) then
		[COLOR="#FF0000"]doItemSetAttribute(itemEx.uid, "protection", fire, 100)[/COLOR]
           doItemSetAttribute(itemEx.uid, "description", " 100% protection to fire. It Belongs To ".. getCreatureName(cid) .. ".")
			doSendMagicEffect(toPosition,30)
			doRemoveItem(item.uid)
	else
		doPlayerSendCancel(cid, "Sorry, not possible.")
	end
return true
end

Im trying to make it work >_< but i cant find the right line ..also trying to make one that add 30% of current hp [when equip add 30% of maxhealth to player untill he unequip

tyty

- - - Updated - - -

bamp
 
I wish everything would work like this:
doItemSetAttribute(item.uid, "super_cool_custom_system", true)
 
Back
Top