Achaea Crit Counter

Share your scripts and packages with other Mudlet users.

Achaea Crit Counter

Postby Wyd » Sat Jun 12, 2010 4:44 pm

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.

crit_preview.jpg
A example of the CRIT SHOW command - the typo has already been fixed!
crit_preview.jpg (19.53 KiB) Viewed 1441 times


CritCounter.xml
Crit Counter Script
(8.4 KiB) Downloaded 358 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

Postby Wyd » Sun Jun 13, 2010 10:36 am

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
Wyd
 
Posts: 54
Joined: Wed Mar 24, 2010 11:56 pm

Re: Achaea Crit Counter

Postby Sohl » Sat Jun 19, 2010 3:21 pm

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.
Sohl
 
Posts: 13
Joined: Mon May 10, 2010 7:17 pm

Re: Achaea Crit Counter

Postby Wyd » Sun Jun 20, 2010 1:28 am

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
Wyd
 
Posts: 54
Joined: Wed Mar 24, 2010 11:56 pm

Re: Achaea Crit Counter

Postby Sohl » Fri Jul 02, 2010 11:45 pm

Works great, thanks for the fix.
Sohl
 
Posts: 13
Joined: Mon May 10, 2010 7:17 pm

Re: Achaea Crit Counter

Postby Kazuya » Sun Jul 11, 2010 10:38 pm

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.
Kazuya
 
Posts: 10
Joined: Sun Jul 11, 2010 10:29 pm
Location: United States


Return to Scripts & Packages

Who is online

Users browsing this forum: No registered users and 1 guest