Madness Posted May 23, 2015 Report Share Posted May 23, 2015 Hello All, I know a lot of people have problems with applying this script, so I am writing a guide on how to manually add the 1v1 arena script! This will work with the latest version of TrinityCore (335.58). Any problems, just reply in the thread or start a support thread. Enjoy Dear guest, please login or register to see this content./emoticons/default_smile.png" alt=":)" srcset="https://wowbb.org/uploads/emoticons/smile@2x.png 2x" width="20" height="20"> ------------ /src/server/game/Battlegrounds/ArenaTeam.cpp Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. /src/server/game/Battlegrounds/ArenaTeam.h Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. /src/server/game/Battlegrounds/Battleground.cpp Find: Dear guest, please login or register to see this content. Add before: Dear guest, please login or register to see this content. /src/server/game/Battlegrounds/Battleground.h Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. /src/server/game/Battlegrounds/BattlegroundMgr.cpp Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. Find: Dear guest, please login or register to see this content. Scroll down a little until you see the "switch (arenaType)" Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. Find: Dear guest, please login or register to see this content. Scroll down until you see "switch (bgQueueTypeId)" Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. Find: Dear guest, please login or register to see this content. Underneath you'll find "switch (bgQueueTypeId)" Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. /src/server/game/Entities/Object/Updates/UpdateFields.h Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. /src/server/game/Miscellaneous/SharedDefines.h Find: Dear guest, please login or register to see this content. Replace with: Dear guest, please login or register to see this content. That's the manual edits done! Now to add the 1v1.cpp script: Dear guest, please login or register to see this content. And add the creature to the DB: Dear guest, please login or register to see this content. If you followed these steps completely, you should have a working 1v1 arena script! UPDATE I have updated the entire post. I have replaced the pastebin script with a completely fresh script and have also provided a fresh creature. 4 Quote Link to comment Share on other sites More sharing options...
blackmetalz Posted June 3, 2015 Report Share Posted June 3, 2015 Hi. Everything is working without error except npc 1vs1 script Dear guest, please login or register to see this content. How i can fix this? Dear guest, please login or register to see this content./emoticons/default_smile.png" alt=":)" srcset="https://wowbb.org/uploads/emoticons/smile@2x.png 2x" width="20" height="20"> Quote Link to comment Share on other sites More sharing options...
blackmetalz Posted June 3, 2015 Report Share Posted June 3, 2015 After comment error above: Compiled and start server without problem. But when i enter world. I got crash instantly with this: Dear guest, please login or register to see this content. Dear guest, please login or register to see this content./emoticons/default_sad.png" alt=":(" srcset="https://wowbb.org/uploads/emoticons/sad@2x.png 2x" width="20" height="20">(((((( Quote Link to comment Share on other sites More sharing options...
Madness Posted June 3, 2015 Author Report Share Posted June 3, 2015 Are you using the latest TrinityCore rev? Quote Link to comment Share on other sites More sharing options...
blackmetalz Posted June 3, 2015 Report Share Posted June 3, 2015 No, i'm not Dear guest, please login or register to see this content./emoticons/default_sad.png" alt=":(" srcset="https://wowbb.org/uploads/emoticons/sad@2x.png 2x" width="20" height="20">. I'm using this Dear guest, please login or register to see this content. Can you spend a little time to help me Dear guest, please login or register to see this content./emoticons/default_sad.png" alt=":(" srcset="https://wowbb.org/uploads/emoticons/sad@2x.png 2x" width="20" height="20"> Quote Link to comment Share on other sites More sharing options...
blackmetalz Posted June 4, 2015 Report Share Posted June 4, 2015 After comment line that make crash Server. Added NPC with script named: npc_1v1arena following in code: CreatureScript("npc_1v1arena") When i click into NPC. No gossip appear ( NPC has npcflag=1 ) Quote Link to comment Share on other sites More sharing options...
Madness Posted June 4, 2015 Author Report Share Posted June 4, 2015 Sorry, I put the wrong script file in my post and it was only allowing people with level 19, 29, 39, 49 to use the script. I've updated the original script but you can also find it here: Dear guest, please login or register to see this content. Quote Link to comment Share on other sites More sharing options...
blackmetalz Posted June 4, 2015 Report Share Posted June 4, 2015 After use that script. Create Team cost 40gold. Ok. But if you click create team again one or 2 times, server being freeze.. And i don't see gossip that i can enter arena. Picture: Dear guest, please login or register to see this content. Quote Link to comment Share on other sites More sharing options...
Madness Posted June 4, 2015 Author Report Share Posted June 4, 2015 It shouldn't let you create a team if you already have one, there's a check in the code for that. You can't remove code, you need to fix it. I'm at work at the moment but if you need proper support please make a thread with the errors etc. Quote Link to comment Share on other sites More sharing options...
blackmetalz Posted June 4, 2015 Report Share Posted June 4, 2015 Just don't what need to do with this. Maybe i'm fail with this -.- And this is for 335a, not for 4.3.4 :-< Quote Link to comment Share on other sites More sharing options...
Madness Posted June 5, 2015 Author Report Share Posted June 5, 2015 You're trying to install this on 3.3.5 now? Quote Link to comment Share on other sites More sharing options...
blackmetalz Posted June 5, 2015 Report Share Posted June 5, 2015 No. I'm not running 3.3.5a Dear guest, please login or register to see this content./emoticons/default_biggrin.png" alt=":D" srcset="https://wowbb.org/uploads/emoticons/biggrin@2x.png 2x" width="20" height="20">. 4.3.4 Only . Thanks for your support Dear guest, please login or register to see this content./emoticons/default_wub.png" alt=":wub:"> Quote Link to comment Share on other sites More sharing options...
Madness Posted June 7, 2015 Author Report Share Posted June 7, 2015 Oh, the functions might be completely different with that source/core. You would have to compare them with your current source and make the changes. Quote Link to comment Share on other sites More sharing options...
Nitair Posted June 9, 2015 Report Share Posted June 9, 2015 Have same error @3.3.5 Quote Link to comment Share on other sites More sharing options...
Madness Posted June 9, 2015 Author Report Share Posted June 9, 2015 Ok I think I'll need to go through all of my code and make sure everything's good. Maybe I missed something! Quote Link to comment Share on other sites More sharing options...
Madness Posted July 6, 2015 Author Report Share Posted July 6, 2015 I have updated my post. I double checked all the code and it looks good. I have also updated the 1v1 arena script (pastebin) and the creature script. Please try them and report back Dear guest, please login or register to see this content./emoticons/default_smile.png" alt=":)" srcset="https://wowbb.org/uploads/emoticons/smile@2x.png 2x" width="20" height="20">. Quote Link to comment Share on other sites More sharing options...
Chyssler Posted July 23, 2015 Report Share Posted July 23, 2015 Looks good. Dear guest, please login or register to see this content./emoticons/default_smile.png" alt=":)" srcset="https://wowbb.org/uploads/emoticons/smile@2x.png 2x" width="20" height="20"> will use it on my server someday Dear guest, please login or register to see this content./emoticons/default_biggrin.png" alt=":D" srcset="https://wowbb.org/uploads/emoticons/biggrin@2x.png 2x" width="20" height="20"> Quote Link to comment Share on other sites More sharing options...
chinoske Posted September 11, 2015 Report Share Posted September 11, 2015 yeah it works!! Tested on my server Dear guest, please login or register to see this content./emoticons/default_biggrin.png" alt=":D" srcset="https://wowbb.org/uploads/emoticons/biggrin@2x.png 2x" width="20" height="20"> Thx! Dear guest, please login or register to see this content./emoticons/default_biggrin.png" alt=":D" srcset="https://wowbb.org/uploads/emoticons/biggrin@2x.png 2x" width="20" height="20">How do I modify the script 1v1, and listed in the mob 2v2, 3v3 , 5v5 , like arena random ?Tested in TrinityCore 335.59 Dear guest, please login or register to see this content./emoticons/default_biggrin.png" alt=":D" srcset="https://wowbb.org/uploads/emoticons/biggrin@2x.png 2x" width="20" height="20"> Dear guest, please login or register to see this content. 1 Quote Link to comment Share on other sites More sharing options...
Madness Posted September 11, 2015 Author Report Share Posted September 11, 2015 AWESOME! Thanks for testing Chino +1 A few people said they have problems but sorted it and no one tested it. Now I know it works great so thanks. Only 1v1 listed in this mob. I'm sure you could implement the others some how too tbh. Or just use a different arena master. Quote Link to comment Share on other sites More sharing options...
cyberpro98 Posted November 10, 2015 Report Share Posted November 10, 2015 IT works great! I tested it out with TDB 59 Dear guest, please login or register to see this content./emoticons/default_smile.png" alt=":)" srcset="https://wowbb.org/uploads/emoticons/smile@2x.png 2x" width="20" height="20">:) THX !! Dear guest, please login or register to see this content./emoticons/default_biggrin.png" alt=":D" srcset="https://wowbb.org/uploads/emoticons/biggrin@2x.png 2x" width="20" height="20"> :D Dear guest, please login or register to see this content./emoticons/default_biggrin.png" alt=":D" srcset="https://wowbb.org/uploads/emoticons/biggrin@2x.png 2x" width="20" height="20"> Quote Link to comment Share on other sites More sharing options...
Madness Posted November 11, 2015 Author Report Share Posted November 11, 2015 Great, glad it works Dear guest, please login or register to see this content./emoticons/default_smile.png" alt=":)" srcset="https://wowbb.org/uploads/emoticons/smile@2x.png 2x" width="20" height="20"> Quote Link to comment Share on other sites More sharing options...
kevinc123 Posted November 15, 2015 Report Share Posted November 15, 2015 PLAYER_FIELD_ARENA_TEAM_INFO_1_1 = UNIT_END + 0x0454, // Size: 21, Type: INT, Flags: PRIVATE PLAYER_FIELD_HONOR_CURRENCY = UNIT_END + 0x0469, // Size: 1, Type: INT, Flags: PRIVATE PLAYER_FIELD_ARENA_CURRENCY = UNIT_END + 0x046A, // Size: 1, Type: INT, Flags: PRIVATE PLAYER_FIELD_MAX_LEVEL = UNIT_END + 0x046B, // Size: 1, Type: INT, Flags: PRIVATE PLAYER_FIELD_DAILY_QUESTS_1 = UNIT_END + 0x046C, // Size: 25, Type: INT, Flags: PRIVATE PLAYER_RUNE_REGEN_1 = UNIT_END + 0x0485, // Size: 4, Type: FLOAT, Flags: PRIVATE PLAYER_NO_REAGENT_COST_1 = UNIT_END + 0x0489, // Size: 3, Type: INT, Flags: PRIVATE PLAYER_FIELD_GLYPH_SLOTS_1 = UNIT_END + 0x048C, // Size: 6, Type: INT, Flags: PRIVATE PLAYER_FIELD_GLYPHS_1 = UNIT_END + 0x0492, // Size: 6, Type: INT, Flags: PRIVATE PLAYER_GLYPHS_ENABLED = UNIT_END + 0x0498, // Size: 1, Type: INT, Flags: PRIVATE PLAYER_PET_SPELL_POWER = UNIT_END + 0x0499, // Size: 1, Type: INT, Flags: PRIVATE PLAYER_END = UNIT_END + 0x049A This part is the same as the default trinitycore file If I put this tue 1v1 script crashes and bugs the players teams and don't able to join or create group. Quote Link to comment Share on other sites More sharing options...
Madness Posted November 15, 2015 Author Report Share Posted November 15, 2015 Dear guest, please login or register to see this content. Make sure you go through the steps properly and add all the code edits/additions. If you miss things it might not work properly. That block of code needs to be added. Quote Link to comment Share on other sites More sharing options...
VegaAlexander Posted December 13, 2015 Report Share Posted December 13, 2015 Hey!. I did all the steps properly. I checked and all is the same that you posted. But, when I try to create a arena team, simply don't work it... You can see the options but doesn't work. On the other hand... When I went for the file "UpdateField.h" and I looked for the lines to change or in this case, add. I found the same already written lines. So, you aren't making changes to this file. Can anyone help me?, I am trying to add "Arena 1c1" without affect the Arena 5c5. Ah... And what does mean "UNIT_END + 0x049A"? Is it a hexadecimal code? I'm Sorry, I'm trying to learn more Dear guest, please login or register to see this content./emoticons/default_rolleyes.gif" alt=":rolleyes:"> Quote Link to comment Share on other sites More sharing options...
Madness Posted December 15, 2015 Author Report Share Posted December 15, 2015 Dear guest, please login or register to see this content. The "UpdateFields.h" file does appear to be the same, I must've missed a section. I've updated my post to cover the "UpdateFields.h" file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.