Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2015, 09:57 AM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 86
Default 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.
Reply With Quote
  #2  
Old 06-30-2015, 10:06 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

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.
Reply With Quote
  #3  
Old 06-30-2015, 10:31 AM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 86
Thumbs up

Very cool. I'll have to play around with it. Thanks! Any of suggestions are always appreciated.
Reply With Quote
  #4  
Old 06-30-2015, 04:44 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Those killer variables bro
Reply With Quote
  #5  
Old 06-30-2015, 08:42 PM
knowom's Avatar
knowom
Discordant
 
Join Date: Jun 2006
Posts: 371
Default

^ code for pwn
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
Reply With Quote
  #6  
Old 07-01-2015, 03:07 PM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 86
Default

I don't seem to have a global_player.pl. I could only find a global_player.lua
Reply With Quote
  #7  
Old 07-01-2015, 06:25 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

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.
Reply With Quote
  #8  
Old 07-02-2015, 08:26 AM
Leetsauce
Hill Giant
 
Join Date: Apr 2010
Posts: 169
Default

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.
Reply With Quote
  #9  
Old 07-02-2015, 11:06 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

You're welcome, haha.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:05 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3