kokokoko
Veteran OT User
- Joined
- Feb 4, 2008
- Messages
- 921
- Reaction score
- 257
What i want it to do: When the creature Tormented Soul is killed, teleport all players in the area specified to the coordinates specified. I get no errors in the console.
Problem: The player(s) standing in that area does not get teleported.
Thanks in advance,
//Kokokoko
Problem: The player(s) standing in that area does not get teleported.
Lua:
local config = {
bossname = "Tormented Soul",
globalStorage = 1000,
setTo = 0
}
function onDeath(cid, corpse, killer)
if config.bossname == getCreatureName(cid) then
if getGlobalStorageValue(config.globalStorage) >= 1 then
setGlobalStorageValue(config.globalStorage, 0)
end
end
for x = 1010, 1013 do
for y = 1173, 1177 do
getPos = getThingfromPos({x=x, y=y, z=7})
if isPlayer(getPos.uid) then
doTeleportThing(getPos.uid, {x=1017, y=1175, z=8})
end
end
end
return TRUE
end
Thanks in advance,
//Kokokoko