interrupt command

Please post your ideas to improve our mud.

interrupt command

Postby dezakin » Fri Dec 17, 2004 8:11 pm

How bout a command that interrupts all the commands on the que and dumps them... for instance:

#8 kick

hmm crap hp is getting low

interrupt;recite recall
dezakin
 
Posts: 13
Joined: Tue Sep 07, 2004 6:29 am
Status: Offline

Postby madmax » Fri Dec 17, 2004 9:51 pm

I think you are more talking about a client command. The mud dosent recognize #8, only kick.

Madmax
madmax
Double 40 Poster
 
Posts: 100
Joined: Mon Mar 01, 2004 1:29 am
Location: Southeast Missouri, USA
Status: Offline

Postby blackmore » Fri Dec 17, 2004 10:36 pm

This would mostly depend on how your client is written whether it would even work on the client or not, but most likely it won't.

If you type #8 kick, meaning kick 8 times, your client sends the command 'kick' 8 times. If you then type interrupt, it's too late - you've already sent 8 kicks to the server, it's just waiting for the commands to make it through. From that point, it's too late to stop anything because it's all in the server's queue waiting for its turn to be processed.

From the server, there would have to be some command that takes precedence over all other commands, no matter how many have been queued up, and I'm betting this is much harder than you would imagine, if not completely impossible.
blackmore
Triple 40 Poster
 
Posts: 259
Joined: Wed Apr 21, 2004 11:51 pm
Status: Offline

Postby Strago » Fri Dec 17, 2004 11:30 pm

It might be a good idea for you to set up a triiger on the client to do the following.

Command: getmykickon
- Send first kick command
- set variable kickvar to true
- Start a tick timer
- When timer hits the time between kicks and kickvar is true send the next kick

Commad: stopkicking
- stop tick timer and set kickvar false

so you could type

>getmykickon
>stopkicking
>next command

You could then modify this to accept an arguement for the max number of times to kick.
Strago
 
Posts: 26
Joined: Sun Nov 07, 2004 10:32 am
Status: Offline

Postby dezakin » Sun Dec 19, 2004 3:14 pm

Look, of course people dont now type #8 kick and pray.

often they'll have kicker scripts, and autoblaster scripts, but these can incur some delay... as much as a round of combat.

A round of combat is often too late.

And it shouldnt be that hard to write an interrupt command on the server.
dezakin
 
Posts: 13
Joined: Tue Sep 07, 2004 6:29 am
Status: Offline

Postby Corwin » Sun Dec 19, 2004 3:32 pm

yeah, if you cannot stand the heat get outta the kitchen. in other words if you cannot q up 8 kicks dont. i have an auto kicker for sure, i do play a warrior after all. but you have to use your head, both when you write the scripts and when you use them. if you stack 8 kicks you better be ready for something bad to happen. also if your kicking a monster, it shouldn't be able to kill you in 8 rounds of combat. and if you cannot last 8 rounds of combat...well, you should find a diferent skill or spell, cause kick gets you no place fast.
User avatar
Corwin
 
Posts: 30
Joined: Mon Feb 23, 2004 9:43 pm
Location: Grand Lake, Colorado
Status: Offline


Return to Mud Suggestions

Who is online

Users browsing this forum: No registered users and 3 guests

cron