Welcome to the Builder Academy

Question How do i lower the xp that people get from fighting

More
16 Apr 2013 04:39 #1929 by JTP
I wanna lower the amount of xp a character gets just from hitting a mob, seems to high.

Anyone who can tell me where i can do it ?

Please Log in or Create an account to join the conversation.

More
16 Apr 2013 06:41 #1930 by thomas
Either:
1- alter the xp for all mobs. Or
2- add a limiter function of a kind where the xp are given (somewhere i fight.c, iirc.

Please Log in or Create an account to join the conversation.

More
16 Apr 2013 09:41 - 17 Apr 2013 05:46 #1931 by JTP
I dont wanna give less xp for killing the mob, i just dont want people to gain so Much xp from hitting the mob each round during the fight.

Someone all the Way back to circlemud added that people get xp during the fight for hitting the mob
Last edit: 17 Apr 2013 05:46 by JTP.

Please Log in or Create an account to join the conversation.

More
17 Apr 2013 08:53 #1936 by zusuk
there is a gain_exp() or whatever its called, call in damage() just modify that

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

More
17 Apr 2013 11:05 - 17 Apr 2013 11:08 #1938 by JTP
found this in fight.c:

/* Set the maximum damage per round and subtract the hit points */
dam = MAX(MIN(dam, 100), 0);
GET_HIT(victim) -= dam;

/* Gain exp for the hit */
if (ch != victim)
gain_exp(ch, GET_LEVEL(victim) * dam);

update_pos(victim);



Though 2 different headers, i assume i must change then 100 to less ?
or
gain_exp(ch, GET_LEVEL(victim) * dam /2);
Last edit: 17 Apr 2013 11:08 by JTP.

Please Log in or Create an account to join the conversation.

More
17 Apr 2013 12:08 #1939 by Rumble
If you also want to decrease max damage then yes decrease the 100. But I would stick to your 2nd option and actually change the gain_exp.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.193 seconds