User Tag List

Results 1 to 6 of 6

Thread: Don't allow access to BG/Arena if player has item equipped

  1. #1
    Member
    Join Date
    Jul 2016
    Posts
    33
    XP
    370
    Level
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    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 by zhier; 07-19-2016 at 02:50 AM.
    Achievements:
    Member Level II 31 days registered

  2. #2
    Exalted Member Syphex's Avatar
    Join Date
    Dec 2014
    Location
    Sweden GMT + 1
    Posts
    302
    XP
    169,161
    Level
    105
    Thanks
    50
    Thanked 37 Times in 29 Posts
    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 by Syphex; 07-19-2016 at 12:23 PM.
    Achievements:
    Member 1 year registered Level XL Level C

  3. #3
    Original Poster
    Member
    Join Date
    Jul 2016
    Posts
    33
    XP
    370
    Level
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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" ??

  4. #4
    Original Poster
    Member
    Join Date
    Jul 2016
    Posts
    33
    XP
    370
    Level
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  5. #5
    Exalted Member Syphex's Avatar
    Join Date
    Dec 2014
    Location
    Sweden GMT + 1
    Posts
    302
    XP
    169,161
    Level
    105
    Thanks
    50
    Thanked 37 Times in 29 Posts
    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.

  6. #6
    Original Poster
    Member
    Join Date
    Jul 2016
    Posts
    33
    XP
    370
    Level
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •