milbradt
New Member
- Joined
- Dec 25, 2011
- Messages
- 177
- Solutions
- 1
- Reaction score
- 4
Example +-... =S
Code:
local potion = {
[1111] = {
damage = 850,
def = 450
},
[1112] = {
damage = 600,
def = 500
}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if toPosition:getTile() then
if itemEx.potion[getItemById(potion.damage)] > item.potion[getItemById(potion.damage)] then
toPosition:sendMagicEffect(11)
else
toPosition:sendMagicEffect(32)
end
end
return true
end