EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Awarding XP from PvP kills... (https://www.eqemulator.org/forums/showthread.php?t=39811)

Rikon 06-30-2015 09:57 AM

Awarding XP from PvP kills...
 
I admit to not performing a search yet, but I wanted to know if anyone had set up their server to grant XP for PvP kills. Any assistance is (as usual) very much appreciated.

Kingly_Krab 06-30-2015 10:06 AM

You can have something like this in global_player.pl:
Code:

sub EVENT_DEATH_COMPLETE {
    if ($entity_list->GetMobByID($killer_id) && $entity_list->GetMobByID($killer_id)->IsClient()) {
        $entity_list->GetMobByID($killer_id)->CastToClient()->AddEXP(###);
        $entity_list->GetMobByID($killer_id)->CastToClient()->Message(315, "You have been granted ### experience for killing $name.");
    }
}

This is the first time these PvP (killer) variables have come in handy.

Rikon 06-30-2015 10:31 AM

Very cool. I'll have to play around with it. Thanks! Any of suggestions are always appreciated.

Akkadius 06-30-2015 04:44 PM

Those killer variables bro

knowom 06-30-2015 08:42 PM

^ code for pwn

Rikon 07-01-2015 03:07 PM

I don't seem to have a global_player.pl. I could only find a global_player.lua

Kingly_Krab 07-01-2015 06:25 PM

You can create a global_player.pl, although if you compile Lua the global_player.lua will have precedence, so you may want to delete it or disable it.

Leetsauce 07-02-2015 08:26 AM

KK,

Thank you for posting this. I've always wanted to integrate some sort of benefit for PvP kills on my server also, and you've just given me a solid idea.

Seriously.... thank you.

Kingly_Krab 07-02-2015 11:06 AM

You're welcome, haha.


All times are GMT -4. The time now is 04:35 PM.

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