Magically enter your rented room by special_sy

1# Script by Chumber [DoS]
2# Enters your room from a house steward or inkeeper in range (10 tiles)
3
4@clearignore
5while findtype 400|401 'ground' -1 -1 10 as npc
6    getlabel npc npcLabel
7    if 'house steward' in npcLabel or 'innkeeper' in npcLabel
8        overhead "Found ya!" 88 npc
9        menu npc 1
10        waitforgump 2393832411
11        if ingump "Enter Your Room" 2393832411
12            overhead "Charly"
13            gumpresponse 4
14            stop
15        elseif 'innkeeper' in npcLabel
16            overhead "Alan"
17            gumpresponse 5
18        else
19            overhead "Alan"
20            gumpresponse 2
21        endif
22        waitforgump 2393832411
23        gumpresponse 100
24        stop
25    endif
26    @ignore npc
27endwhile
28overhead "No inkeeper or house steward in range"