creaturescripts.xml:
<event type="kill" name="MonsterStor" script="monsterstor.lua.lua"/>
monsterstor.lua:
function onKill(cid, target)
local monsters = { -- Nome do monstro, storage e quanto perderá
["dragon"] = {stor = 1234, lost = 3},
["demon"] = {stor = 1234, lost = 3}
}
local m = monsters[target]
setPlayerStorageValue(cid, m.stor, getPlayerStorageValue(cid, m.stor-m.lost))
return true
end
login.lua:
registerCreatureEvent(cid, "MonsterStor")
Não sei se vai funcionar, mas tentemos, né.








info
Grupo: Visconde
Registrado: 06/04/11
Posts: 350
Reputação: +8
Char no Tibia: Mulekepirado
o titulo ja diz tudo, quero um script q quando o player matar tal monstro escolhido por mim perda uma certa storage...
flw ..