dr-scripts icon indicating copy to clipboard operation
dr-scripts copied to clipboard

Jail-buddy assumes you get arrested in your hometown

Open jandersson opened this issue 7 years ago • 4 comments

Hometown is shard, got arrested in crossing. Jail buddy paid my shard debt and went to the shard jail to retrieve items

jandersson avatar Dec 28 '17 18:12 jandersson

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?

Sarvatt avatar Dec 28 '17 18:12 Sarvatt

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.

jandersson avatar Dec 28 '17 20:12 jandersson

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

jandersson avatar Dec 28 '17 20:12 jandersson

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..

jbrock24 avatar Jan 06 '18 21:01 jbrock24

Closing this. Hasn't been worked on since, and no requests since. If someone wants to submit, they can.

MahtraDR avatar Jan 24 '23 10:01 MahtraDR