Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Mobs exp issues

Mobs exp issues

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Treysss   (2 posts)  Bio
Date Sat 18 Aug 2007 12:02 PM (UTC)
Message
Okay...I know this is something I should have figured out by now, but I've gone through 24 pages of the forums here and several other forums...

On mob creation (using both ORB and AreaEditor for different reasons), I'm having problems with the experience points awarded. Players gain experience for increasing skills, but on mob death, receive from 0-2 exp for my created creatures. I've tried giving the mobs (lvl 1-2) 20+ hps, 150+ hps...setting experience in the builder...no good.

I've tried importing mobs from different areas, and they seem to work fine...comparing their stats to my mobs, I can't seem to find what's causing the difference; I'm sure it's something simple.

Any help before I put my own head through a wall for being so stupid?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 18 Aug 2007 10:45 PM (UTC)
Message
Look at xp_compute in fight.c, and see the various things it takes into account in calculating the experience gain. Stuff like:


  • Mob level compared to killer level
  • Alignment bonus / penalty
  • Penalty for repeatedly killing the same mob
  • Penalty for being an experienced player
  • Maximum possible for the level


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Treysss   (2 posts)  Bio
Date Reply #2 on Tue 21 Aug 2007 01:06 AM (UTC)
Message
I was right: I am an idiot.

I hadn't set any melee damage dice to my mobs...had just been relying on their weapons for damage, so it figured they couldn't hurt a character when it came time to figure experience.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,237 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.