• 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 Creaturescript error

Gilahof

RepzorMe
Joined
Dec 11, 2007
Messages
87
Reaction score
1
Location
Brazil
hi everyone, i was using this script on tfs 0.22 and was no problems, but now i need use it on tfs 0.3.5.

look the script:
Code:
-- configs
templepos = {x=200,y=200,z=7}
cityid = 1
-- end configs

function onLogin(cid)
timenow = os.time()
viptime = getPlayerStorageValue(cid,29000)
quantity = math.floor((getPlayerStorageValue(cid,29000) - timenow)/(3600*24))
if quantity <= 0 and viptime > 0 then
setPlayerStorageValue(cid,29000,0)
doTeleportThing(cid,templepos)
end
return TRUE
end

always the character login, the script is seting the storage 29000 to 0, but its need make it only when the vip time end.

anyone can help me?

sorry my bad english.
 
Back
Top