Skip to content
Outlands Hub

Razor script

Enter Rental Room

by Aphlux · 81 lines
Download

Enter Inn Room Script for UO Outlands This script will quickly enter your rental inn room as either the room owner or co-owner. You must be in range of an innkeeper or house steward. Written by: Aphlux (aka Aphra) Last updated: August 24,…

Housing
Enter Rental Room.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/dfa6fe0b-342b-4450-bf49-ef6e280835b5 for latest2# Automation by Jaseowns3## Script: Enter Rental Room4## Created by: Aphlux#63215#############################################6 7# Enter Inn Room Script for UO Outlands8# 9# This script will quickly enter your rental inn room10# as either the room owner or co-owner.11#12# You must be in range of an innkeeper or house steward.13# 14# Written by:       Aphlux (aka Aphra)15# Last updated:     August 24, 202216hotkey 'Cancel Current Target'17clearsysmsg 18 19@setvar rentalGumpID 239383241120 21if gumpexists rentalGumpID22    gumpclose23    wait 10024endif25 26say 'room'27waitforgump rentalGumpID 300028 29if not gumpexists rentalGumpID30    overhead 'Failed to enter room!' 3831    overhead 'Are you even near the inn?' 5332elseif ingump 'Enter Your Room'33    wait 25034 35    while not insysmsg 'You enter the rental room'36        overhead 'Entering room...' 90337        gumpresponse 438        wait 25039        40        if insysmsg 'That vendor is too far away'41            overhead 'Innkeeper is too far away!' 3842            overhead 'Move closer!' 5343            stop44        endif45    endwhile46    47    overhead 'Welcome home.'48    49elseif ingump 'Rent This Room'50    gumpresponse 551    waitforgump rentalGumpID 300052    53    if ingump 'co-owner'54        while not insysmsg 'You enter the rental room'55            wait 25056            overhead 'Entering co-owned room...' 90357            gumpresponse 10058            59            if insysmsg 'That vendor is too far away'60                overhead 'Innkeeper is too far away!' 3861                stop62            endif63        endwhile64        65        overhead 'Welcome home.'66    else67        overhead 'No access to any rooms!' 3868    endif69elseif ingump 'Visit Other Rooms'70    gumpresponse 271    waitforgump rentalGumpID 300072    73    while not insysmsg 'You enter the rental room'74        wait 25075        overhead 'Entering co-owned room...' 90376        gumpresponse 10077    endwhile78else 79    sysmsg 'Character does not have a room or access to one!' 3880    overhead 'No room access!' 3881endif