I don't know anything about scripting, but after a scare earlier today I wanted something like this:
You get * gold sovereigns from a canvas backpack.
Iff * > SomeNum, put %1 gold sovereigns in pack####.
How can I do this? Thanks!
For this, I'm just picking 500 as a minimum gold. You can have a variable store what you want and replace the 500 with tonumber(getvariable(varname)). Set the "send-to" field to script, and then put this in the send field (I'm using Lua as the scripting language here):
if "%1" > 500 then
send( "put %1 gold sovereigns in pack"))
end
Thanks, but there are a few wrong things with that. I tried to fix it up a bit from my knowledge of java, but I still get an error when the condition is true:
if %1 > 500 then
send ("put %1 gold sovereigns in pack")
end
But after that, send doesn't seem to be a recognized function.
Never mind. It worked when I capitalized Send.
Thanks again. I've been using mushclient for over a year, but just now it hit me how powerful a program it is. My favorie thing is that the power comes convenient: I can put it all right in the trigger window!
Sorry about that. I keep forgetting to capitalize send.