Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
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
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Bing, Yahoo!

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
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 >>