User Tag List

Results 1 to 1 of 1

Thread: Custom boss with loot for everyone that took a part in killing it

  1. #1
    Join Date
    Feb 2016
    Thanked 0 Times in 0 Posts

    Custom boss with loot for everyone that took a part in killing it

    Hello guys!

    I wrote some bosses in C++ using CreatureScripts but I have a problem now.

    I need to it distibute the loot with all of the players in a range. The problem is here, that bosses/scriptedCreature does not have any access to the area (to get nearby players, or something).
    The one method which returns a player is FindNearestCreature(), but I need to find everyone in a range, store it somewhere and distribute the loot onKill().

    Problem is here that there is no party/group, because horde/ally is killing it together, that's why I need to distribute the loot in code, that everyone is happy.

    Do you have any idea how to achieve this?

    That was quick...
    Map::PlayerList const& pList = me->GetMap()->GetPlayers();
    Last edited by stfurca; 02-21-2016 at 10:44 AM.
    Level II 3 months registered

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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