Teddy
SweStream.se
Hello Guys/girls i need some help here whit "real tibia svargrond arena" for TFS 0.3.4 ver. 3 from geisor
Link :
http://otland.net/f81/real-tibia-svargrond-arena-forgotten-server-0-3-4-ver-3-a-33938/
This is the only error i get :S ?
how do i fix that +
when i try to enter first tp after the door this come : ?
data/creaturescripts/scripts/login.lua
Link :
http://otland.net/f81/real-tibia-svargrond-arena-forgotten-server-0-3-4-ver-3-a-33938/
This is the only error i get :S ?
Code:
[18/08/2009 10:50:27] Lua Script Error: [CreatureScript Interface]
[18/08/2009 10:50:27] data/creaturescripts/scripts/login.lua
[18/08/2009 10:50:27] luaRegisterCreatureEvent(). Creature not found
[18/08/2009 10:50:27] Lua Script Error: [CreatureScript Interface]
[18/08/2009 10:50:27] data/creaturescripts/scripts/login.lua
[18/08/2009 10:50:27] luaGetPlayerStorageValue(). Player not found
[18/08/2009 10:50:27] Lua Script Error: [CreatureScript Interface]
[18/08/2009 10:50:27] data/creaturescripts/scripts/login.lua
[18/08/2009 10:50:27] data/creaturescripts/scripts/login.lua:24: attempt to compare boolean with number
[18/08/2009 10:50:27] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/login.lua)
when i try to enter first tp after the door this come : ?
but there arent any monster ?:blink:10:51 First kill monster!
data/creaturescripts/scripts/login.lua
Code:
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "PlayerDeath")
return TRUE
end
function onLogin(cid)
local getStatus = getPlayerStorageValue(cid, 3293)
if(getStatus ~= TRUE) then
local str = "Crying Tibia\nPlayers Commands\n-!online ''Players Online''\n-!buyhouse ''Buy House''\n-!sellhouse ''Sell House''\n-!serverinfo ''Server info''\n-!frags ''Frags''\n-!createguild ''Creata Guild''\n-!joinguild ''Join Guild''\n-!leavehouse ''leave house''\n-/uptime ''look uptime'' \n-!ranks ''exp or skill rank here''\n-!aol ''Buy Aol''\n-!bp ''Buy Backpack''\n-!blankrune ''Buy Blankrune''\n-!spells ''Look your spell's''\nType !help to popup this window"
doPlayerPopupFYI(cid, str)
setPlayerStorageValue(cid, 3293, TRUE)
end
return TRUE
end
registerCreatureEvent(cid, "ArenaKill")
-- if he did not make full arena 1 he must start from zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena