Jump to content

Getting Player pointer out of guid?


Auntie Mangos
 Share

Recommended Posts

Well basically im still creating my pvp system, and i got help with a few things from kerhong here: http://getmangos.eu/community/topic/16565/gethealers-and-getdamagers-functions/ and i really appreciate that, but im not sure how i can access the player pointer of the damagers and healers etc...

Because i really wanna reward healers when they heal someone that does a killingblow, to get fair "rewards" while doing some gearup in bgs n shit... :)

Thanks in advance

-- LilleCarl

Link to comment
Share on other sites

  • 41 years later...
  • 1 month later...

He means low guid part.

From ObjectMgr.h:

Player* GetPlayer(const char* name) const { return ObjectAccessor::FindPlayerByName(name);}

Player* GetPlayer(ObjectGuid guid) const { return ObjectAccessor::FindPlayer(guid); }

So no, you cant use low guid from database. But you can generate full guid from it, or you can use player name, which you can get from database.

By the way, this is wrong section for questions like that :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use