Search found 36 matches
- Mon Feb 07, 2011 6:51 pm
- Forum: Help Forum
- Topic: Aetolia curing system types and multi send issue.
- Replies: 6
- Views: 4984
Re: Aetolia curing system types and multi send issue.
You could take a look at the manual . Basically (barring any checks to see if the timer's already running) you'd do something like this: tempTimer(2, [[checkTimeOut()]]) function checkTimeOut() if affliction == 0.5 then echo("2 seconds have passed and haven't gotten the cured line yet") af...
- Mon Feb 07, 2011 11:29 am
- Forum: Help Forum
- Topic: Aetolia curing system types and multi send issue.
- Replies: 6
- Views: 4984
Re: Aetolia curing system types and multi send issue.
The common solution to this (afaik) is sending the cure, then setting your affliction variable to a third value (so instead of 0 or 1 you'd set it to 0.5) and start a timer. If you don't get the cured message for the affliction before the timer runs out, you set the affliction variable back to 1. Of...
- Wed Jan 05, 2011 7:02 pm
- Forum: Scripts & Packages
- Topic: Name Highlighter v3
- Replies: 24
- Views: 34415
Re: Name Highlighter v3
You should look for calls to setFgColor(R,G,B) in the script (there's one in the hlEnemy and hlFriend functions if you're using the above script).
- Tue Jan 04, 2011 12:25 pm
- Forum: Help Forum
- Topic: Limb Tracker
- Replies: 4
- Views: 4115
Re: Limb Tracker
local hitlimb = matches[3]:gsub(" ","_") limbs[hitlimb] = limbs[hitlimb] + 1 if limbs[hitlimb] > 2 then send("press jecis on " .. matches[3]) limbs[hitlimb] = 0 end This should work (although it could use some error checking). You should escape the period in your regex...
- Thu Dec 30, 2010 1:00 pm
- Forum: Help Forum
- Topic: Building a system: How to handle/use events
- Replies: 0
- Views: 2434
Building a system: How to handle/use events
I've set out (yet again) to build a Mudlet-system for Achaea. This time, however, I'd like to have a more organized approach, as previous attempts were just random scripting and a bunch of triggers. The basic lay-out of the system is already there (it'll be sort-of modular), but I'm a bit at loss ab...
- Wed Dec 29, 2010 5:56 pm
- Forum: General Forum
- Topic: Mudlet-2.0 release candidates [latest: Mudlet 2.0 final]
- Replies: 190
- Views: 197589
Re: new features/functions in 1.2.0-pre8
killTimer (id) Deletes a tempTimer. Use the Timer ID returned by tempTimer() as name parameter. ID is a string and not a number. This function returns true on success and false if the timer id doesn't exist anymore (=timer has already fired) or the timer is not a temp timer. Note that non-temporary...
- Sun Dec 26, 2010 5:24 pm
- Forum: Help Forum
- Topic: Help needed for basic scripting
- Replies: 5
- Views: 4118
Re: Help needed for basic scripting
^You quickly flow into the (\w+) stance. In a regex, a period is interpreted as any one symbol. If you want the regex to match against an actual period, you have to escape it with a backslash (\), so your trigger pattern should be: ^You quickly flow into the (\w+) stance\. This is not the dealbreak...
- Tue Nov 02, 2010 11:16 am
- Forum: Help Forum
- Topic: Help with capturing achaea map to miniconsole
- Replies: 6
- Views: 5016
Re: Help with capturing achaea map to miniconsole
Alias your movement commands so you only send the map command when you move?
- Thu Oct 28, 2010 10:35 am
- Forum: Help Forum
- Topic: Party Targeting
- Replies: 3
- Views: 3371
Re: Party Targeting
I'm pretty sure you don't have to escape comma's and I'm guessing double quotes don't need it either.
- Wed Oct 20, 2010 12:41 pm
- Forum: Help Forum
- Topic: Defining Variables from values seperated by commas
- Replies: 1
- Views: 2436
Re: Defining Variables from values seperated by commas
If I recall correctly (it's been a while since I've downloaded/used it), the original highlightscript has a function that takes a string of comma-separated values and parses them into a table,which you can then use to do whatever you want.
/edit: apparently, it came from here.
/edit: apparently, it came from here.