• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

"real tibia svargrond arena" by Gesior

Great script but i dont got all the bosses so it got bugged for me but can be fixed easy by adding them else its fine the only bad about the script is that its translated to polish but someone translated it to english in this thread

Gesior you are an awsome scripter/coder
 
The player has not been downloaded to the 1 monster and the Default from the server appeared this error.

PHP:
[07/10/2008  23:54:51] Lua Script Error: [MoveEvents Interface] 
[07/10/2008  23:54:51] data/movements/scripts/arenaroom.lua:onStepIn

[07/10/2008  23:54:51] luaGetThingPos(). Thing not found

[07/10/2008  23:54:51] Lua Script Error: [MoveEvents Interface] 
[07/10/2008  23:54:51] data/movements/scripts/arenaroom.lua:onStepIn

[07/10/2008  23:54:51] luaDoSummonCreature(). Can not summon monster: Frostfur
 
Last edited:
Could someone help me?
I got a problem.
When i've paid and im going in the first teleport it just says "First, kill the monster"... Why?
 
Link broken =/

Someone who has translate it to english can upload it =)?

Thanks in Advance
 
Here you have corrected script
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)                npcHandler:onCreatureAppear(cid)            end
function onCreatureDisappear(cid)             npcHandler:onCreatureDisappear(cid)            end
function onCreatureSay(cid, type, msg)         npcHandler:onCreatureSay(cid, type, msg)    end
function onThink()                             npcHandler:onThink()                        end

function enterArena(cid, message, keywords, parameters, node)
    if(not npcHandler:isFocused(cid)) then
        return false
    end
    local cost = 0
    local levelname = ''
    if getPlayerStorageValue(cid, 42355) < 1 then
        cost = 1000
        levelname = 'greenshore'
        levelneeded = 30
    elseif getPlayerStorageValue(cid, 42355) == 1 then
        cost = 5000
        levelname = 'scrapper'
        levelneeded = 50
    elseif getPlayerStorageValue(cid, 42355) == 2 then
        cost = 10000
        levelname = 'warlord'
        levelneeded = 80
    end
    if string.lower(keywords[1]) == 'yes' and parameters.prepare ~= 1 then
  if getPlayerStorageValue(cid, 42351) ~= 1 then
        if(getPlayerLevel(cid) >= levelneeded) then
            if(getPlayerMoney(cid) >= cost) then
                npcHandler:say('Now you can go to test.', cid)
doPlayerRemoveMoney(cid, cost)
                setPlayerStorageValue(cid, 42351, 1)
            else
                npcHandler:say('You don\'t have ' .. cost .. ' gp! Come back when you will be ready!', cid)
            end
        else
            npcHandler:say('You don\'t have ' .. levelneeded .. ' level! Come back when you will be ready!', cid)
        end
else
 npcHandler:say('You have paid already!', cid)
end
        npcHandler:resetNpc()
    elseif string.lower(keywords[1]) == 'no' then
        npcHandler:say('Come back later then!', cid)
        npcHandler:resetNpc()
    else
        if getPlayerStorageValue(cid, 42355) < 3 then
            npcHandler:say('You test will be ' .. levelname .. ' level. If you want enter you must pay ' .. cost .. ' gp and have ' .. levelneeded .. ' level. Wanna try?', cid)
        else
            npcHandler:say('You did all arena levels.',cid)
        end
    end
    return true
end

npcHandler:setMessage(MESSAGE_GREET, 'Hello |PLAYERNAME|! Do you want to make arena?')

local yesNode = KeywordNode:new({'yes'}, enterArena, {})
local noNode = KeywordNode:new({'no'}, enterArena, {})

local node1 = keywordHandler:addKeyword({'arena'}, enterArena, {prepare=1})
    node1:addChildKeywordNode(yesNode)
    node1:addChildKeywordNode(noNode)
    
local node1 = keywordHandler:addKeyword({'fight'}, enterArena, {prepare=1})
    node1:addChildKeywordNode(yesNode)
    node1:addChildKeywordNode(noNode)
local node1 = keywordHandler:addKeyword({'yes'}, enterArena, {prepare=1})
    node1:addChildKeywordNode(yesNode)
    node1:addChildKeywordNode(noNode)
npcHandler:addModule(FocusModule:new())
 
The player has not been downloaded to the 1 monster and the Default from the server appeared this error.

PHP:
[07/10/2008  23:54:51] Lua Script Error: [MoveEvents Interface] 
[07/10/2008  23:54:51] data/movements/scripts/arenaroom.lua:onStepIn

[07/10/2008  23:54:51] luaGetThingPos(). Thing not found

[07/10/2008  23:54:51] Lua Script Error: [MoveEvents Interface] 
[07/10/2008  23:54:51] data/movements/scripts/arenaroom.lua:onStepIn

[07/10/2008  23:54:51] luaDoSummonCreature(). Can not summon monster: Frostfur

monster/monsters.xml
<monster name="Frostfur" file="arena/greenhorn/frostfur.xml"/>
 
I still got the problem with the first teleport.. it just says "first, kill the monster" and get pushed back..

Could somoene help me with this??
 
Maybe you maked...but Gesior is first who public released this script ;] So, atleast for this, we must say thanks for him :D

So what? Gesior is a dumbo that counts 'by Gesior' suffixes in threads started by him.

I don't think that any one of you have got any point here. It's fully working arena script. You've made better? Great, but note that Gesior actually shares his work and his scripts are most widely used in OT community.. I think someone's got an ego problem indeed, but it's not Gesior.

Yeah, used widely because you don't have alternative and can't compare his work with professional scripts. My ego problem here is fact, that he releases shit as I said before. Do you even talked with him ever? Try, then rate, ok? Guy that think he's smartest and teaches everyone around how to do something. I wouldn't have anything against, if he wouldn't be so sure of himself, at least work he's doin'.
 
Yeah, used widely because you don't have alternative and can't compare his work with professional scripts
Then release some professional scripts and I'll compare them. Until then, as you said - there's no alternative and they're simply the best.

Do you even talked with him ever? Try, then rate, ok? Guy that think he's smartest and teaches everyone around how to do something. I wouldn't have anything against, if he wouldn't be so sure of himself, at least work he's doin'.

I did talk to him via Otland PMs and didn't find anything wrong about him. Besides, what are we talking here about? His scripts or himself? Don't you think that rating his ego is a little bit off-topic here, regardless of how mean it is?
 
I did talk to him via Otland PMs and didn't find anything wrong about him. Besides, what are we talking here about? His scripts or himself? Don't you think that rating his ego is a little bit off-topic here, regardless of how mean it is?

It follows each other, but yeah, bit offtopic. Anyway, at least someone with which I can have a talk ^^
 
[10/10/2008 10:25:01] Lua Script Error: [MoveEvents Interface]
[10/10/2008 10:25:01] data/movements/scripts/arenaroom.lua:eek:nStepIn

[10/10/2008 10:25:01] luaGetThingPos(). Thing not found

[10/10/2008 10:25:01] Lua Script Error: [MoveEvents Interface]
[10/10/2008 10:25:01] data/movements/scripts/arenaroom.lua:eek:nStepIn

[10/10/2008 10:25:01] luaDoSummonCreature(). Can not summon monster: bovinus


help please i have monster in folder and monsters.xml and this 2 errors i have;/
 
Lua Script Error: [Npc interface]
data/npc/scripts/Halvar.lua:eek:nCreatureSay

data/npc/scripts/Halvar.lua:11: attempt to call method 'isFocused' (a nil value)
stack traceback:
data/npc/scripts/Halvar.lua:11: in function 'callback'
data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage'
data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage'
data/npc/lib/npcsystem/keywordhandler.lua:128: in function 'processMessage'
data/npc/lib/npcsystem/npchandler.lua:265: in function 'onCreatureSay'
data/npc/scripts/Halvar.lua:7: in function <data/npc/scripts/Halvar.lua:7>
My problem :) ^
I use TFS 2.13 (11) Tibia 8.22
 
Back
Top