-Updated-
Usage: !kills monstername
Talkaction:
Creaturescript:
For anyone that doesn't get it....
1) gets storage of creature name + 1
so the storage IS the creatures NAME....
2) Everytime he killes a monster, it sets the storage +1 of that monsters name.
3) They use the talkaction to check there storage for each monster name.
4) YES THIS MAKES THE TALKACTION CAP LOCKED
!kills Orc Worrior
Usage: !kills monstername
Talkaction:
LUA:
function onSay(cid, words, param)
if (param == "") then
return false
end
t = string.explode(param, ",")
t[1] = monster
if (isCreature(monster)) then
if getPlayerStorageValue(monster) > 0 then
local amount = getPlayerStorageValue(param)
local text = "You have killed " .. amount .. " " .. param .."!"
doShowTextDialog(cid, 2175, text)
else
doPlayerSendCancel(cid, "You have not killed any of these monsters.")
return false
end
end
else
doPlayerSendCancel(cid, "You need to type a monster name.")
return false
end
end
Creaturescript:
LUA:
function onKill(cid, target)
if (isCreature(target)) then
setPlayerStorageValue(cid, getCreatureByName(target) + 1)
end
return true
end
For anyone that doesn't get it....
1) gets storage of creature name + 1
so the storage IS the creatures NAME....
2) Everytime he killes a monster, it sets the storage +1 of that monsters name.
3) They use the talkaction to check there storage for each monster name.
4) YES THIS MAKES THE TALKACTION CAP LOCKED
!kills Orc Worrior
Last edited: