GTFO v2 by FewUnderstandThis

Description: Try to use gate, enter/exit rental room, else recall

1# GTFO by @FewUnderstandThis
2# Try to use gate, enter/exit rental room, else recall
3
4clearsysmsg
5overhead 'GTFO' 1150
6
7# Player gate, moongate, dungeon gate
8if findtype 3948 'ground' 'any' 1 2 as 'gate'
9    dclick 'gate'
10    # Player gate
11    if hue 'gate' = 0
12        waitforgump 3899019871 800
13        gumpresponse 2
14    # Moongate, dungeon gate
15    else
16        waitforgump 3773199800 800
17        # Select Prevalia
18        gumpresponse 15
19        waitforgump 3773199800 800
20        gumpresponse 2
21    endif
22
23# Chiv gate
24elseif findtype 30528 'ground' 'any' 1 2 as 'gate'
25    dclick 'gate'
26    waitforgump 3899019871 800
27    gumpresponse 2
28
29# Exit rental room after interacting with door
30elseif gumpexists 2393832411
31    gumpresponse 4
32
33# Enter rental room (add more inkeeper ids...)
34else    
35    # Prevalia inkeeper
36    menu 0x5B0 1
37    # Shelter inkeeper
38    menu 0x1E5 1
39    waitforgump 2393832411 200
40    if gumpexists 2393832411
41        gumpresponse 4
42    
43    # Else recall
44    elseif not gumpexists 3773199800 and not gumpexists 3899019871 and not gumpexists 2393832411
45        script 'Recall-Routine'
46    endif
47
48endif