View Single Post
  #2  
Old 08-01-2009, 08:58 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,449
Default

Quote:
Originally Posted by joligario View Post
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.
Reply With Quote