Search found 138 matches

by naftali
Wed Feb 10, 2010 3:37 am
Forum: Help Forum
Topic: Modify Zmud alias to work in Mudlet
Replies: 13
Views: 9814

Re: Modify Zmud alias to work in Mudlet

you should use '^rooms (\d+)$' otherwise the alias won't pay attention to any other number you try to use. edit: to clarify - if you just use '^rooms$' then the only thing that will set off the alias is when you type 'rooms' - nothing before and nothing after. if you used '^rooms' it would set off t...
by naftali
Mon Feb 08, 2010 1:46 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Flexible offensive aliases
Replies: 24
Views: 21528

Re: Flexible offensive aliases

What if it is not a choice between variables? For instance if I have a script that sets a variable (x) where if matches[5] exists then x=matches[5] and if it does not x=0.
by naftali
Mon Feb 08, 2010 5:36 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Flexible offensive aliases
Replies: 24
Views: 21528

Re: Flexible offensive aliases

a = b or c means: if b is undefined i. e. b = nil, then a = c At the time the original posting was written matches[3] would have been undefined if capture group #2 was empty. Today, this behaviour has been changed. All capture groups in the regex will be defined and empty capture groups will contai...
by naftali
Sun Feb 07, 2010 10:57 am
Forum: Scripts & Packages
Topic: Find alias ala ctrl+f
Replies: 14
Views: 32050

Re: Find alias ala ctrl+f

This uses the cecho function, which doesn't seem to exist. I looked in lua.global and could only find a checho function, and when I changed the alias to use checho instead of cecho it didn't work. Has something changed since you released this?
by naftali
Fri Feb 05, 2010 8:52 pm
Forum: Scripts & Packages
Topic: Achaea experience script
Replies: 2
Views: 4083

Re: Achaea experience script

*facepalm*
by naftali
Fri Feb 05, 2010 4:14 am
Forum: Scripts & Packages
Topic: Achaea experience script
Replies: 2
Views: 4083

Achaea experience script

Script I cooked up based on numbers I found on the Achaea forums in a Zmud script posted by Sena. Tells you how close one level is to another - i.e. level 70 is 23.89% of the way to level 80. If anybody is actually interested I could make another script that uses the same numbers to find the absolut...
by naftali
Thu Feb 04, 2010 7:34 pm
Forum: Help Forum
Topic: Auto sipper for Achaea does not work
Replies: 14
Views: 10260

Re: Auto sipper for Achaea does not work

As it stands the sipper uses matches[1], matches[2], matches[3], and matches[4] when it should use matches[2], matches[3], matches[4] and matches[5]. Change that and that might help. Also, to save time instead of doing sipinstal make a script that does the following as soon as you log in: priority =...
by naftali
Mon Feb 01, 2010 4:57 pm
Forum: Scripts & Packages
Topic: Rounding
Replies: 1
Views: 3388

Rounding

I found myself wanting to round to numbers of greater accuracy than whole numbers (4.325 rounding to 4.33 instead of 4) so I wrote a pair of functions to do that! function roundUp(number, places) return math.ceil(number * math.pow(10,places)) / math.pow(10,places) end function roundDown(number, plac...