Achaea Crit Counter

Share your scripts and packages with other Mudlet users.
Post Reply
Wyd
Posts: 54
Joined: Wed Mar 24, 2010 11:56 pm

Achaea Crit Counter

Post by Wyd »

A simple crit counter for Achaea.

Usage:

crit (on/off) - enable and disable the counter..only have it on while hunting, as hitting other adventurers will throw it off

crit reset - reset the counter

crit show - show statistics.


you will need to modify the BashingTrigger trigger for your own hunting attacks for the script to work.
A example of the CRIT SHOW command - the typo has already been fixed!
A example of the CRIT SHOW command - the typo has already been fixed!
crit_preview.jpg (19.53 KiB) Viewed 8991 times
CritCounter.xml
Crit Counter Script
(8.4 KiB) Downloaded 1048 times
Last edited by Wyd on Sun Jun 20, 2010 1:27 am, edited 1 time in total.

Wyd
Posts: 54
Joined: Wed Mar 24, 2010 11:56 pm

Re: Achaea Crit Counter

Post by Wyd »

Right, so there is a missing "return" in the load script - should be in the check if the file was loaded correctly.

I'll fix it up shortly

Sohl
Posts: 13
Joined: Mon May 10, 2010 7:17 pm

Re: Achaea Crit Counter

Post by Sohl »

I've run into a couple problems so far with this script. Doing 'crit show' gives me the following error in the debug window:

LUA: ERROR running script Crit Counter (Alias93) ERROR:[string "if not CritCounter then..."]:85:
bad argument #1 to 'pairs' (table expected, got nil)

Doing 'crit reset' gives me:

LUA: ERROR running script Crit Counter (Alias93) ERROR:[string "if not CritCounter then..."]:117:
bad argument #1 to 'pairs' (table expected, got nil)

and doing 'crit off' or 'crit on' both give me the echo:

[ CRIT COUNTER ]: Counter has been enabled!

Please let me know if you know what's going on here, since I would really love this script.

Wyd
Posts: 54
Joined: Wed Mar 24, 2010 11:56 pm

Re: Achaea Crit Counter

Post by Wyd »

Sorry about that, I'd done something stupid...I've updated the OP with the working version.

Give a yell if you notice anything else

Sohl
Posts: 13
Joined: Mon May 10, 2010 7:17 pm

Re: Achaea Crit Counter

Post by Sohl »

Works great, thanks for the fix.

Kazuya
Posts: 10
Joined: Sun Jul 11, 2010 10:29 pm
Location: United States

Re: Achaea Crit Counter

Post by Kazuya »

I just grabbed the script today and imported it. The aliases are working for me correctly, however the critical hits aren't being tallied. I customized the trigger by putting in the first chunk of my attack, and the trigger is recognizing it, but every hit is only being counted as a regular hit.

Any suggestions?

EDIT: After a few more days of using the Crit Counter script, it seems that it has started working and is correctly tallying my critical hits, and saving them from session to session.

Post Reply