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

TrinityCore 3.3.5 Don't allow access to BG/Arena if player has item equipped

zhier

Member
Well, as the title says...

I wanna block the access to arena or bg (Clicking on the button "enter to the bg/arena") if the player has equipped an item specified before in an array or similar.

Or if u have in mind something similar as that I want, I'll appreciate your ideas.

I really really want to block the player access if (s)he has that item.

Thanks a lot!

PS: Player clicks the button and appears an alert "You can't access to bg if you have VIP items".
 
Last edited:

Syphex

Exalted Member
Just flag the items. 67108864 will not allow the player to use the item in arena. (you can try creating your own flag)

I think you can mess around with Disables in your database too.

If none of that works you have to go to BattleGround.cpp and disable it manually with c++
 
Last edited:

zhier

Member
It doesn't work. The flags aren't working...

How i disable it manually from Battleground.cpp?

And what about if a player has the item equipped before (s)he clicks "Join to War" ??
 

zhier

Member
I did it.

No one can enter if (s)he has X item equipped. But if it is true, then the BG announce "Join to war" disappear...

I wanna do something like when you fall down "You can't do this while you're falling down or flying", the button "Join to War" doesn't work but the announce don't disappear.

How can i do it?
 

Syphex

Exalted Member
I have no idea as im not that into c++ and similarities.

with c++ you can do this, but i do not know how sorry.

Glad you got the other stuff figured out.
 

zhier

Member
No prob bro, I did it and it works.

In BattlegroundHandler.cpp inside:

Code:
 void WorldSession::HandleBattleFieldPortOpcode(WorldPacket &recvData)

I can play with those buttons. Thanks anyway.
 
Top