Auction Prices in Plats (script)

From Elanthipedia
Revision as of 20:48, 1 July 2014 by ISHARON (talk | contribs) (Created page with "{{Script |cat=information |fe=Genie |auth=VTCifer }} ==Description== This script echoes and logs bidding info in platinums. ==Script== <pre>#debug 10 # ---...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:		Echoes and logs bidding info in platinums
# Ver			1.1
# Modified:		15 June 2013
# Changelog:	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
#---------------------------------------

	waitfor ^OK this can end