dr-scripts
dr-scripts copied to clipboard
Jail-buddy assumes you get arrested in your hometown
Hometown is shard, got arrested in crossing. Jail buddy paid my shard debt and went to the shard jail to retrieve items
how do you envision it working? I could see checking the current room and go to the jail in the province that room is in after getting arrested. maybe start tracking jailer_room or something in base-towns to compare it to?
Some brainstorming:
Check wealth while in jail. Parse your debt. Check wealth after being sentenced, the one that increases is the one you need to pay.
The room you were arrested in is stored, so we can operate on tags for finding the jail. After being released find the closest room tagged jail.
If pay-debt doesn't take arguments for which provincial debt to pay, it should be updated to do that.
Hopefully you dont get your tax bill while in jail. that could be some crazy corner case.
edit: I suppose the messaging for your debt being increased via citizenship could be detected and a new wealth snapshot being taken afterwards
Can you parse your current location after you are freed? So, you are in jail in Shard, you do a ;reget #, parse it looking for the city, and then base your pay-debt and retrieval on that?
[Shard, City Jail]
reget 50
reget.each
if =~ /\[(Shard,|Crossing,|etc.,)/i
city = city name
break
end
wait_for_script_to_complete('pay-debt', city)
etc..
Closing this. Hasn't been worked on since, and no requests since. If someone wants to submit, they can.