function onUse(cid, item, fromPosition, target, toPosition)
local storageplayer = getPlayerStorageValue(cid, 41111)
local criatura = "Demon"
if storageplayer == 1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Noo.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Demon!")
Game.createMonster(criatura, getCreaturePosition(cid))
criatura:setMaster(player)
position:sendMagicEffect(CONST_ME_MAGIC_RED)
return true
end
end
local storageplayer = getPlayerStorageValue(cid, 41111)
local criatura = "Demon"
if storageplayer == 1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Noo.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Demon!")
Game.createMonster(criatura, getCreaturePosition(cid))
criatura:setMaster(player)
position:sendMagicEffect(CONST_ME_MAGIC_RED)
return true
end
end