Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onKill(cid, target, lastHit)
- setPlayerStorageValue(cid, multikills.st, getPlayerStorageValue(cid, multikills.st) + 1)
- local function regressTime()
- if not isCreature(cid) then
- return true
- end
- if not isPlayer(target) then
- return true
- end
- if getPlayerStorageValue(cid, timeMultiKill) == 0 then
- setPlayerStorageValue(cid, multikills.st, 0)
- return true
- end
- ---doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPlayerStorageValue(cid, timeMultiKill))
- local time = getPlayerStorageValue(cid, timeMultiKill)
- time = time - 1
- setPlayerStorageValue(cid, timeMultiKill, time)
- addEvent(regressTime, 1000)
- return true
- end
- if getPlayerStorageValue(cid, multikills.st) == 1 then
- print "Kill 1"
- setPlayerStorageValue(cid, timeMultiKill, multikills.delay)
- addEvent(regressTime, 1000)
- return true
- end
- if getPlayerStorageValue(cid, multikills.st) == 2 then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, getCreatureName(cid).." Fez um Drouble Kill em ".. getCreatureName(target) ..".")
- doBroadcastMessage(getCreatureName(cid).." fez um Drouble Kill em ".. getCreatureName(target) ..".", MESSAGE_STATUS_WARNING)
- setPlayerStorageValue(cid, timeMultiKill, multikills.delay + 3)
- print "Kill 2"
- addEvent(regressTime, 1000)
- doSendAnimatedText(getThingPos(cid), "DROUBLE KILL", 50)
- return true
- end
- if getPlayerStorageValue(cid, multikills.st) == 3 then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, getCreatureName(cid).." fez um Triple Kill em ".. getCreatureName(target) ..".")
- doBroadcastMessage(getCreatureName(cid).." fez um Triple Kill em ".. getCreatureName(target) ..".", MESSAGE_STATUS_WARNING)
- setPlayerStorageValue(cid, timeMultiKill, multikills.delay + 5)
- print "Kill 3"
- addEvent(regressTime, 1000)
- doSendAnimatedText(getThingPos(cid), "TRIPLEKILL", 50)
- return true
- end
- if getPlayerStorageValue(cid, multikills.st) == 4 then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, getCreatureName(cid).." fez um Quadra Kill em ".. getCreatureName(target) ..".")
- doBroadcastMessage(getCreatureName(cid).." fez um Quadra Kill em ".. getCreatureName(target) ..".", MESSAGE_STATUS_WARNING)
- setPlayerStorageValue(cid, timeMultiKill, multikills.delay + 7)
- print "kill 4"
- addEvent(regressTime, 1000)
- doSendAnimatedText(getThingPos(cid), "QUADRAKILL", 50)
- return true
- end
- if getPlayerStorageValue(cid, multikills.st) == 5 then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, getCreatureName(cid).." fez um Penta Kill em ".. getCreatureName(target) ..".")
- doBroadcastMessage(getCreatureName(cid).." fez um Penta Kill em ".. getCreatureName(target) ..".", MESSAGE_STATUS_WARNING)
- setPlayerStorageValue(cid, timeMultiKill, multikills.delay)
- doSendMagicEffect(getThingPos(cid), 28)
- print "kill 5"
- setPlayerStorageValue(cid, timeMultiKill, 0)
- doSendAnimatedText(getThingPos(cid), "PENTAKILL", 50)
- return true
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement