User:Hazado

From Elanthipedia
Revision as of 10:50, 13 January 2009 by Maintenance script (talk | contribs)
Jump to navigation Jump to search

This is Script for Genie3

This script will have the appraiser at the gem shop appraise all your gems, then will echo all the gems and the prices. Just cut and paste to excel or notepad and head over to the gems page and input what you got.

Appgems.cmd
put #trigger {(In the gem pouch you see|You rummage through a black gem pouch and see) (.+)\.} {#var gempouch \$2}
put #trigger {(In the backpack you see|You rummage through a sturdy backpack and see) (.+)\.} {#var backpack \$2}
put rummage in my gem pouch
var gems \bbar\b|\bbead\b|\bgem,|\bgem\.|agate|alexandrite|amber,|amber.|amethyst|andalusite|aquamarine,|aquamarine\.|beryl|bloodgem|bloodstone|carnelian|chalcedony|chrysoberyl|chrysopase|citrine|coral|crystal|diamond,|diamond\.|diopside|egg\b|eggcase|emerald,|emerald\.|garnet|goldstone|granite|hematite|iolite|ivory|jade|jasper|kunzite|lapis lazuli|lazuli|malachite|minerals|moonstone|morganite|nugget|onyx|opal|pearl|pebble|peridot|platinum|quartz|ruby|sapphire|spinel|star-stone|sunstone|talon|tanzanite|tooth\b|topaz|tourmaline|tsavorite|turquoise|zircon
var gempouch KLKLKLKLK $gempouch KLKLKLKLKL
var gemcount 0
var gemdesc 0
start:
if matchre("%gempouch", "(.+)(%gems)(.+)") then 
{
var gempouch $1$3
save $2
}
else goto exit
goto appgem

appgem:
put get %s in my gem pouch
matchre appgem1 You get (a|an|some) (.+) from inside your gem pouch.
match start What were you referring to?
matchwait

appgem1:
math gemdesc add 1
var desc%gemdesc $2
put ask appraiser to appr my %s
matchre savegem I'll pay (.+) Kronars for it
matchre savegem and says, "(.+) Kronars, take it or leave it
matchwait

savegem:
math gemcount add 1
var gem%gemcount %desc%gemdesc		$1
put put %s in my backpack
waitfor You put
goto start

exit:
put remove my backpack
wait
put remove my gem pouch
wait
put fill my gem pouch with my backpack
wait
put wear my backpack
wait
put wear my gem pouch
if %gemcount <= 1 then echo %gem1
if %gemcount <= 2 then echo %gem2
if %gemcount <= 3 then echo %gem3
if %gemcount <= 4 then echo %gem4
if %gemcount <= 5 then echo %gem5
if %gemcount <= 6 then echo %gem6
if %gemcount <= 7 then echo %gem7
if %gemcount <= 8 then echo %gem8
if %gemcount <= 9 then echo %gem9
if %gemcount <= 10 then echo %gem10
if %gemcount <= 11 then echo %gem11
if %gemcount <= 12 then echo %gem12
if %gemcount <= 13 then echo %gem13
if %gemcount <= 14 then echo %gem14
if %gemcount <= 15 then echo %gem15
if %gemcount <= 16 then echo %gem16
if %gemcount <= 17 then echo %gem17
if %gemcount <= 18 then echo %gem18
if %gemcount <= 19 then echo %gem19
if %gemcount <= 20 then echo %gem20
if %gemcount <= 21 then echo %gem21
if %gemcount <= 22 then echo %gem22
if %gemcount <= 23 then echo %gem23
if %gemcount <= 24 then echo %gem24
if %gemcount <= 25 then echo %gem25
if %gemcount <= 26 then echo %gem26
if %gemcount <= 27 then echo %gem27
if %gemcount <= 28 then echo %gem28
if %gemcount <= 29 then echo %gem29
if %gemcount <= 30 then echo %gem30
if %gemcount <= 31 then echo %gem31
if %gemcount <= 32 then echo %gem32
if %gemcount <= 33 then echo %gem33
if %gemcount <= 34 then echo %gem34
if %gemcount <= 35 then echo %gem35
if %gemcount <= 36 then echo %gem36
if %gemcount <= 37 then echo %gem37
if %gemcount <= 38 then echo %gem38
if %gemcount <= 39 then echo %gem39
if %gemcount <= 40 then echo %gem40
if %gemcount <= 41 then echo %gem41
if %gemcount <= 42 then echo %gem42
if %gemcount <= 43 then echo %gem43
if %gemcount <= 44 then echo %gem44
if %gemcount <= 45 then echo %gem45
if %gemcount <= 46 then echo %gem46
if %gemcount <= 47 then echo %gem47
if %gemcount <= 48 then echo %gem48
if %gemcount <= 49 then echo %gem49
if %gemcount <= 50 then echo %gem50
if %gemcount <= 51 then echo %gem51
if %gemcount <= 52 then echo %gem52
if %gemcount <= 53 then echo %gem53
if %gemcount <= 54 then echo %gem54
if %gemcount <= 55 then echo %gem55
if %gemcount <= 56 then echo %gem56
if %gemcount <= 57 then echo %gem57
if %gemcount <= 58 then echo %gem58
if %gemcount <= 59 then echo %gem59
if %gemcount <= 60 then echo %gem60
if %gemcount <= 61 then echo %gem61
if %gemcount <= 62 then echo %gem62
if %gemcount <= 63 then echo %gem63
if %gemcount <= 64 then echo %gem64
if %gemcount <= 65 then echo %gem65
if %gemcount <= 66 then echo %gem66
if %gemcount <= 67 then echo %gem67
if %gemcount <= 68 then echo %gem68
if %gemcount <= 69 then echo %gem69
if %gemcount <= 70 then echo %gem70
exit