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 spam hunt strings each round of combat

mobs spam hunt strings each round of combat

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


Posted by Jeryx   (7 posts)  Bio
Date Wed 06 Oct 2004 05:30 PM (UTC)
Message
I know this was fixed as of SmaugFUSS, but I am running original smaug. Every round of combat, the mob sends the "mob lunges at player out of nowhere" and the "alas, we meet again, player" etc lines found in function found_prey in track.c. This is as far as Ive been able to trace the problem with my limited knowledge of C. My best guess is that when the player attacks the mob, the mob is set to track them, and its "finding" the player every single round. If I'm right, then I need to know where that track flag is set, and where to turn it off once combat starts. If I'm wrong, then I need to know whats really going on :) Any ideas guys?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Wed 06 Oct 2004 05:40 PM (UTC)
Message
I'm pretty sure it has to do with mob->hating field. It should be cleared when it attacks the player.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Jeryx   (7 posts)  Bio
Date Reply #2 on Wed 06 Oct 2004 07:46 PM (UTC)

Amended on Wed 06 Oct 2004 08:53 PM (UTC) by Jeryx

Message
it is the hunting flag. the found_prey lines are not being sent every round, but every 2 or 3 rounds. I watched a mobs flags through mstat over the course of a fight, and it looks like every time the player hits the mob, the hunt flag is set again. Still trying to figure out how to fix this though. On an unrelated bug, mobs are sometimes up and walking off (not fleeing) during combat, and leaving the player stuck fighting "someone who has left". Where is the best place in fight.c for a check if the target is still in the room?
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.


12,945 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.