EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Feature Requests (https://www.eqemulator.org/forums/forumdisplay.php?f=612)
-   -   Would it be possible for someone to code me a function (https://www.eqemulator.org/forums/showthread.php?t=25481)

Astaldoath 06-16-2008 04:31 PM

Would it be possible for someone to code me a function
 
I need a function that would cause players corpses killed in PVP to drop PVP coins which are turned in for PVP points to buy PVP items. If anyone could code this for me or help me code it I would be very grateful.

eq4me 06-16-2008 06:16 PM

I've virtually no time to spare right now but as far as I can see this behavior is handled in zone/PlayerCorpse.cpp, search for "tCanLoot".
The idea of giving out special coins for PVP kills is cool, but I can think of a few issues that should be handled.

- Reward should be based on level, level difference and class. That might include some penalties for strong PvP classes(Necro) that kill weaker classes.
- Reduced/No reward if the killed char is naked and has a corpse with equipment (-> corpse camping)
- Check for exploits and foul play. Like PKer and PKed play from the same IP.

AndMetal 06-18-2008 01:10 AM

This thread should answer your question:

Quote:

Originally Posted by AndMetal (Post 146120)
The item that is dropped in PvP is defined in the variables table as PvPreward:
Quote:

Allows players to loot items off a player corpse in pvp | 0 - no items | 1 - a single item | 2 - all items | 3 - item specified in PvPreward |
So, say you have Item ID 12345 (as an example) that you want to be dropped when you kill someone in PvP. You would then change the value for PvPreward in variables to 12345.

Hope this helps :-)


All times are GMT -4. The time now is 10:19 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.