Jump to content

Restore work [Arena Buff]


Guest mns

Recommended Posts

lost buff in Arena -> http://www.wowhead.com/spell=34709

diff --git a/src/game/BattleGround.h b/src/game/BattleGround.h
index 32554e4..aa65709 100644
--- a/src/game/BattleGround.h
+++ b/src/game/BattleGround.h
@@ -30,7 +30,7 @@
#define BG_EVENT_DOOR 254
// only arena event
// cause this buff apears 90sec after start in every bg i implement it here
-#define ARENA_BUFF_EVENT 252
+#define ARENA_BUFF_EVENT 253


class Creature;

in DB event1 = 253

Other solution :

update gameobject_battleground set event1 = 252 where event1 = 253;
update battleground_events set event1 = 252 where event1 = 253;

Link to comment
Share on other sites

  • 5 months later...

I suck in PvP, both in-game, code and database, however: I was digging up the initial data provided to database, and it was like (sample):

insert into `gameobject_battleground` (`guid`, `event1`, `event2`) values('90108','253','0');
insert into `gameobject_battleground` (`guid`, `event1`, `event2`) values('90107','253','0');
insert into `gameobject_battleground` (`guid`, `event1`, `event2`) values('90110','254','0');
insert into `gameobject_battleground` (`guid`, `event1`, `event2`) values('90109','254','0');
insert into `gameobject_battleground` (`guid`, `event1`, `event2`) values('90114','253','0');
insert into `gameobject_battleground` (`guid`, `event1`, `event2`) values('90113','253','0');
insert into `gameobject_battleground` (`guid`, `event1`, `event2`) values('90116','254','0');
insert into `gameobject_battleground` (`guid`, `event1`, `event2`) values('90115','254','0');
insert into `gameobject_battleground` (`guid`, `event1`, `event2`) values('90118','253','0');
insert into `gameobject_battleground` (`guid`, `event1`, `event2`) values('90117','253','0');

I have no idea what the intention was, to use 252 or 253. All i can say is that 253 makes most sense, since then next numbers (defines) are 254 and 255 and the comments in code says that the generic events "should get a high event id".

I'm voting to just change the define, makes most sense, filling the gap.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use