Auction Prices in Plats (script): Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Script |cat=information |fe=Genie |auth=VTCifer }} ==Description== This script echoes and logs bidding info in platinums. ==Script== <pre>#debug 10 # ---...") |
No edit summary |
||
Line 15: | Line 15: | ||
# Name auction |
# Name auction |
||
# By: VTCifer |
# By: VTCifer |
||
# Purpose: |
# Purpose: Echos and logs bidding info in platinums |
||
# Ver 1. |
# Ver 1.2 |
||
# Modified: |
# Modified: 1 July 2014 |
||
# Changelog: 1. |
# Changelog: 1.2 - Fixed typo in regex ending (prevents malicious termination) |
||
# 1.1 - Added custom highlighting |
|||
# 1.0 - Initial version |
# 1.0 - Initial version |
||
# Includes: None |
# Includes: None |
||
Line 43: | Line 44: | ||
action var Name You;evalmath Value $1/10000 when ^\*\*\* You bid (\d+) (?:Lirums|Kronars|Dokoras)\! \*\*\*$ |
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 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 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 Red when eval "%Name"=="You" |
||
action var color Whitesmoke when eval "%Name"=!"You" |
action var color Whitesmoke when eval "%Name"=!"You" |
||
Line 64: | Line 65: | ||
#--------------------------------------- |
#--------------------------------------- |
||
waitforre ^OK this can end |
Latest revision as of 21:53, 1 July 2014
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