Ecstacy
Mothafuckaaa
Hey,
I have some problem in this globalevent here, and I don't really know how to solve something with boolean because I'm not sure what it is.
I have some problem in this globalevent here, and I don't really know how to solve something with boolean because I'm not sure what it is.
Code:
function onThink(cid, interval)
local s = 5001
for _,pid in ipairs(getOnlinePlayers()) do
if(getThingPos(pid) < 6 or getThingPos(pid) > 7)then
if getPlayerStorageValue(pid,s) == 1 then
local cidv = getThingPos(pid)
if not(getTilePzInfo(cidv))then
local summons = getCreatureSummons(pid)
for _,pid in ipairs(summons) do
local v = getThingPos(getCreatureMaster(pid))
doTeleportThing(pid,v)
doSendMagicEffect(v,10)
end
else
for _,pid in ipairs(summons) do
local cid,v = getCreatureMaster(pid),getThingPos(getCreatureMaster(pid))
doRemoveCreature(pid)
doPlayerSendTextMessage(cid,19,'[Mount] Your horse got sent away because you are in PZ.')
doSendMagicEffect(v,10)
end
end
end
end
end
return true
end