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 ➜ Dawn of Time ➜ Administration ➜ Problem with cmd_table and position w/ basecode

Problem with cmd_table and position w/ basecode

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


Posted by Kenkari   (3 posts)  Bio
Date Thu 19 Dec 2002 03:34 AM (UTC)
Message
Ok here it is:

OS: Linux RH7.3
Dawn_version 1.69q

Ok I may be wrong, but in:
struct cmd_type cmd_table, line 70 (or around depending) of interp.cpp, if you change north's required position from POS_STANDING to POS_FIGHTING, you should be able to go north without getting the No way! Your still fighting! message, or whatever... am i correct?

thats why position is even in the interp.cpp.. ok.. well someone else try to do this.. and tell me what they get, because i keep getting the same darn message No way! Your still stupid! (your messages may vary).

Only way i've gotten it to work was commenting out the whole section...is by commenting out the whole if/case statement starting around line 1225, also of interp.cpp (exact line numbers may vary). If someone could please help me figure this out i would much appriciate it, as i've spent nearly 2 days trying to figure it out before asking on the forum.

if someone could just try this, and or pinpoint the problem to me, so i can fix it..

Thanks for any and all help.

-Kenkari
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Thu 19 Dec 2002 05:21 AM (UTC)
Message
Actually, in there somewhere is an if check for combat status that needs to be removed if you intend. for whatever ill-advised reason, to allow ppl to simply step out of combat with normal movement. Commenting out the entire structure solves the problem because the check is never called.

Personally, there's no way in hell I'd setup a mud where players can escape combat that easily, but I guess it really is a matter of personal preference.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Kenkari   (3 posts)  Bio
Date Reply #2 on Thu 19 Dec 2002 05:35 AM (UTC)
Message
ok.. so your saying there's another check somewhere in this codebase thats unique. because none of the other codebases i've used have had a problem like this before. And I know why i'm trying to do this, its been done before.. though its not a typical internet mud fighting style, it has been done before, if anyone has ever heard of a Pay-To-Play mud called MajorMud, you know what i'm talking about. (Was around before Internet got really big.. back in the BBS days)

if you find that extra if check lemme know i would really appriciate it, cause i've look already for another one, and couldnt find it.

-Kenkari
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #3 on Thu 19 Dec 2002 06:35 PM (UTC)
Message
The check is in the case structure you mentioned commenting out that actually got the change to work.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Kalahn   United Kingdom  (138 posts)  Bio
Date Reply #4 on Fri 20 Dec 2002 11:23 PM (UTC)
Message
Did you change the position using the command editor (comedit) or in the table in interp.cpp?

The command editor values override the defaults hardcoded in the table.

comedit north
position standing
comedit south
position standing
...
done
write_comtable

- Kal

Kalahn
Developer of the Dawn of Time codebase
http://www.dawnoftime.org/
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.


20,340 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.