Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
fadedparadox
Beginner


Joined: 11 Jan 2007
Posts: 10

PostPosted: 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!
Reply with quote
fadedparadox
Beginner


Joined: 11 Jan 2007
Posts: 10

PostPosted: Thu Mar 15, 2007 10:53 am   
 
Changes:

Code:
Vial                     Elixir                   Sips      Months Left
-----------------------------------------------------------------------
Zebrawood vial105551     the venom kalmia         49        57
Zebrawood vial126182     the venom aconite        47        57
Zebrawood vial132500     the venom voyria         50        57
Zebrawood vial134337     the venom slike          49        57
Zebrawood vial163427     the venom curare         49        57
Zebrawood vial165546     the venom prefarar       49        57
Zebrawood vial223327     the venom gecko          50        57
Elderwood vial273849     the venom delphinium     50        83
Ruby vial59506           empty                    0         0
Ruby vial81989           empty                    0         0
Zoetic vial38792         empty                    0         48
Zoetic vial56585         empty                    0         48
Zoetic vial57552         empty                    0         48
Zoetic vial73979         an elixir of health      11        48
Zoetic vial76414         an elixir of health      60        48
Zoetic vial77027         an elixir of health      60        48
Zoetic vial84784         an elixir of health      41        48
Zoetic vial86479         an elixir of health      60        48
Elderwood vial269420     an elixir of mana        48        48
Elderwood vial280700     an elixir of mana        58        48
Elderwood vial271138     an elixir of mana        60        48
Elderwood vial271277     an elixir of mana        60        48
Tulipwood vial82181      an elixir of immunity    16        48
Tulipwood vial135928     an elixir of immunity    49        48
Tulipwood vial155299     an elixir of frost       48        48
Tulipwood vial160454     an elixir of speed       43        48
Tulipwood vial181245     an elixir of venom       41        48
Tulipwood vial346348     an elixir of levitation  33        50
Redwood vial334904       a salve of mending       25        48
Redwood vial335609       a salve of mending       41        48
Redwood vial336737       a salve of restoration   54        48
Redwood vial244344       a caloric salve          33        50
Redwood vial337389       a salve of mass          43        48
Redwood vial337488       an epidermal salve       36        48


Into:

Code:
Elixir              Sips   Vials
--------------------------------
Health               232       5
Mana                 226       4
Immunity              65       2
Frost                 48       1
Venom                 41       1
Speed                 43       1
Levitation            33       1
Mending               66       2
Epidermal             36       1
Restoration           54       1
Caloric               33       1
Mass                  43       1
Empty                          5
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net