• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua For which disables server after reloading

GrubeJointy2

nIe Ma PrObLeMu
Joined
Aug 5, 2011
Messages
101
Reaction score
0
Location
Łódź
Hello my script works perfectly but apparently the /reload movements switched off the server and is responsible for surely this script please help.

Code:
local tp = {x=431, y=1367, z=5}

function onStepIn(cid, item, item2, fromPos, toPos, pos)

if (item.actionid == 997) then --venore
doTeleportThing(cid, tp)
setPlayerStorageValue(cid, 997, 1)
doSendMagicEffect(getPlayerPosition(cid), 14)
return false

elseif (item.actionid == 998) then --enigma
doTeleportThing(cid, tp)
setPlayerStorageValue(cid, 998, 1)
doSendMagicEffect(getPlayerPosition(cid), 14)
return false

elseif (item.actionid == 999) then --thais
doTeleportThing(cid, tp)
setPlayerStorageValue(cid, 999, 1)
doSendMagicEffect(getPlayerPosition(cid), 14)
return false

end
return TRUE
end
 
Back
Top