Back to "escape" tags

Camp and Safe Logout by khull

Description: Another use case of camping and bedroll. Sometimes it's better to just logout safely rather than hike to safety. Simply it sets camp waits for secure time and then lays bedroll and logsout through gump.

1# Camp and Safe Logout v0.0.1
2# Made by @khull on discord
3# UO Outlands
4
5### INFO ###
6
7// You must have camping skill 100 or 120 for best use case.
8// You must have hiding skill 100 as well so you can hide and wait on campfire
9// You must have Atlas in your backpack
10// You must have kindlings in your backpack
11
12### INFO END ###
13
14@setvar! minimumWaitForPing 200
15@setvar! bedroll 0x5EE25682
16@setvar! isCamping 0
17
18while not dead
19    if not findtype "campfire" ground -1 -1 2 and findtype "kindling" as jindling
20        overhead "I'm setting a campfire" 34
21        dclick jindling 
22        wait minimumWaitForPing 
23        useskill "hiding" 
24        wait 11000
25        
26        # Check if the campfire is secured 
27        waitforsysmsg 'Your campfire is now secure'
28        overhead "Camp is secure" 34
29        @setvar! isCamping 1
30        
31        if not findtype "bedroll" ground -1 -1 2 and isCamping = 1
32            dclick bedroll backpack
33            wait 2000
34            dclick bedroll
35            waitforgump 1825148112
36            gumpresponse 2
37        endif
38      elseif findtype "campfire" ground -1 -1 2
39                dclick bedroll backpack
40                wait 2000
41                dclick bedroll
42                wait 200
43                waitforgump 1825148112
44                wait 200
45                gumpresponse 2
46       endif
47endwhile