Jump to content

Retrieving IP from pPlayer and pVictim?


Guest megosh
 Share

Recommended Posts

A quick few questions as stated in the thread name... how do you return the IP from pPlayer and pVictim.

I'm working on a script similar to receiving tokens on pvp kill, in player.cpp. To keep possible exploits down I would like to call the IPs for both characters and compare then, if the same; the code breaks and nothing takes place.

How would I get their IP? Possibly calling the logon DB and getting the last_ip? if so, whats the best function to get it, pVictim->GetOwnerGUID? Would that only get the player GUID and not the account?

I think at this point you get what I'm trying to do, any explanation would be wonderful.

-Megosh

Link to comment
Share on other sites

 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