• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

ZoneBattles! WIP

Foereaper

Founder
Created as an example to This Release, but ended up being a fully fledged Zone Battle script! It keeps track of the faction kills using world states, showing at the top of the screen. There are still a few things do be done to it, like adding a reward system and what not, however I have not decided on what to add yet.

This script can easily be configured to whatever zone you want, whatever kill count required to win, and cooldown between battles. Pretty self explanatory, but have a look at the screenshots for a simple preview :)

Script:


Showing the battle resetting/starting:
d0r9.png


Showing the kill cap being reached and battle won:
j74m.png



UPDATE: 23/02/14
- A couple bug fixes
- Battle is now reset/reloaded on realm start, as well as Lua engine reload.
- Added reward system, currently configurable to Gold, Honor and Item.
d4bCsGg.png


There are still things to be done to this script, if you have any suggestions feel free to post them below!
 

dsy86

Enthusiast
Row #58:
Code:
   player:InitializeWorldState(1, 1377, 0, 1) -- Initialize world state, score 0/0

I think it is not correct. It should be
Code:
   player:InitializeWorldState(ZoneBattles["BattleZone"][2], ZoneBattles["BattleZone"][3], 0, 1) -- Initialize world state, score 0/0
 

Foereaper

Founder
Row #58:
Code:
   player:InitializeWorldState(1, 1377, 0, 1) -- Initialize world state, score 0/0

I think it is not correct. It should be
Code:
   player:InitializeWorldState(ZoneBattles["BattleZone"][2], ZoneBattles["BattleZone"][3], 0, 1) -- Initialize world state, score 0/0

World states does not use the zone and map to initialize, it uses predefined zone and map states in the world state dbc :) if you try your change, then no score would show up in game :)
 

CrashLemon

Enthusiast
I'm thinking of expanding on this, adding NPC spawns and teleporting/rezing players on start. I'll update with news.
 

CrashLemon

Enthusiast
There, I'm still figuring out how I'll do NPC spawns and waypoints but I got teleportation once battle start and announcement.

 
Last edited:

Xaver

Respected Member
this is not working on my 4.3.4 core trinity,

wen script inport in lua script and reload script = port player to zone.

and battle system not startet also wen kill user no point etc no time ....
 

Marko

Enthusiast
can anyone tell me how this works?
have added both lua scripts to my lua_scripts folder and ofc edited what i wanted for spawn locations etc, but idk how to activate this "Event" ? and how does it work, summoning players or somehow inviting them to battle? all i see is the place has now alliance 0/100 and horde 0/100

Thank you for any info, interested to see if i can make this work :)
 

slp13at420

Mad Scientist
ok from what I remember and from what im reading in the script(its been a while since I experimented with this), there is a cooldown timer that starts when the server loads lua scripts. once the timer expires then the score resets . when players enter the zone they will be updated with the worldstate and proper scores . if there are no players in the map when the system resets the scoreboard it will still be active and waiting for some one to score a kill. when round is won it will then run the cooldown timer and then do it all over again. \

so basically a battle zone could sit for days idle just waiting for a team to win a round before starting the cooldown timer to start a new round.

This is the setup I used for my Portable Arathi Basin System's scoreboard.
\ o / Awsome work as allways [MENTION=7]Foereaper[/MENTION]
 
Last edited:
Top