Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onKill(cid, target)
- local criatura = "THOT Event"
- local super_id = ID DO ITEM
- if getCreatureName(target) == criatura then
- if isMonster(target) then
- doPlayerAddItem(cid, super_id, 1)
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Parabens! Voce ganhou um premio por matar ' .. criatura .. '.')
- doBroadcastMessage(getCreatureName(cid) .. " ganhou o Super Premio!. ")
- end
- end
- return true
- end
- <event type="kill" name="ThotEvent" script="thotevent.lua"/>
- registerCreatureEvent(cid, "ThotEvent")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement