I need to put that script in minutes the time for the player to get through the place again!
I'll have to appear but not the second most minutes remaining when he is stepping on this site!
LUA:
function onStepIn(cid, item, pos)
pos = {{x=313, y=241, z=7},{x=321, y=252, z=7},{x=315, y=267, z=7}}
time_go = 60
storage_invasion = 9549
if getPlayerStorageValue(cid,storage_invasion) + (time_go) <= os.time() and item.actionid == 5081 then
local randomChance = math.random(1, 3)
doTeleportThing(cid,pos[randomChance])
doSendMagicEffect(pos[randomChance],12)
setPlayerStorageValue(cid,storage_invasion,os.time())
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You can only enter the area of invasion, hence the ".. (getPlayerStorageValue(cid, storage_invasion)-os.time()+(time_go)) .." seconds.")
end
end
I'll have to appear but not the second most minutes remaining when he is stepping on this site!
Last edited: