Kod:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerGroupId(cid) <= 2 then
setPlayerGroupId(cid, 1)
doPlayerSendTextMessage(cid,4,"Congratulations ".. getPlayerName(cid) .." you were a tutor!")
doRemoveItem(item.uid, 1)
doSendMagicEffect(getPlayerPosition(cid), 30)
else
doPlayerSendCancel(cid, "You have a greater range, and therefore can not be a tutor!")
end
return 1
Kod:
<action itemid="2345" script="tutor.lua"/>
Esio.
Zakładki