Problem with cmd_table and position w/ basecode

Posted by Kenkari on Thu 19 Dec 2002 03:34 AM — 5 posts, 24,618 views.

#0
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
USA #1
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.
#2
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
USA #3
The check is in the case structure you mentioned commenting out that actually got the change to work.
United Kingdom #4
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