Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local questTabTemp = configQuest.Quest[item.actionid]
- if questTabTemp then
- if getPlayerStorageValue(cid, questTabTemp.storage) == -1 then
- local creatPos = getCreaturePosition(cid)
- setPlayerStorageValue(cid, questTabTemp.storage) == 1 -- lasttrans
- doSendAnimatedText(creatPos, "~ Quest ~", math.random(1,200))
- doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, questTabTemp.text)
- doSendMagicEffect(creatPos, 1016)
- else
- return doPlayerSendCancel(cid, "Sorry, you have already won an award..")
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement