--//Script 1--
function onUse(cid, item, fromPosition, itemEx, toPosition)
if not getPlayerLearnedInstantSpell(cid, "NOME_DA_SPELL") then
doPlayerLearnInstantSpell(cid, "NOME_DA_SPELL")
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você aprendeu a spell NOME_DA_SPELL.")
return TRUE
else
return FALSE
end
end
--//Script 2--
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config = {
{name='Demon', pos={x=, y=, z=}},
{name='Troll', pos={x=, y=, z=}},
}
for i, v in pairs(config) do
doCreateMonster(v.name, v.pos)
doSendMagicEffect(v.pos, CONST_ME_TELEPORT)
end
return TRUE
end
--//Script 3--
function onUse(cid, item, fromPosition, itemEx, toPosition)
return getPlayerExtraExpRate(cid) == 2 and FALSE or doPlayerSetExtraExpRate(cid, 2)
end
--//Script 4--
function onUse(cid, item, fromPosition, itemEx, toPosition)
return doCreatureSay(cid, "FRASE", TALKTYPE_MONSTER or TALKTYPE_ORANGE_1)
end
--//Script 5--
function onStepIn(cid, _, _, fromPosition)
return getPlayerItemCount(cid, ID_DO_ITEM) >= 1 and TRUE or doTeleportThing(cid, fromPosition) and FALSE
end