Auction Prices in Plats (script)
Jump to navigation
Jump to search
Auction Prices in Plats (script) | |
---|---|
Category | information |
Front-end | Genie |
Author | VTCifer |
Description
This script echoes and logs bidding info in platinums.
Script
#debug 10 # -------------------------------------------------------------------------- # Name auction # By: VTCifer # Purpose: Echos and logs bidding info in platinums # Ver 1.2 # Modified: 1 July 2014 # Changelog: 1.2 - Fixed typo in regex ending (prevents malicious termination) # 1.1 - Added custom highlighting # 1.0 - Initial version # Includes: None # Gosubs: None # Global Vars: None # -------------------------------------------------------------------------- #--------------------------------------- # INCLUDES #--------------------------------------- #--------------------------------------- # CONSTANT VARIABLES #--------------------------------------- #--------------------------------------- # VARIABLES #--------------------------------------- var Name var Item var Value var color Whitesmoke #--------------------------------------- # ACTIONS #--------------------------------------- action var Name You;evalmath Value $1/10000 when ^\*\*\* You bid (\d+) (?:Lirums|Kronars|Dokoras)\! \*\*\*$ action var Name $1;evalmath Value $2/10000 when ^\*\*\* ([A-z][a-z]+) shouts out, \"(\d+) (?:Lirums|Kronars|Dokoras)\!\" \*\*\*$ action var Item $1 when ^.* bangs (?:his|her) gavel and yells, "Bidding is now open for (?:a|an|some) (.*)\. action var color Red when eval "%Name"=="You" action var color Whitesmoke when eval "%Name"=!"You" action put #echo >log %color %Name bid on [%Item] - %Value Plat.;put #statusbar 2 [%Name] [%Item] [%Value plat] when eval %Value action put #echo >Log aqua Starting bidding for [%Item];put #statusbar 2 [%Item] when eval %Item action put #echo >Log green %Name won [%Item] for %Value Plat.;put #statusbar 2 when ^\S+ bangs (?:his|her) gavel and shouts, \"SOLD #--------------------------------------- # Local Subroutines #--------------------------------------- goto SubSkip Return: return Usage: echo .%scriptname exit SubSkip: #--------------------------------------- # SCRIPT START #--------------------------------------- waitforre ^OK this can end