EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Feature Requests (https://www.eqemulator.org/forums/forumdisplay.php?f=612)
-   -   Rule to Allow EXP from Merchants (https://www.eqemulator.org/forums/showthread.php?t=29096)

joligario 08-01-2009 08:33 AM

Rule to Allow EXP from Merchants
 
I have noticed you can't get experience from killing merchants. This takes away a little bit from Live. Would be nice to allow servers the option to gain EXP from merchants rather than use the perl script.

If the original reason to not give experience was to prevent people from killing merchants, we could always set them immune to melee/spells in the database now.

Secrets 08-01-2009 08:58 PM

Quote:

Originally Posted by joligario (Post 175676)
I have noticed you can't get experience from killing merchants. This takes away a little bit from Live. Would be nice to allow servers the option to gain EXP from merchants rather than use the perl script.

If the original reason to not give experience was to prevent people from killing merchants, we could always set them immune to melee/spells in the database now.

The reason to give them no experience is because it was like that on live. If you want to change it (or code a rule for it) it's in

around line 2795, attack.cpp

Code:

        if (give_exp_client && !IsCorpse() && MerchantType == 0)
change to

Code:

        if (give_exp_client && !IsCorpse())
and if you want them giving corpses,

around line 2888, attack.cpp

Code:

if (!HasOwner() && class_ != MERCHANT && class_ != ADVENTUREMERCHANT && !GetSwarmInfo()
change to

Code:

if (!HasOwner() && class_ != ADVENTUREMERCHANT && !GetSwarmInfo()
you can also remove the adventure merchant option if you would like.

have fun.

joligario 08-01-2009 09:40 PM

I seem to remember being able to get EXP from most merchants on live. Was this not the case?

Secrets 08-01-2009 09:48 PM

Quote:

Originally Posted by joligario (Post 175713)
I seem to remember being able to get EXP from most merchants on live. Was this not the case?

Nope. At least in Classic EQ you couldn't. They would die and poof with no corpse or exp.


All times are GMT -4. The time now is 05:32 PM.

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