Jump to content
WoWBB.org

How to Manually Add 1v1 Arena Script!


Madness

Recommended Posts

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.

  • Upvote 4
Link to comment
Share on other sites

  • 2 weeks later...

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">((((((

Link to comment
Share on other sites

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">

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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:">

Link to comment
Share on other sites

  • 4 weeks later...

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

Link to comment
Share on other sites

  • 3 weeks later...

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">

Link to comment
Share on other sites

  • 1 month later...

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.

 

 

 

 

  • Upvote 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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"> 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 weeks later...

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:">

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...