galera alguem mim ajuda com esse script, ele funciona da seguinte forma ele teporta o player quando ele matar certo monstro, eu quero modificar ele para quando o player receber certa storage ele ser teleportado, abaixo o script:
function onDeath(cid, corpse, deathList)
local Ppos,monstName = {x = 3114, y = 3049, z = 7},"Mizuki"
if isMonster(cid) and string.lower(getCreatureName(cid)) == string.lower(monstName) then
for _, check in pairs(deathList) do
if isPlayer(check) then
doTeleportThing(check, Ppos)
end
end
end
return true
end