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

GlobalEvent [MOD]Full auto WAR-TeamBattle Event(with random rewards)

Crashing your server, then you are nub.....

Again i will say it is tested on both 0.3.6 & 0.4 :

If it crashes then :

1- you copyed it wrong

2- you fucked in editing the veribles
 
hey what about if i put
arena = { frompos = {x=1022,y=1017,z=7}, topos = {x=1037,y=1025,z=7} } ----Put you event area here
and change from z=7 to z=3 and there are missing some tiles above will it still work? Ty
 
hey what about if i put
arena = { frompos = {x=1022,y=1017,z=7}, topos = {x=1037,y=1025,z=7} } ----Put you event area here
and change from z=7 to z=3 and there are missing some tiles above will it still work? Ty


Should work.

@Topic,
I will test it, looks good, thanks for your release.
 
i made a event almost like this but when it was 7 to 5 it said couldnt find tiles tfs 0.4
 
ok sorry for the delay was watching a movie look when you use
arena = { frompos = {x=1022,y=1017,z=7}, topos = {x=1037,y=1025,z=7} }
in every single step have to be a tile if there isnt a tile there will be an error at console

remember that Z 6-0 not every were is a tile like at 7+ it will be good if it works even if there is or not a tile to use z 6-
 
For floors it wont work.

I can't set an multi-floor arena?

Also, I would like player to be teleported outside arena when they die or complete event, and not in town, any way I can do this?

Thanks!

Excelent script! REP ++
 
No s i said , no multi floors. As for update script i am too busy at the moment so cant promise for any near updating only fixing.
 
Got it!

If you want the player to be teleported somewhere else than temple, add this line into mods/event.xml:

Code:
nplayer1pos = {x=32359, y=31726, z=7} --place player will be teleported when die

Then search and replace this:

Code:
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), FALSE)

With this:

Code:
doTeleportThing(cid, nplayer1pos, FALSE)

Worked for me!
 
Updated all and doesn't work... When players get teleporteds, the same error is displayed...


Code:
[1:6:56.082] [Error - CreatureScript Interface] 
[1:6:56.082] domodlib('football-lib')
[1:6:56.082]         function onLogin(cid)
[1:6:56.082]  
[1:6:56.082]            if getPlayerStorageValue(cid,check) > 0 then
[1:6:56.082]            if isInRange(getCreaturePosition(cid), arena.frompos, arena.topos) then
[1:6:56.082]                     doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), FALSE)
[1:6:56.082]                  doSendMagicEffect(getCreaturePosition(cid), 10)
[1:6:56.082]                             setPlayerStorageValue(cid,check,-1)
[1:6:56.082]               else
[1:6:56.082]                            setPlayerStorageValue(cid,check,-1)   
[1:6:56.082]            end
[1:6:56.082]            end
[1:6:56.082]                 registerCreatureEvent(cid, "Log")
[1:6:56.082]                    registerCreatureEvent(cid, "Arena")
[1:6:56.082]                registerCreatureEvent(cid, "Attk")
[1:6:56.082]  
[1:6:56.082]         return true
[1:6:56.082]     end
[1:6:56.082]  
[1:6:56.082] :onLogin
[1:6:56.082] Description: 
[1:6:56.082] data/lib/032-position.lua:2: attempt to index local 'fromPosition' (a nil value)
[1:6:56.082] stack traceback:
[1:6:56.082]    data/lib/032-position.lua:2: in function 'isInRange'
[1:6:56.082]    [string "LuaInterface::loadBuffer"]:5: in function <[string "LuaInterface::loadBuffer"]:2>



confirmed.
another problem.


<config name="tutorial_m">

is same in football script.
 
so??/ lol. The error he was talking about was fixed from more than 7 days
 
I'm having some issues

I really don't know what's happening

Sometimes the characters simply don't die, when it's life is low, they just stop taking hits from any kind, physical, area, etc

And, sometimes the character's outfit don't change after the script

distro: 00:43 The Forgotten Server, version 0.3_SVN (Crying Damson)
00:43 Compiled at: Aug 20 2010, 20:38:35.

I'm trying really hard to solve it, they can't die even out of the arena, but when I remove event.xml from mods and restart the server, they die normally

Crap ¬¬"

-- edit --

00:51 <<!-- Players left --!>>
Blue team (0) : .
Red team (0) : .

Also, the message shows no players on both sides...

-- more editing --

When I reset the event, or the time runs out, the script runs smoothly and the outfits are removed and players teleported
 
Last edited:
Back
Top