|
horks Apprentice
Joined: 20 Jul 2001 Posts: 127 Location: USA
|
Posted: Mon Aug 12, 2002 7:19 pm
This should be simple |
Hey all, I'm trying to write a simple alias, but i've come into a snag, and i'm hoping you guys can help :)
3k (the mud i play on) has a 4 sp cost for using 'tell' ... there is an alternative command called 'linktell' (actual command is talk) which allows you to send the same tell to 5 or less people, and it has a 1 sp cost ..
My guild doesn't use sp for any guild powers, so i only have 50 of them, and I talk much faster than they regen :) .. Since it's cheaper to use linktell rather than tell, i want to write an alias that will automate this for me because there are a couple extra commands to use linktell (and i am so used to typing 't' to tell, that i forget to use linktell)
Here's what i have so far:
#IF (@spsaver="on") {
addlink %1
talk
dislink %1
} {tell %1}
I made another alias to control the @spsaver variable.
Here's the problem with my existing alias: it doesn't work :P the "IF" statement works just fine, and thier name gets placed properly (because thier name matches %1) but the message (%2 and onward) doesn't get appended to the end, like i had hoped it would.
How can i fix this? please help, thank you :)
Father Horks
The only problem with computer security, is when you think it exists. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Aug 12, 2002 7:43 pm |
Use %-2 where you want the message to be placed. %-2 grabs from the second argument you send to the alias to the end.
Kjata |
|
|
|
horks Apprentice
Joined: 20 Jul 2001 Posts: 127 Location: USA
|
Posted: Mon Aug 12, 2002 7:55 pm |
Thanks Kjata, that worked perfectly! :)
Father Horks
The only problem with computer security, is when you think it exists. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|