• 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.

"Svargrond arena" for TFS 0.3.2 100% working.

Zonet

Web Developer
Joined
Sep 1, 2008
Messages
4,393
Reaction score
52
Location
Tibia VS RL-life, guess whos back?
This works only on 0.3.2[/SIZE]

In Gesiors thread many peoples asks how to make this working for 0.3.2.

Gesior explained that very much time but they are keeping asking how to...

Give me reputation! :)

So i decided to make a thread:).


1.
Download the map and scripts HERE.

English version fixed by me (Google Translate)

2.
Go to data/actions/action.xml
Under
PHP:
<actions>

Put this.
PHP:
	<!-- Arena -->
    <action actionid="42366" event="script" value="quests/arenadoors.lua"/>
    <action actionid="42376" event="script" value="quests/arenadoors.lua"/>
    <action actionid="42386" event="script" value="quests/arenadoors.lua"/>
    <action actionid="42357" event="script" value="quests/arenadoors.lua"/>
    <action actionid="42361" event="script" value="quests/arenareward.lua"/>
    <action actionid="42362" event="script" value="quests/arenareward.lua"/>
    <action actionid="42363" event="script" value="quests/arenareward.lua"/>
    <action actionid="42364" event="script" value="quests/arenareward.lua"/>
    <action actionid="42365" event="script" value="quests/arenareward.lua"/>
    <action actionid="42371" event="script" value="quests/arenareward.lua"/>
    <action actionid="42372" event="script" value="quests/arenareward.lua"/>
    <action actionid="42373" event="script" value="quests/arenareward.lua"/>
    <action actionid="42374" event="script" value="quests/arenareward.lua"/>
    <action actionid="42375" event="script" value="quests/arenareward.lua"/>
    <action actionid="42381" event="script" value="quests/arenareward.lua"/>
    <action actionid="42382" event="script" value="quests/arenareward.lua"/>
    <action actionid="42383" event="script" value="quests/arenareward.lua"/>
    <action actionid="42384" event="script" value="quests/arenareward.lua"/>
    <action actionid="42385" event="script" value="quests/arenareward.lua"/>

3. Go to data/movements/movements.xml
Under
PHP:
<movements>
Put this
PHP:
<!-- Arena -->
    <movevent type="StepIn" uniqueid="32193" event="script" value="dotile.lua" />
    <movevent type="StepIn" uniqueid="3219" event="script" value="dotile2.lua" />	
    <movevent type="StepIn" actionid="42360" event="script" value="arenagoblet.lua"/>
    <movevent type="StepIn" actionid="42370" event="script" value="arenagoblet.lua"/>
    <movevent type="StepIn" actionid="42380" event="script" value="arenagoblet.lua"/>
    <movevent type="StepOut" actionid="42360" event="script" value="arenagoblet.lua"/>
    <movevent type="StepOut" actionid="42370" event="script" value="arenagoblet.lua"/>
    <movevent type="StepOut" actionid="42380" event="script" value="arenagoblet.lua"/>
    <movevent type="StepIn" actionid="42300" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42301" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42302" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42303" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42304" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42305" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42306" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42307" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42308" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42309" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42310" event="script" value="didarenalevel.lua"/>
    <movevent type="StepIn" actionid="42321" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42322" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42323" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42324" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42325" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42326" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42327" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42328" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42329" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42330" event="script" value="leavearena.lua"/>
4. Go to your data/lib/data.lua

Put this at the end of data.lua
PHP:
-- arena for 0.3
InitArenaScript = 0
arena_room_max_time = 240
arenaKickPosition = {x=32222, y=31080, z=6} -- position where kick from arena when you leave/you did arena level
arena_monsters = {}
arena_monsters[42300] = 'frostfur' -- first monster from 1 arena
arena_monsters[42301] = 'bloodpaw'
arena_monsters[42302] = 'bovinus'
arena_monsters[42303] = 'achad'
arena_monsters[42304] = 'colerian the barbarian'
arena_monsters[42305] = 'the hairy one'
arena_monsters[42306] = 'axeitus headbanger'
arena_monsters[42307] = 'rocky'
arena_monsters[42308] = 'cursed gladiator'
arena_monsters[42309] = 'orcus the cruel'
arena_monsters[42310] = 'avalanche' -- first monster from 2 arena
arena_monsters[42311] = 'kreebosh the exile'
arena_monsters[42312] = 'the dark dancer'
arena_monsters[42313] = 'the hag'
arena_monsters[42314] = 'slim'
arena_monsters[42315] = 'grimgor guteater'
arena_monsters[42316] = 'drasilla'
arena_monsters[42317] = 'spirit of earth'
arena_monsters[42318] = 'spirit of water'
arena_monsters[42319] = 'spirit of fire'
arena_monsters[42320] = 'webster' -- first monster from 3 arena
arena_monsters[42321] = 'darakan the executioner'
arena_monsters[42322] = 'norgle glacierbeard'
arena_monsters[42323] = 'the pit lord'
arena_monsters[42324] = 'svoren the mad'
arena_monsters[42325] = 'the masked marauder'
arena_monsters[42326] = 'gnorre chyllson'
arena_monsters[42327] = "fallen mooh'tah master ghar"
arena_monsters[42328] = 'deathbringer'
arena_monsters[42329] = 'the obliverator'

function getArenaMonsterIdByName(name)
    name = string.lower(tostring(name))
    for i = 42300, 42329 do
        if tostring(arena_monsters[i]) == name then
            return i
        end
    end
    return 0
end

5.
Go to your data/creaturescripts/creaturescripts.xml
Under
PHP:
<creaturescripts>

Put this.
PHP:
	<event type="kill" name="PlayerKill" event="script" value="kill.lua"/>

6. Go to data/creaturescripts/scripts/login.lua
Under
PHP:
 function onLogin(cid)

Put this

PHP:
 registerCreatureEvent(cid, "PlayerKill")
    if (InitArenaScript ~= 0) then
    InitArenaScript = 1
    -- make arena rooms free
        for i = 42300, 42309 do
            setGlobalStorageValue(i, 0)
            setGlobalStorageValue(i+100, 0)
        end
    end
    -- 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

7. Open arena map ( data/world/Arena_map.otbm ), copy and paste somewhere on you map. Remember to change the kick position in your data/lib/data.lua.

Dont forget to give me reputation, If i forget something tell me!

If you want this to work for your 0.3 - 0.3.1 then in that xmls, remove that event="script" and change value="scriptname" or something to script="name" etc.
 
Last edited:
For ppls that use 0.3.2 should put this in movements.xml

Code:
    <movevent type="StepIn" actionid="42370" event="script" value="arenagoblet.lua"/>
    <movevent type="StepIn" actionid="42380" event="script" value="arenagoblet.lua"/>
    <movevent type="StepOut" actionid="42360" event="script" value="arenagoblet.lua"/>
    <movevent type="StepOut" actionid="42370" event="script" value="arenagoblet.lua"/>
    <movevent type="StepOut" actionid="42380" event="script" value="arenagoblet.lua"/>
    <movevent type="StepIn" actionid="42300" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42301" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42302" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42303" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42304" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42305" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42306" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42307" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42308" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42309" event="script" value="arenaroom.lua"/>
    <movevent type="StepIn" actionid="42310" event="script" value="didarenalevel.lua"/>
    <movevent type="StepIn" actionid="42321" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42322" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42323" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42324" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42325" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42326" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42327" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42328" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42329" event="script" value="leavearena.lua"/>
    <movevent type="StepIn" actionid="42330" event="script" value="leavearena.lua"/>
 
I use TFS 0.3.2 and the Script doesnt work. I copied the map and scripts 100% and when i talked to NPC and wanna go through tp to first room it says: First kill monster! Plz help..

Your's ballack13
 
I changed it so it works for 0.3.2 but still doesnt work and i took mummriks piece too :(
 
everything works great for me did you put in the ids where the boss sould spawn? also on scrapper arena 1 boss name is wrong spelled in monsters.xml so you need to put in an "r" on the name that was the only problem i had but fixed it in like 2 min

Edit: this monster is wrong spelled "Keebosh the Exile"
it should be "Kreebosh the Exile"
 
Last edited:
Please tell me what exactly i have to do becuase i just copied the map with RME and let the action and unique ids etc how they were.
Do i have to edit sth in monsters like this:
Code:
  <script>
  <event name="PlayerKill"/>
</script>
?? I have 2 action ids and 1 unique id in every room, the 2 action id's are the tp's and the unique on the floor...

Plz help

Your's ballack13
 
doSummonCreature

Im using the arena for a while, but when a Update mine ot for 0.3.1 (crying danson) im receving this error :


[16/03/2009 17:52:31] Lua Script Error: [MoveEvents Interface]
[16/03/2009 17:52:31] data/movements/scripts/arenaroom.lua:eek:nStepIn

[16/03/2009 17:52:31] data/movements/scripts/arenaroom.lua:67: attempt to call global 'doSummonCreature' (a nil value)
[16/03/2009 17:52:31] stack traceback:
[16/03/2009 17:52:31] data/movements/scripts/arenaroom.lua:67: in function <data/movements/scripts/arenaroom.lua:1>

can some one explain me how to fix this insue??

tnx a lot!
 
Back
Top