Loot (script): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Script |
|||
I borrowed the loot code from Geniehunter to make a standalone looting script. The first version is a menu-based script. The second version can be run to quickly loot [[Currency|coins]], [[Gems|gems]], and [[Dira|diras]].<br> |
|||
|cat=utility |
|||
<br> |
|||
|fe=Genie |
|||
This script was written for Genie3. |
|||
|auth=[[User:Isharon|Isharon]] |
|||
}} |
|||
I borrowed the loot code from Geniehunter to make a standalone looting script. The first version is a menu-based script. The second version can be run to quickly loot [[Currency|coins]], [[Gems|gems]], treasure maps, and [[Dira|diras]]. |
|||
==Menu Options== |
==Menu Options== |
||
# Coins |
# Coins |
||
# Gems (includes treasure maps just because I never want to miss them) |
|||
# Gems |
|||
# Boxes |
# Boxes |
||
# Dira |
# Dira |
||
Line 15: | Line 18: | ||
==Menu Version== |
==Menu Version== |
||
<pre> |
<pre>##LOOT Variables |
||
var gweths (lantholite|waermodi|jadeite|lasmodi|sjatmal) stones |
|||
##LOOT Variables |
|||
var boxtype brass|copper|deobar|driftwood|iron|ironwood|mahogany|oaken|pine|steel|wooden |
|||
var gems1 agate|alexandrite|amber|amethyst|andalusite|aquamarine|bar|bead|beryl|bloodgem|bloodstone|carnelian|carnelian|chalcedony |
|||
var boxes coffer|crate|strongbox|caddy|casket|skippet|trunk|chest|\bbox |
|||
var gems2 chrysoberyl|chrysoprase|citrine|coral|crystal|diamond|diopside|egg|eggcase|emerald|garnet|gem|goldstone |
|||
var junkloot runestone|scroll|tablet|vellum|sheiska leaf|ostracon|hhr'lav'geluhh bark|papyrus roll|smudged parchment|lockpick|fragment|package |
|||
var gems3 (chunk of|some|piece of).*granite|hematite|iolite|ivory|jade|jasper|kunzite|lapis|lazuli|malachite|malachite stone|minerals|moonstone|morganite|nugget|onyx |
|||
var collectibles dira|kirmhiro draught|\bmap\b|package|soulstone|(?<!crossbow) \bbolts?\b|flarmencrank|\bgear\b|glarmencoupler|\bnuts?\b|rackensprocket|spangleflange |
|||
var gems4 opal|pearl|pebble|peridot|quartz|ruby|sapphire|spinel|star-stone|sunstone|talon|tanzanite|tooth|topaz|tourmaline|tsavorite|turquoise|zircon |
|||
var gweths (jadeite|kyanite|lantholite|lasmodi|sjatmal|waermodi) stones |
|||
var boxes (brass|copper|deobar|driftwood|iron|ironwood|mahogany|oaken|pine|steel|wooden) box|caddy|casket|chest|coffer|crate|skippet|strongbox|trunk |
|||
var dira dira |
|||
var card card |
|||
var herbs (aevaes|aloe|blocil|cebi|eghmok|genich|georin|hisan|hulij|hulnik|ithor|jadice|junliar|lujeakave|muljin|nemoih|nilos|nuloe|ojhenik|plovik|qun|riolur|sufil|yelith) balm|berries|elixir|flower|grass|leaf|mash|moss|paste|pollen|potion|powder|pulp|root|salve|sap|solution|stem|tea|tincture |
|||
var junk fragment|hhr'lav'geluhh bark|lockpick|ostracon|package|papyrus roll|runestone|scroll|sheiska leaf|smudged parchment|tablet|vellum |
|||
echo ** Enter Loot Option # *** |
echo ** Enter Loot Option # *** |
||
Line 36: | Line 33: | ||
echo 3. Boxes |
echo 3. Boxes |
||
echo |
echo |
||
echo 4. |
echo 4. Collectibles (Except Cards) |
||
echo |
echo |
||
echo 5. Cards |
echo 5. Cards |
||
Line 47: | Line 44: | ||
matchre Gems 2 |
matchre Gems 2 |
||
matchre Boxes 3 |
matchre Boxes 3 |
||
matchre |
matchre Collectibles 4 |
||
matchre Cards 5 |
matchre Cards 5 |
||
matchre Herbs 6 |
matchre Herbs 6 |
||
Line 54: | Line 51: | ||
Coins: |
Coins: |
||
CHECK_COIN: |
|||
if matchre ("$roomobjs", "(coin|coins)") then goto GET_COIN |
|||
NO_COINS: |
|||
goto end |
|||
GET_COIN: |
GET_COIN: |
||
send get coin |
|||
matchre GET_COIN ^You pick up |
|||
waitforre o |
|||
matchre end ^What were you referring to |
|||
goto CHECK_COIN |
|||
matchwait 2 |
|||
Gems: |
Gems: |
||
GET_GEM: |
|||
send stow gem |
|||
matchre GET_GEM ^You put your|^You open your |
|||
matchre GET_BAR ^Stow what|^You just can't get|^But that's closed|^You think the |
|||
matchwait 2 |
|||
GET_BAR: |
|||
CHECK_GEM: |
|||
send stow my bar |
|||
if (matchre ("$roomobjs", "\b(%gems1|%gems2|%gems3|%gems4|%gweths)\b(,|\.| and)")) then goto GET_GEM |
|||
waitforre ^You put your bar|^Stow what |
|||
NO_GEMS: |
|||
send get bar |
|||
goto end |
|||
matchre GET_BAR ^You pick up |
|||
matchre end ^You get|^What were you referring to |
|||
GET_GEM: |
|||
matchwait 2 |
|||
var GEM $1 |
|||
put get %GEM |
|||
waitforre o |
|||
put stow %GEM |
|||
waitforre o |
|||
goto CHECK_GEM |
|||
Boxes: |
Boxes: |
||
Line 90: | Line 83: | ||
var BOX $1 |
var BOX $1 |
||
put get %BOX |
put get %BOX |
||
waitforre |
waitforre ^You |
||
put stow %BOX |
put stow %BOX |
||
waitforre |
waitforre ^You |
||
goto CHECK_BOX |
goto CHECK_BOX |
||
Collectibles: |
|||
Diras: |
|||
CHECK_collectible: |
|||
CHECK_DIRA: |
|||
if matchre ("$roomobjs", "( |
if matchre ("$roomobjs", "(%collectibles)") then goto GET_collectible |
||
NO_collectibleS: |
|||
NO_DIRAS: |
|||
goto end |
goto end |
||
GET_collectible: |
|||
GET_DIRA: |
|||
var COLLECTIBLE $1 |
|||
put get dira |
|||
put get %COLLECTIBLE |
|||
waitforre o |
|||
waitforre ^You |
|||
put stow dira |
|||
put stow %COLLECTIBLE |
|||
waitforre o |
|||
waitforre ^You |
|||
goto CHECK_DIRA |
|||
goto CHECK_collectible |
|||
Cards: |
Cards: |
||
Line 118: | Line 112: | ||
GET_CARD: |
GET_CARD: |
||
put get card |
put get card |
||
waitforre |
waitforre ^You |
||
put stow card |
put stow card |
||
waitforre |
waitforre ^You |
||
goto CHECK_CARD |
goto CHECK_CARD |
||
Line 133: | Line 127: | ||
var HERB $1 |
var HERB $1 |
||
put get %HERB |
put get %HERB |
||
waitforre |
waitforre ^You |
||
put stow %HERB |
put stow %HERB |
||
waitforre |
waitforre ^You |
||
goto CHECK_HERB |
goto CHECK_HERB |
||
Line 141: | Line 135: | ||
CHECK_JUNK: |
CHECK_JUNK: |
||
if (matchre ("$roomobjs", "\b(% |
if (matchre ("$roomobjs", "\b(%junkloot)\b(,|\.| and)")) then goto GET_JUNK |
||
NO_JUNKS: |
NO_JUNKS: |
||
goto end |
goto end |
||
Line 148: | Line 142: | ||
var JUNK $1 |
var JUNK $1 |
||
put get %JUNK |
put get %JUNK |
||
waitforre |
waitforre ^You |
||
put stow %JUNK |
put stow %JUNK |
||
waitforre |
waitforre ^You |
||
goto CHECK_JUNK |
goto CHECK_JUNK |
||
end: |
end: |
||
send stow my bar |
|||
waitforre ^You put your bar|^Stow what</pre> |
|||
==Quick Version== |
==Quick Version== |
||
<pre>##LOOT Variables |
<pre>##LOOT Variables |
||
var gweths (lantholite|waermodi|jadeite|lasmodi|sjatmal) stones |
|||
var gems1 agate|alexandrite|amber|amethyst|andalusite|aquamarine|bar|bead|beryl|bloodgem|bloodstone|carnelian|carnelian|chalcedony |
|||
var boxtype brass|copper|deobar|driftwood|iron|ironwood|mahogany|oaken|pine|steel|wooden |
|||
var gems2 chrysoberyl|chrysoprase|citrine|coral|crystal|diamond|diopside|egg|eggcase|emerald|garnet|gem|goldstone |
|||
var boxes coffer|crate|strongbox|caddy|casket|skippet|trunk|chest|\bbox |
|||
var gems3 (chunk of|some|piece of).*granite|hematite|iolite|ivory|jade|jasper|kunzite|lapis|lazuli|malachite|malachite stone|\bmap\b|minerals|moonstone|morganite|nugget|onyx |
|||
var junkloot runestone|scroll|tablet|vellum|sheiska leaf|ostracon|hhr'lav'geluhh bark|papyrus roll|smudged parchment|lockpick|fragment|package |
|||
var gems4 opal|pearl|pebble|peridot|quartz|ruby|sapphire|spinel|star-stone|sunstone|talon|tanzanite|tooth|topaz|tourmaline|tsavorite|turquoise|zircon |
|||
var collectibles dira|kirmhiro draught|\bmap\b|package|soulstone|(?<!crossbow) \bbolts?\b|flarmencrank|\bgear\b|glarmencoupler|\bnuts?\b|rackensprocket|spangleflange |
|||
var gweths (jadeite|kyanite|lantholite|lasmodi|sjatmal|waermodi) stones |
|||
var boxes (brass|copper|deobar|driftwood|iron|ironwood|mahogany|oaken|pine|steel|wooden) box|caddy|casket|chest|coffer|crate|skippet|strongbox|trunk |
|||
var dira dira |
|||
var card card |
|||
var herbs (aevaes|aloe|blocil|cebi|eghmok|genich|georin|hisan|hulij|hulnik|ithor|jadice|junliar|lujeakave|muljin|nemoih|nilos|nuloe|ojhenik|plovik|qun|riolur|sufil|yelith) balm|berries|elixir|flower|grass|leaf|mash|moss|paste|pollen|potion|powder|pulp|root|salve|sap|solution|stem|tea|tincture |
|||
var junk fragment|hhr'lav'geluhh bark|lockpick|ostracon|package|papyrus roll|runestone|scroll|sheiska leaf|smudged parchment|tablet|vellum |
|||
echo ** Enter Loot Option # *** |
|||
echo |
|||
echo 1. Coins |
|||
echo |
|||
echo 2. Gems |
|||
echo |
|||
echo 3. Boxes |
|||
echo |
|||
echo 4. Dira |
|||
echo |
|||
echo 5. Cards |
|||
echo |
|||
echo 6. Herbs |
|||
echo |
|||
echo 7. Junk |
|||
matchre Coins 1 |
|||
matchre Gems 2 |
|||
matchre Boxes 3 |
|||
matchre Dira 4 |
|||
matchre Cards 5 |
|||
matchre Herbs 6 |
|||
matchre Junk 7 |
|||
matchwait |
|||
Coins: |
Coins: |
||
CHECK_COIN: |
|||
if matchre ("$roomobjs", "(coin|coins)") then goto GET_COIN |
|||
NO_COINS: |
|||
goto end |
|||
GET_COIN: |
GET_COIN: |
||
send get coin |
|||
matchre GET_COIN ^You pick up |
|||
waitforre o |
|||
matchre Gems ^What were you referring to |
|||
goto CHECK_COIN |
|||
matchwait 2 |
|||
Gems: |
Gems: |
||
CHECK_GEM: |
|||
if (matchre ("$roomobjs", "\b(%gems1|%gems2|%gems3|%gems4|%gweths)\b(,|\.| and)")) then goto GET_GEM |
|||
NO_GEMS: |
|||
goto end |
|||
GET_GEM: |
GET_GEM: |
||
send stow gem |
|||
var GEM $1 |
|||
matchre GET_GEM ^You put your|^You open your |
|||
put get %GEM |
|||
matchre GET_BAR ^Stow what|^You just can't get|^But that's closed|^You think the |
|||
waitforre o |
|||
matchwait 2 |
|||
put stow %GEM |
|||
waitforre o |
|||
goto CHECK_GEM |
|||
GET_BAR: |
|||
Boxes: |
|||
send stow my bar |
|||
waitforre ^You put your bar|^Stow what |
|||
send get bar |
|||
matchre GET_BAR ^You pick up |
|||
matchre Collectibles ^You get|^What were you referring to |
|||
matchwait 2 |
|||
Collectibles: |
|||
CHECK_BOX: |
|||
send stow my bar |
|||
if matchre ("$roomobjs", "(%boxes)") then goto GET_BOX |
|||
waitforre ^You put your bar|^Stow what |
|||
NO_BOXES: |
|||
CHECK_collectible: |
|||
if matchre ("$roomobjs", "(%collectibles)") then goto GET_collectible |
|||
NO_collectibleS: |
|||
goto end |
goto end |
||
GET_collectible: |
|||
GET_BOX: |
|||
var |
var COLLECTIBLE $1 |
||
put get % |
put get %COLLECTIBLE |
||
waitforre |
waitforre ^You |
||
put stow % |
put stow %COLLECTIBLE |
||
waitforre |
waitforre ^You |
||
goto |
goto CHECK_collectible |
||
Diras: |
|||
CHECK_DIRA: |
|||
if matchre ("$roomobjs", "(dira|diras)") then goto GET_DIRA |
|||
NO_DIRAS: |
|||
goto end |
|||
GET_DIRA: |
|||
put get dira |
|||
waitforre o |
|||
put stow dira |
|||
waitforre o |
|||
goto CHECK_DIRA |
|||
Cards: |
|||
CHECK_CARD: |
|||
if matchre ("$roomobjs", "(card|cards)") then goto GET_CARD |
|||
NO_CARDS: |
|||
goto end |
|||
GET_CARD: |
|||
put get card |
|||
waitforre o |
|||
put stow card |
|||
waitforre o |
|||
goto CHECK_CARD |
|||
Herbs: |
|||
CHECK_HERB: |
|||
if (matchre ("$roomobjs", "\b(%herbs)\b(,|\.| and)")) then goto GET_HERB |
|||
NO_HERBS: |
|||
goto end |
|||
GET_HERB: |
|||
var HERB $1 |
|||
put get %HERB |
|||
waitforre o |
|||
put stow %HERB |
|||
waitforre o |
|||
goto CHECK_HERB |
|||
Junk: |
|||
CHECK_JUNK: |
|||
if (matchre ("$roomobjs", "\b(%junk)\b(,|\.| and)")) then goto GET_JUNK |
|||
NO_JUNKS: |
|||
goto end |
|||
GET_JUNK: |
|||
var JUNK $1 |
|||
put get %JUNK |
|||
waitforre o |
|||
put stow %JUNK |
|||
waitforre o |
|||
goto CHECK_JUNK |
|||
end:</pre> |
|||
end: |
|||
[[Category:Scripts]] |
|||
put #parse SCRIPT DONE |
|||
exit</pre> |
Latest revision as of 18:44, 4 March 2016
Loot (script) | |
---|---|
Category | utility |
Front-end | Genie |
Author | Isharon |
I borrowed the loot code from Geniehunter to make a standalone looting script. The first version is a menu-based script. The second version can be run to quickly loot coins, gems, treasure maps, and diras.
Menu Options
- Coins
- Gems (includes treasure maps just because I never want to miss them)
- Boxes
- Dira
- Cards
- Herbs
- Junk
Menu Version
##LOOT Variables var gweths (lantholite|waermodi|jadeite|lasmodi|sjatmal) stones var boxtype brass|copper|deobar|driftwood|iron|ironwood|mahogany|oaken|pine|steel|wooden var boxes coffer|crate|strongbox|caddy|casket|skippet|trunk|chest|\bbox var junkloot runestone|scroll|tablet|vellum|sheiska leaf|ostracon|hhr'lav'geluhh bark|papyrus roll|smudged parchment|lockpick|fragment|package var collectibles dira|kirmhiro draught|\bmap\b|package|soulstone|(?<!crossbow) \bbolts?\b|flarmencrank|\bgear\b|glarmencoupler|\bnuts?\b|rackensprocket|spangleflange echo ** Enter Loot Option # *** echo echo 1. Coins echo echo 2. Gems echo echo 3. Boxes echo echo 4. Collectibles (Except Cards) echo echo 5. Cards echo echo 6. Herbs echo echo 7. Junk matchre Coins 1 matchre Gems 2 matchre Boxes 3 matchre Collectibles 4 matchre Cards 5 matchre Herbs 6 matchre Junk 7 matchwait Coins: GET_COIN: send get coin matchre GET_COIN ^You pick up matchre end ^What were you referring to matchwait 2 Gems: GET_GEM: send stow gem matchre GET_GEM ^You put your|^You open your matchre GET_BAR ^Stow what|^You just can't get|^But that's closed|^You think the matchwait 2 GET_BAR: send stow my bar waitforre ^You put your bar|^Stow what send get bar matchre GET_BAR ^You pick up matchre end ^You get|^What were you referring to matchwait 2 Boxes: CHECK_BOX: if matchre ("$roomobjs", "(%boxes)") then goto GET_BOX NO_BOXES: goto end GET_BOX: var BOX $1 put get %BOX waitforre ^You put stow %BOX waitforre ^You goto CHECK_BOX Collectibles: CHECK_collectible: if matchre ("$roomobjs", "(%collectibles)") then goto GET_collectible NO_collectibleS: goto end GET_collectible: var COLLECTIBLE $1 put get %COLLECTIBLE waitforre ^You put stow %COLLECTIBLE waitforre ^You goto CHECK_collectible Cards: CHECK_CARD: if matchre ("$roomobjs", "(card|cards)") then goto GET_CARD NO_CARDS: goto end GET_CARD: put get card waitforre ^You put stow card waitforre ^You goto CHECK_CARD Herbs: CHECK_HERB: if (matchre ("$roomobjs", "\b(%herbs)\b(,|\.| and)")) then goto GET_HERB NO_HERBS: goto end GET_HERB: var HERB $1 put get %HERB waitforre ^You put stow %HERB waitforre ^You goto CHECK_HERB Junk: CHECK_JUNK: if (matchre ("$roomobjs", "\b(%junkloot)\b(,|\.| and)")) then goto GET_JUNK NO_JUNKS: goto end GET_JUNK: var JUNK $1 put get %JUNK waitforre ^You put stow %JUNK waitforre ^You goto CHECK_JUNK end: send stow my bar waitforre ^You put your bar|^Stow what
Quick Version
##LOOT Variables var gweths (lantholite|waermodi|jadeite|lasmodi|sjatmal) stones var boxtype brass|copper|deobar|driftwood|iron|ironwood|mahogany|oaken|pine|steel|wooden var boxes coffer|crate|strongbox|caddy|casket|skippet|trunk|chest|\bbox var junkloot runestone|scroll|tablet|vellum|sheiska leaf|ostracon|hhr'lav'geluhh bark|papyrus roll|smudged parchment|lockpick|fragment|package var collectibles dira|kirmhiro draught|\bmap\b|package|soulstone|(?<!crossbow) \bbolts?\b|flarmencrank|\bgear\b|glarmencoupler|\bnuts?\b|rackensprocket|spangleflange Coins: GET_COIN: send get coin matchre GET_COIN ^You pick up matchre Gems ^What were you referring to matchwait 2 Gems: GET_GEM: send stow gem matchre GET_GEM ^You put your|^You open your matchre GET_BAR ^Stow what|^You just can't get|^But that's closed|^You think the matchwait 2 GET_BAR: send stow my bar waitforre ^You put your bar|^Stow what send get bar matchre GET_BAR ^You pick up matchre Collectibles ^You get|^What were you referring to matchwait 2 Collectibles: send stow my bar waitforre ^You put your bar|^Stow what CHECK_collectible: if matchre ("$roomobjs", "(%collectibles)") then goto GET_collectible NO_collectibleS: goto end GET_collectible: var COLLECTIBLE $1 put get %COLLECTIBLE waitforre ^You put stow %COLLECTIBLE waitforre ^You goto CHECK_collectible end: put #parse SCRIPT DONE exit