Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2015, 09:39 PM
The Crucial One
Fire Beetle
 
Join Date: Jul 2015
Posts: 28
Default Sub EVENT_GAIN_EXP

is there a command like this, I built a faction based evolving weapons script and was wondering if i could tie it into perl. reason being i find my players are farming Greys to gain rep and I want to try and avoid this. Any help would be most appreciated!


Thanks as always
The Crucial One

ba sorry for wrong forum wasnt paying attention /sigh

Last edited by The Crucial One; 08-18-2015 at 09:48 PM.. Reason: Wrong Forum
Reply With Quote
  #2  
Old 08-18-2015, 09:54 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Hmm... I wonder whether Kill_Merit takes into account whether you got xp or not.

sub EVENT_KILLED_MERIT

Triggered on NPC death when a client is in a group credited with doing the most damage to said loot table NPC.
Reply With Quote
  #3  
Old 08-18-2015, 10:06 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Aha. Looks like you could do a level con check in EVENT_KILLED_MERIT (which fires for each player who got credit for the kill), to see if the npc was grey to them or not.

It looks like what you'd check is $npc->GetLevelCon($client->GetLevel())

Here's a dump of the possible con values from common.h:

Code:
#define CON_GREEN		2
#define CON_LIGHTBLUE	18
#define CON_BLUE		4
#define CON_WHITE		20
#define CON_YELLOW		15
#define CON_RED			13
I don't see an entry for grey. Might take some experimenting!
Reply With Quote
  #4  
Old 08-18-2015, 11:45 PM
The Crucial One
Fire Beetle
 
Join Date: Jul 2015
Posts: 28
Default

did some testing with that its all based off the mobs con to player so its reversed haha but i think i might be able to work with something here

Also merit only works with groups so if ungrouped does not trigger sadly =(
Reply With Quote
  #5  
Old 08-18-2015, 11:51 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Well, crud. Hopefully somebody else has a more helpful suggestion!
Reply With Quote
  #6  
Old 08-19-2015, 12:03 AM
The Crucial One
Fire Beetle
 
Join Date: Jul 2015
Posts: 28
Default

sub EVENT_DEATH {
$testmob = $entity_list->GetMobByNpcTypeID(999794);
my @hatelist = $testmob->GetHateList();
foreach $ent (@hatelist) {
@Concolor = (18, 4, 20, 15, 13);
foreach $Concolor (@Concolor) {
if ($client->GetLevelCon($testmob->GetLevel()) == $Concolor) {
quest::shout("Working");
}
}
}
}

this is what i ended up with thanks for your help!
Reply With Quote
  #7  
Old 08-19-2015, 12:03 AM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Sweet! Glad I was able to get you started in the right direction.
Reply With Quote
  #8  
Old 08-19-2015, 02:23 AM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

if you use EVENT_KILLED_MERIT it triggers for every PLAYER that got credit for that NPC death.

Meaning no need for a hatelist loop and can do pretty much the same thing
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 05:21 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