Important:
I didn't made this script by myself. It's made by Gesior and some other people but forgot names. I just post it because many people are asking for 0.3.5 which ain't working for them.
Here we start:
Go to data/actions/actions.xml:
Then go to data/movements/movements.xml
Go to data/lib/data.lua
Go to data/creaturescripts/creaturescripts.xml
In your login.lua file copy this before your return true
Add in your monster.xml file all the monsters which will be spawned in the arena quest.
At the end you just need to download the files from:
Upload Files / svargrond-arena-tfs034-english-v3.zip - UploadHyper.com -
Give me reputation for trying to help you guys who ain't know anything about lua etc AND
Give Gesior.pl Reputation for being a great scripter.
Kind Regards,
Valania
I didn't made this script by myself. It's made by Gesior and some other people but forgot names. I just post it because many people are asking for 0.3.5 which ain't working for them.
Here we start:
Go to data/actions/actions.xml:
Code:
<!--Arena Quest-->
<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"/>
Then go to data/movements/movements.xml
Code:
<!--Arena Quest-->
<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"/>
Go to data/lib/data.lua
Code:
dofile(getDataDir() .. "lib/arena.lua")
Go to data/creaturescripts/creaturescripts.xml
Code:
<event type="kill" name="ArenaKill" event="script" value="arenakill.lua"/>
In your login.lua file copy this before your return true
Code:
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
Add in your monster.xml file all the monsters which will be spawned in the arena quest.
At the end you just need to download the files from:
Upload Files / svargrond-arena-tfs034-english-v3.zip - UploadHyper.com -
Give me reputation for trying to help you guys who ain't know anything about lua etc AND
Give Gesior.pl Reputation for being a great scripter.
Kind Regards,
Valania