samuel157
/root
- Joined
- Mar 19, 2010
- Messages
- 461
- Solutions
- 3
- Reaction score
- 59
- Location
- São Paulo, Brazil
- GitHub
- Samuel10M
vipacess:
acess:
LUA:
-- configs
templepos = {x=154,y=51,z=7}
cityid = 1
-- end configs
function onLogin(cid)
timenow = os.time()
viptime = getPlayerStorageValue(cid,13545)
quantity = math.floor((getPlayerStorageValue(cid,13545) - timenow)(360024))
if quantity = 0 and viptime 0 then
setPlayerStorageValue(cid,13545,0)
doTeleportThing(cid,templepos)
setPlayerTown (1),
end
return TRUE
end
acess:
LUA:
--[[ by vodkart ]]--
function onLogin(cid)
if getPlayerStorageValue(cid, 18956) - os.time() > 0 then
setPlayerStorageValue(cid, 18956, 1)
end
-- se quiser pode adicionar mais vocações
local pos = {
[2]= {x = 154, y= 51, z= 7}, -- Mage
[3]= {x = 154, y= 51, z= 7}, -- Paladin
[4]= {x = 154, y= 51, z= 7}, -- Knight
[6]= {x = 154, y= 51, z= 7} -- [VIP] Mage
[7]= {x = 154, y= 51, z= 7} -- [VIP] Paladin
[8]= {x = 154, y= 51, z= 7} -- [VIP] Knight
}
if getPlayerStorageValue(cid, 18956) == 1 and getPlayerStorageValue(cid, 18956) - os.time() < 1 or getPlayerStorageValue(cid, 18956) - os.time() == 0 then
doTeleportThing(cid ,pos[getPlayerVocation(cid)])
doPlayerPopupFYI(cid, "Sua vip Account acabou.")
setPlayerStorageValue(cid, 18956, -1)
end
return TRUE
end
LUA:
[15/06/2023 20:48:06] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/acessip.lua:15: '}' expected (to close '{' at line 10) near '['
[15/06/2023 20:48:06] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/acessip.lua)
[15/06/2023 20:48:06] data/creaturescripts/scripts/acessip.lua:15: '}' expected (to close '{' at line 10) near '['
[15/06/2023 20:48:06] [Error - LuaScriptInterface::loadFile] cannot open data/creaturescripts/scripts/acess.lua: No such file or directory
[15/06/2023 20:48:06] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/acess.lua)
[15/06/2023 20:48:06] cannot open data/creaturescripts/scripts/acess.lua: No such file or directory
[15/06/2023 20:48:06] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/vipsystem.lua:10: 'then' expected near '='
[15/06/2023 20:48:07] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/vipsystem.lua)
[15/06/2023 20:48:07] data/creaturescripts/scripts/vipsystem.lua:10: 'then' expected near '='
[15/06/2023 20:48:07] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/vipsystem1.lua:10: 'then' expected near '='
[15/06/2023 20:48:07] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/vipsystem1.lua)
[15/06/2023 20:48:07] data/creaturescripts/scripts/vipsystem1.lua:10: 'then' expected near '='