fadedparadox Beginner
Joined: 11 Jan 2007 Posts: 10
|
Posted: Thu Mar 15, 2007 10:44 am
Achaea: Elixlist Summary Script |
Trevize from Achaea here. I maintain and update a website with scripts for Achaea that I wrote.
I figured I might as well post some of my scripts here. As always, the newest versions of my scripts are at achaea.fadedparadox.com.
Quoted from my website:
Quote: |
This script displays a summarized version of ELIXLIST. Just do ELIXSUM to use it. For now, it doesn't track venoms. The ElixSum script installs into the Shadow|ElixSum directory. |
Code: |
#CLASS {Shadow}
#CLASS 0
#DELC {Shadow|ElixSum}
#CLASS {Shadow|ElixSum}
#VAR elixsumversion {1.0}
#CLASS 0
#CLASS {Shadow|ElixSum|elixsumscript}
#ALIAS elixsum {#loop 7 {#t+ elixcap%i};#send "elixlist2"}
#ALIAS elixsumfinish {#pri {#say " ";#say %ansi(7)"Elixir Sips Vials";#say %ansi(7)"--------------------------------";#loopdb @elixsumvials {elixsumdisplay %key};#say %ansi(7)"Empty"%repeat(" ",27-%len(@elixsumempty))@elixsumempty;#send ""}}
#ALIAS elixsumblank {#addkey elixsumvials {health|mana|immunity|frost|venom|speed|levitation|mending|epidermal|restoration|caloric|mass} {0};#addkey elixsumsips {health|mana|immunity|frost|venom|speed|levitation|mending|epidermal|restoration|caloric|mass} {0};#var elixsumempty 0}
#ALIAS elixsumdisplay {#sayp %ansi(7)%proper(%1);#sayp %ansi(7)%repeat(" ",24-%len(%1)-%len(%db(@elixsumsips,%1)));#sayp %ansi(7)%db(@elixsumsips,%1);#sayp %ansi(7)%repeat(" ",8-%len(%db(@elixsumvials,%1)));#say %ansi(7)%db(@elixsumvials,%1)}
#VAR elixsumvials {}
#ADDKEY elixsumvials {health|mana|immunity|frost|venom|speed|levitation|mending|epidermal|restoration|caloric|mass} {0}
#VAR elixsumsips {}
#ADDKEY elixsumsips {health|mana|immunity|frost|venom|speed|levitation|mending|epidermal|restoration|caloric|mass} {0}
#VAR elixsumempty {0}
#REGEX "elixcap1" {Vial\s+Elixir\s+Sips\s+Months Left} {#gag;elixsumblank} "" {disable}
#COND {-----------------------------------------------------------------------} {#gag} {disable|regex}
#COND {^\d+h, \d+(?:m|e).*} {#pri {#say "";#gag;#loop 7 {#t- elixcap%i};elixsumfinish}} {prompt|disable|regex}
#REGEX "elixcap2" {Vial\d+\s+an elixir of ([a-z]+)\s+(\d+)\s+\d+} {#gag;#addkey elixsumvials {%1} {%eval(@elixsumvials.%1+1)};#addkey elixsumsips {%1} {%eval(@elixsumsips.%1+%2)}} "" {disable}
#REGEX "elixcap5" {Vial\d+\s+the venom ([a-z]+)\s+(\d+)\s+\d+} {#gag} "" {disable}
#REGEX "elixcap3" {Vial\d+\s+a salve of ([a-z]+)\s+(\d+)\s+\d+} {#gag;#addkey elixsumvials {%1} {%eval(@elixsumvials.%1+1)};#addkey elixsumsips {%1} {%eval(@elixsumsips.%1+%2)}} "" {disable}
#REGEX "elixcap4" {Vial\d+\s+an? ([a-z]+) salve\s+(\d+)\s+\d+} {#gag;#addkey elixsumvials {%1} {%eval(@elixsumvials.%1+1)};#addkey elixsumsips {%1} {%eval(@elixsumsips.%1+%2)}} "" {disable}
#REGEX "elixcap6" {Vial\d+\s+empty\s+0\s+\d+} {#gag;#var elixsumempty %eval(@elixsumempty+1)} "" {disable}
#REGEX "elixcap7" {^$} {#gag} "" {disable}
#CLASS 0
#SAY [Shadow] ElixSum script 1.0 installed. |
Enjoy! |
|