It work like RL tibia arena, not bugged like other scripts:
- max. 1 player in one room, max. 1 monster (full hp!) in one room
- second player can wait one room before (10 players in 10 rooms in same time!)
- kick after XX seconds in one room
- real tibia rewards from quest, create goblet when walk on tile (with name of player)
- 3 levels of arena, each with 10 monsters, all in 10 rooms
About script:
- use Unique IDs 42300 - 42400
- use PlayerStorage IDs 42300 - 42400
- use Action IDs 42300 - 42400
- use GlobalStorage IDS 42300 - 42500
1. Download file:
Map and scripts ver. 3 - english
or:
Map and scripts ver. 3 - polish
Unpack in 'OTS/data/' folder, it shouldn't overwrite any files.
2. In data/actions/actions.xml under:
Add:
3. In data/movements/movements.xml under:
Add:
4. In data/lib/data.lua at end add:
5. In data/creaturescripts/creaturescripts.xml under:
Add:
6. In data/creaturescripts/scripts/login.lua before:
Add:
7. Open data/monster/monsters.xml and under:
Add:
8. Open arena map ( data/world/Arena_map.otbm ), copy and paste somewhere on you map. Remember to change in data/lib/arena.lua:
to your position.
Post bugs in this thread!
(maybe I forgot to post something)
- max. 1 player in one room, max. 1 monster (full hp!) in one room
- second player can wait one room before (10 players in 10 rooms in same time!)
- kick after XX seconds in one room
- real tibia rewards from quest, create goblet when walk on tile (with name of player)
- 3 levels of arena, each with 10 monsters, all in 10 rooms
About script:
- use Unique IDs 42300 - 42400
- use PlayerStorage IDs 42300 - 42400
- use Action IDs 42300 - 42400
- use GlobalStorage IDS 42300 - 42500
1. Download file:
Map and scripts ver. 3 - english
or:
Map and scripts ver. 3 - polish
Unpack in 'OTS/data/' folder, it shouldn't overwrite any files.
2. In data/actions/actions.xml under:
PHP:
<actions>
PHP:
<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 fromaid="42361" toaid="42365" event="script" value="quests/arenareward.lua"/>
<action fromaid="42371" toaid="42375" event="script" value="quests/arenareward.lua"/>
<action fromaid="42381" toaid="42385" event="script" value="quests/arenareward.lua"/>
PHP:
<movements>
PHP:
<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" fromaid="42300" toaid="42309" event="script" value="arenaroom.lua"/>
<movevent type="StepIn" actionid="42310" event="script" value="didarenalevel.lua"/>
<movevent type="StepIn" fromaid="42321" toaid="42330" event="script" value="leavearena.lua"/>
PHP:
dofile(getDataDir() .. "lib/arena.lua")
PHP:
<event type="login" name="PlayerLogin" event="script" value="login.lua"/>
PHP:
<event type="kill" name="ArenaKill" event="script" value="arenakill.lua"/>
PHP:
return true
end
PHP:
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
PHP:
<monsters>
PHP:
<!-- Arena -->
<!-- Greenhorn -->
<monster name="Achad" file="gesiorarena/greenhorn/achad.xml"/>
<monster name="Axeitus Headbanger" file="gesiorarena/greenhorn/axeitus headbanger.xml"/>
<monster name="Bloodpaw" file="gesiorarena/greenhorn/bloodpaw.xml"/>
<monster name="Bovinus" file="gesiorarena/greenhorn/bovinus.xml"/>
<monster name="Colerian The Barbarian" file="gesiorarena/greenhorn/colerian the barbarian.xml"/>
<monster name="Cursed Gladiator" file="gesiorarena/greenhorn/cursed gladiator.xml"/>
<monster name="Frostfur" file="gesiorarena/greenhorn/frostfur.xml"/>
<monster name="Orcus the Cruel" file="gesiorarena/greenhorn/orcus the cruel.xml"/>
<monster name="Rocky" file="gesiorarena/greenhorn/rocky.xml"/>
<monster name="The Hairy One" file="gesiorarena/greenhorn/the hairy one.xml"/>
<!-- Scrapper -->
<monster name="Avalanche" file="gesiorarena/scrapper/avalanche.xml"/>
<monster name="Drasilla" file="gesiorarena/scrapper/drasilla.xml"/>
<monster name="Grimgor Guteater" file="gesiorarena/scrapper/grimgor guteater.xml"/>
<monster name="Kreebosh the Exile" file="gesiorarena/scrapper/kreebosh the exile.xml"/>
<monster name="Slim" file="gesiorarena/scrapper/slim.xml"/>
<monster name="Spirit of Earth" file="gesiorarena/scrapper/spirit of earth.xml"/>
<monster name="Spirit of Fire" file="gesiorarena/scrapper/spirit of fire.xml"/>
<monster name="Spirit of Water" file="gesiorarena/scrapper/spirit of water.xml"/>
<monster name="The Dark Dancer" file="gesiorarena/scrapper/the dark dancer.xml"/>
<monster name="The Hag" file="gesiorarena/scrapper/the hag.xml"/>
<!-- Warlord -->
<monster name="Darakan the Executioner" file="gesiorarena/warlord/darakan the executioner.xml"/>
<monster name="Deathbringer" file="gesiorarena/warlord/deathbringer.xml"/>
<monster name="Fallen Mooh'tah Master Ghar" file="gesiorarena/warlord/fallen mooh'tah master ghar.xml"/>
<monster name="Gnorre Chyllson" file="gesiorarena/warlord/gnorre chyllson.xml"/>
<monster name="Norgle Glacierbeard" file="gesiorarena/warlord/norgle glacierbeard.xml"/>
<monster name="Svoren the Mad" file="gesiorarena/warlord/svoren the mad.xml"/>
<monster name="The Masked Marauder" file="gesiorarena/warlord/the masked marauder.xml"/>
<monster name="The Obliverator" file="gesiorarena/warlord/the obliverator.xml"/>
<monster name="The Pit Lord" file="gesiorarena/warlord/the pit lord.xml"/>
<monster name="Webster" file="gesiorarena/warlord/webster.xml"/>
PHP:
arenaKickPosition = {x=918, y=1240, z=6}
Post bugs in this thread!
(maybe I forgot to post something)
Last edited: