Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
614
BenitoVirg
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Curious..
Forum Rules | Mark all | Recent Posts

Curious..
< Newer Topic :: Older Topic > Command Stacking

Pages:<< prev 1 next >>
Post is unread #1 Feb 22, 2003, 1:17 am
Go to the top of the page
Go to the bottom of the page

Cray
Member
GroupMembers
Posts9
JoinedDec 20, 2002

Well, thought I'd give the coding board a new post, seeing as how no one else has for a few days :P

Anyways, on with the question. I want to basically help the less fortunate( :lol: ) who have to use telnet, by giving an in game command stacker. I've heard there's a snippet for it, but can't find it. Nor can I even begin to comprehend on how to code it myself. Blasted interpret function! Its prolly quite simple, with a loop to read the line.. but I can't make it work.

Thanks in advance to anyone at all who can help :D
       
Post is unread #2 Feb 22, 2003, 3:27 am
Go to the top of the page
Go to the bottom of the page

Orion
Master Member
GroupMembers
Posts35
JoinedNov 12, 2002

I can give you a generic run down of what would be needed, etc.... but I can't tell you exactly how to do it (never done it myself). ;)

Basically, you'll need a new char * variable to store their comm. sep. string. In the interp function you'll need loop through their command input scanning for that comm. sep. string. Everytime its found break off everything before it into a new variable, then let the new variable be run.

Repeat until the string is empty. This may sound a bit off, but I've just woken up... :P
       
Pages:<< prev 1 next >>