Bale
Minion
Here's a cute little consult script I just got around to writing since I wanted an example for the wiki that did something interesting, but wouldn't be very long.
This will attempt to steal by any means possible. If you've got two chances to steal because you're wearing the Bling of the New Wave and fail the first time, then it will attempt to steal a second time. If you fail to pick a pocket, then if you're a Disco Bandit it will attempt the Rave Combo that is guaranteed to steal an item.
Use it like any other consult script:
Of course, this is just a little stand-by until zarqon adds Rave Combos to FTF/SS, but I liked it, so I thought I'd share it.
This will attempt to steal by any means possible. If you've got two chances to steal because you're wearing the Bling of the New Wave and fail the first time, then it will attempt to steal a second time. If you fail to pick a pocket, then if you're a Disco Bandit it will attempt the Rave Combo that is guaranteed to steal an item.
PHP:
void main(int initround, monster foe, string url) {
while(contains_text(url, "form name=steal")) {
url = steal();
if((contains_text(url, "grab something") || contains_text(url, "You manage to wrest")))
return; // Something has been stolen. Job done!
}
if(my_class() != $class[Disco Bandit]) return;
matcher combo = create_matcher("(.+),(.+),(.+)", get_property("raveCombo5"));
if(combo.find())
for i from 1 to 3 {
if(contains_text(url, "You win the fight")) return;
url = use_skill(combo.group(i).to_skill());
}
}
Use it like any other consult script:
Code:
[ default ]
1: consult RaveSteal.ash
2: attack
Of course, this is just a little stand-by until zarqon adds Rave Combos to FTF/SS, but I liked it, so I thought I'd share it.
Last edited: