Skip to content
Outlands Hub

Razor script

2024 Kings Faire - All Games - deprecated

by arger · 1796 lines
Download

WARNING: the Serials are outdated, this will not work #

2024 Kings Faire - All Games - deprecated.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/c8d88db6-a4d3-4fe4-a49e-99b366da0569 for latest2# Automation by Jaseowns3## Script: 2024 Kings Faire - All Games - deprecated4## Created by: arger#05#############################################6 7# WARNING: the Serials are outdated, this will not work #8 9# JaseOwns Kings Faire Auto Bot Updated by Arger10# UO Outlands11############12# Updated for King's Faire 202413# For Real Content See - youtube.com/jaseowns/live14# v1.1 - Warning: there appears to be a loop issue with the hinder-based wait mechanic. I will seek to resolve it.15##########16@setvar! Alchemissed 0x1416417@setvar! Apple-Bobber 0x1416518@setvar! Archery-Contest 0x1411519@setvar! Axe-Throw 0x1411720@setvar! Balloon-Pop 0x1414A21@setvar! Bar-Creep 0x1418822@setvar! Bell-Striker 0x1411923@setvar! Boxing-Match 0x1412024@setvar! Candyugh-Arena 0x1418925@setvar! Cannon-Bawl 0x1418E26@setvar! Caravan-Pusher 0x1415827@setvar! Coop-Shoot 0x1416928@setvar! Derby-Race 0x1414429@setvar! Drinking-Contest 0x1412830@setvar! Dunk-Tank 0x1412F31@setvar! Dye-Dye-Dye 0x1418F32@setvar! Eating-Contest 0x1413E33@setvar! Fishing-Contest 0x1413634@setvar! Jousting 0x1413935@setvar! Ladder-Golf 0x1413A36@setvar! Log-Cutter 0x1413C37@setvar! Log-Rolling 0x1414E38@setvar! Packmaster 0x1415439@setvar! Plucky-Musician 0x1415A40@setvar! Produce-Pitch 0x1414941@setvar! Pylon-Gladiator 0x1414842@setvar! Quartermaster 0x1416B43@setvar! Rage-Cage 0x1416C44@setvar! Ship-Race 0x1414D 45@setvar! Skeet-Shooting 0x1415546@setvar! Squiball 0x1413B47@setvar! Statue-Carving 0x1415248@setvar! Tomato-Justice 0x1415349@setvar! Totem-Stacker 0x1419150@setvar! Whack-a-Muck 0x1413F51@setvar! overheadMessageTimerCd 200052settimer overheadMessageTimer overheadMessageTimerCd53clearsysmsg 54gumpclose 225898840555	56while not dead57 58    if findtype "diaphonous wings" backpack as item59        dclick item60    endif61	62	##############63    ### Alchemissed64    #########65	@setvar! gameVendorId Alchemissed66	@setvar! gameStartX 650767    @setvar! gameStartY 314368    @setvar! gameEndX 651869    @setvar! gameEndY 314570     71    if find gameVendorId ground -1 -1 4 as james72        while not gumpexists 225898840573            menu james 174            waitforgump 2258988405 500075        endwhile76        if ingump "have 0 plays remaining" 225898840577            if timer overheadMessageTimer >= overheadMessageTimerCd78            overhead "We are done with Alchemissed for today.. lets try another game!" 7779                settimer overheadMessageTimer 080            endif81            gumpclose 225898840582        else83            gumpresponse 2 225898840584            wait 20085            if insysmsg "You are too far away to participate in this event."86                overhead "Move closer to the contest guy" 3487                wait 50088            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"89                settimer waitingInLineTimer 090                while find gameVendorId ground -1 -1 491                    if timer overheadMessageTimer >= overheadMessageTimerCd92                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 3493                        settimer overheadMessageTimer 094                    endif95                    if position gameStartX gameStartY96                        break97                    endif98                    wait 5099                endwhile100            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."101                overhead "We need to go buy tickets!" 287102                wait 2000103            endif104        endif105        if position gameStartX gameStartY106            while position gameStartX gameStartY107                wait 200108            endwhile109            if position gameEndX gameEndY110                say "I just finished, your turn!"111            endif112        endif113    endif114	115	##############116    ### Apple-Bobber117    #########118	@setvar! gameVendorId Apple-Bobber119	@setvar! gameStartX 6433120    @setvar! gameStartY 3126121    @setvar! gameEndX 6438122    @setvar! gameEndY 3124123     124    if find gameVendorId ground -1 -1 4 as james125        while not gumpexists 2258988405126            menu james 1127            waitforgump 2258988405 5000128        endwhile129        if ingump "have 0 plays remaining" 2258988405130            if timer overheadMessageTimer >= overheadMessageTimerCd131            overhead "We are done with Apple-Bobber for today.. lets try another game!" 77132                settimer overheadMessageTimer 0133            endif134            gumpclose 2258988405135        else136            gumpresponse 2 2258988405137            wait 200138            if insysmsg "You are too far away to participate in this event."139                overhead "Move closer to the contest guy" 34140                wait 500141            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"142                settimer waitingInLineTimer 0143                while find gameVendorId ground -1 -1 4144                    if timer overheadMessageTimer >= overheadMessageTimerCd145                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34146                        settimer overheadMessageTimer 0147                    endif148                    if position gameStartX gameStartY149                        break150                    endif151                    wait 50152                endwhile153            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."154                overhead "We need to go buy tickets!" 287155                wait 2000156            endif157        endif158        if position gameStartX gameStartY159            while position gameStartX gameStartY160                wait 200161            endwhile162            if position gameEndX gameEndY163                say "I just finished, your turn!"164            endif165        endif166    endif167	168	##############169    ### Archery-Contest170    #########171	@setvar! gameVendorId Archery-Contest172 173    if find gameVendorId ground -1 -1 4 as james174        while not gumpexists 2258988405175            menu james 1176            waitforgump 2258988405 5000177        endwhile178        gumpresponse 2 2258988405179        wait 200180        @setvar! playingGame 1181        if ingump "have 0 plays remaining" 2258988405182            overhead "We are done with Archery-Contest for today.. lets try another game!" 88183            @setvar! playingGame 0184        elseif insysmsg "You are too far away to participate in this event."185            overhead "Move closer to the contest guy" 34186            wait 500187            replay188        elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"189            settimer waitingInLineTimer 0190            @setvar! playingGame 0191            while find gameVendorId ground -1 -1 4192                if timer overheadMessageTimer >= overheadMessageTimerCd193                    overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34194                    settimer overheadMessageTimer 0195                endif196                if paralyzed or findbuff "hinder"197                    @setvar! playingGame 1198                    break199                endif200                wait 50201            endwhile202        elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."203            overhead "We need to go buy tickets!" 287204            wait 2000205        endif206    endif207	208	##############209    ### Axe-Throw210    #########211	@setvar! gameVendorId Axe-Throw212	@setvar! gameStartX 6434213    @setvar! gameStartY 3099214    @setvar! gameEndX 6436215    @setvar! gameEndY 3099216     217    if find gameVendorId ground -1 -1 4 as james218        while not gumpexists 2258988405219            menu james 1220            waitforgump 2258988405 5000221        endwhile222        if ingump "have 0 plays remaining" 2258988405223            if timer overheadMessageTimer >= overheadMessageTimerCd224            overhead "We are done with Axe-Throw for today.. lets try another game!" 77225                settimer overheadMessageTimer 0226            endif227            gumpclose 2258988405228        else229            gumpresponse 2 2258988405230            wait 200231            if insysmsg "You are too far away to participate in this event."232                overhead "Move closer to the contest guy" 34233                wait 500234            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"235                settimer waitingInLineTimer 0236                while find gameVendorId ground -1 -1 4237                    if timer overheadMessageTimer >= overheadMessageTimerCd238                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34239                        settimer overheadMessageTimer 0240                    endif241                    if position gameStartX gameStartY242                        break243                    endif244                    wait 50245                endwhile246            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."247                overhead "We need to go buy tickets!" 287248                wait 2000249            endif250        endif251        if position gameStartX gameStartY252            while position gameStartX gameStartY253                wait 200254            endwhile255            if position gameEndX gameEndY256                say "I just finished, your turn!"257            endif258        endif259    endif260	261	##############262    ### Balloon-Pop263    #########264	@setvar! gameVendorId Balloon-Pop265	@setvar! gameStartX 6420266    @setvar! gameStartY 3088267    @setvar! gameEndX 6418268    @setvar! gameEndY 3083269     270    if find gameVendorId ground -1 -1 4 as james271        while not gumpexists 2258988405272            menu james 1273            waitforgump 2258988405 5000274        endwhile275        if ingump "have 0 plays remaining" 2258988405276            if timer overheadMessageTimer >= overheadMessageTimerCd277            overhead "We are done with Balloon-Pop for today.. lets try another game!" 77278                settimer overheadMessageTimer 0279            endif280            gumpclose 2258988405281        else282            gumpresponse 2 2258988405283            wait 200284            if insysmsg "You are too far away to participate in this event."285                overhead "Move closer to the contest guy" 34286                wait 500287            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"288                settimer waitingInLineTimer 0289                while find gameVendorId ground -1 -1 4290                    if timer overheadMessageTimer >= overheadMessageTimerCd291                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34292                        settimer overheadMessageTimer 0293                    endif294                    if position gameStartX gameStartY295                        break296                    endif297                    wait 50298                endwhile299            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."300                overhead "We need to go buy tickets!" 287301                wait 2000302            endif303        endif304        if position gameStartX gameStartY305            while position gameStartX gameStartY306                wait 200307            endwhile308            if position gameEndX gameEndY309                say "I just finished, your turn!"310            endif311        endif312    endif313	314	##############315    ### Bar-Creep316    #########317	@setvar! gameVendorId Bar-Creep318	@setvar! gameStartX 6434319    @setvar! gameStartY 3010320    @setvar! gameEndX 6432321    @setvar! gameEndY 3017322     323    if find gameVendorId ground -1 -1 4 as james324        while not gumpexists 2258988405325            menu james 1326            waitforgump 2258988405 5000327        endwhile328        if ingump "have 0 plays remaining" 2258988405329            if timer overheadMessageTimer >= overheadMessageTimerCd330            overhead "We are done with Bar-Creep for today.. lets try another game!" 77331                settimer overheadMessageTimer 0332            endif333            gumpclose 2258988405334        else335            gumpresponse 2 2258988405336            wait 200337            if insysmsg "You are too far away to participate in this event."338                overhead "Move closer to the contest guy" 34339                wait 500340            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"341                settimer waitingInLineTimer 0342                while find gameVendorId ground -1 -1 4343                    if timer overheadMessageTimer >= overheadMessageTimerCd344                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34345                        settimer overheadMessageTimer 0346                    endif347                    if position gameStartX gameStartY348                        break349                    endif350                    wait 50351                endwhile352            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."353                overhead "We need to go buy tickets!" 287354                wait 2000355            endif356        endif357        if position gameStartX gameStartY358            while position gameStartX gameStartY359                wait 200360            endwhile361            if position gameEndX gameEndY362                say "I just finished, your turn!"363            endif364        endif365    endif366	367	##############368    ### Bell-Striker369    #########370	@setvar! gameVendorId Bell-Striker371	@setvar! gameStartX 6433372    @setvar! gameStartY 3073373    @setvar! gameEndX 6436374    @setvar! gameEndY 3073375     376    if find gameVendorId ground -1 -1 4 as james377        while not gumpexists 2258988405378            menu james 1379            waitforgump 2258988405 5000380        endwhile381        if ingump "have 0 plays remaining" 2258988405382            if timer overheadMessageTimer >= overheadMessageTimerCd383            overhead "We are done with Bell-Striker for today.. lets try another game!" 77384                settimer overheadMessageTimer 0385            endif386            gumpclose 2258988405387        else388            gumpresponse 2 2258988405389            wait 200390            if insysmsg "You are too far away to participate in this event."391                overhead "Move closer to the contest guy" 34392                wait 500393            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"394                settimer waitingInLineTimer 0395                while find gameVendorId ground -1 -1 4396                    if timer overheadMessageTimer >= overheadMessageTimerCd397                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34398                        settimer overheadMessageTimer 0399                    endif400                    if position gameStartX gameStartY401                        break402                    endif403                    wait 50404                endwhile405            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."406                overhead "We need to go buy tickets!" 287407                wait 2000408            endif409        endif410        if position gameStartX gameStartY411            while position gameStartX gameStartY412                wait 200413            endwhile414            if position gameEndX gameEndY415                say "I just finished, your turn!"416            endif417        endif418    endif419	420	##############421    ### Boxing-Match422    #########423	@setvar! gameVendorId Boxing-Match424 425    if find gameVendorId ground -1 -1 4 as james426        while not gumpexists 2258988405427            menu james 1428            waitforgump 2258988405 5000429        endwhile430        gumpresponse 2 2258988405431        wait 200432        @setvar! playingGame 1433        if ingump "have 0 plays remaining" 2258988405434            overhead "We are done with Boxing-Match for today.. lets try another game!" 88435            @setvar! playingGame 0436        elseif insysmsg "You are too far away to participate in this event."437            overhead "Move closer to the contest guy" 34438            wait 500439            replay440        elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"441            settimer waitingInLineTimer 0442            @setvar! playingGame 0443            while find gameVendorId ground -1 -1 4444                if timer overheadMessageTimer >= overheadMessageTimerCd445                    overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34446                    settimer overheadMessageTimer 0447                endif448                if paralyzed or findbuff "hinder"449                    @setvar! playingGame 1450                    break451                endif452                wait 50453            endwhile454        elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."455            overhead "We need to go buy tickets!" 287456            wait 2000457        endif458    endif459	460	##############461    ### Caravan-Pusher462    #########463		@setvar! gameVendorId Caravan-Pusher464 465    if find gameVendorId ground -1 -1 4 as james466        while not gumpexists 2258988405467            menu james 1468            waitforgump 2258988405 5000469        endwhile470        gumpresponse 2 2258988405471        wait 200472        @setvar! playingGame 1473        if ingump "have 0 plays remaining" 2258988405474            overhead "We are done with Caravan-Pusher for today.. lets try another game!" 88475            @setvar! playingGame 0476        elseif insysmsg "You are too far away to participate in this event."477            overhead "Move closer to the contest guy" 34478            wait 500479            replay480        elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"481            settimer waitingInLineTimer 0482            @setvar! playingGame 0483            while find gameVendorId ground -1 -1 4484                if timer overheadMessageTimer >= overheadMessageTimerCd485                    overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34486                    settimer overheadMessageTimer 0487                endif488                if paralyzed or findbuff "hinder"489                    @setvar! playingGame 1490                    break491                endif492                wait 50493            endwhile494        elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."495            overhead "We need to go buy tickets!" 287496            wait 2000497        endif498    endif499	500	##############501    ### Cannon-Brawl502    #########503	@setvar! gameVendorId Cannon-Bawl504	@setvar! gameStartX 6397505    @setvar! gameStartY 3048506    @setvar! gameEndX 6408507    @setvar! gameEndY 3049508     509    if find gameVendorId ground -1 -1 4 as james510        while not gumpexists 2258988405511            menu james 1512            waitforgump 2258988405 5000513        endwhile514        if ingump "have 0 plays remaining" 2258988405515            if timer overheadMessageTimer >= overheadMessageTimerCd516            overhead "We are done with Cannon-Bawl for today.. lets try another game!" 77517                settimer overheadMessageTimer 0518            endif519            gumpclose 2258988405520        else521            gumpresponse 2 2258988405522            wait 200523            if insysmsg "You are too far away to participate in this event."524                overhead "Move closer to the contest guy" 34525                wait 500526            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"527                settimer waitingInLineTimer 0528                while find gameVendorId ground -1 -1 4529                    if timer overheadMessageTimer >= overheadMessageTimerCd530                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34531                        settimer overheadMessageTimer 0532                    endif533                    if position gameStartX gameStartY534                        break535                    endif536                    wait 50537                endwhile538            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."539                overhead "We need to go buy tickets!" 287540                wait 2000541            endif542        endif543        if position gameStartX gameStartY544            while position gameStartX gameStartY545                wait 200546            endwhile547            if position gameEndX gameEndY548                say "I just finished, your turn!"549            endif550        endif551    endif552	553	##############554    ### Candyugh-Arena555    #########556	@setvar! gameVendorId Candyugh-Arena557	@setvar! gameStartX 6390558    @setvar! gameStartY 3075559    @setvar! gameEndX 6400560    @setvar! gameEndY 3080561     562    if find gameVendorId ground -1 -1 4 as james563        while not gumpexists 2258988405564            menu james 1565            waitforgump 2258988405 5000566        endwhile567        if ingump "have 0 plays remaining" 2258988405568            if timer overheadMessageTimer >= overheadMessageTimerCd569            overhead "We are done with Candyugh-Arena for today.. lets try another game!" 77570                settimer overheadMessageTimer 0571            endif572            gumpclose 2258988405573        else574            gumpresponse 2 2258988405575            wait 200576            if insysmsg "You are too far away to participate in this event."577                overhead "Move closer to the contest guy" 34578                wait 500579            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"580                settimer waitingInLineTimer 0581                while find gameVendorId ground -1 -1 4582                    if timer overheadMessageTimer >= overheadMessageTimerCd583                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34584                        settimer overheadMessageTimer 0585                    endif586                    if position gameStartX gameStartY587                        break588                    endif589                    wait 50590                endwhile591            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."592                overhead "We need to go buy tickets!" 287593                wait 2000594            endif595        endif596        if position gameStartX gameStartY597            while position gameStartX gameStartY598                wait 200599            endwhile600            if position gameEndX gameEndY601                say "I just finished, your turn!"602            endif603        endif604    endif605	606	##############607    ### Coop-Shoot608    #########609	@setvar! gameVendorId Coop-Shoot610	@setvar! gameStartX 6419611    @setvar! gameStartY 3152612    @setvar! gameEndX 6423613    @setvar! gameEndY 3151614     615    if find gameVendorId ground -1 -1 4 as james616        while not gumpexists 2258988405617            menu james 1618            waitforgump 2258988405 5000619        endwhile620        if ingump "have 0 plays remaining" 2258988405621            if timer overheadMessageTimer >= overheadMessageTimerCd622            overhead "We are done with Coop-Shoot for today.. lets try another game!" 77623                settimer overheadMessageTimer 0624            endif625            gumpclose 2258988405626        else627            gumpresponse 2 2258988405628            wait 200629            if insysmsg "You are too far away to participate in this event."630                overhead "Move closer to the contest guy" 34631                wait 500632            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"633                settimer waitingInLineTimer 0634                while find gameVendorId ground -1 -1 4635                    if timer overheadMessageTimer >= overheadMessageTimerCd636                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34637                        settimer overheadMessageTimer 0638                    endif639                    if position gameStartX gameStartY640                        break641                    endif642                    wait 50643                endwhile644            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."645                overhead "We need to go buy tickets!" 287646                wait 2000647            endif648        endif649        if position gameStartX gameStartY650            while position gameStartX gameStartY651                wait 200652            endwhile653            if position gameEndX gameEndY654                say "I just finished, your turn!"655            endif656        endif657    endif658	659	##############660    ### Derby-Race661    #########662	@setvar! gameVendorId Derby-Race663 664    if find gameVendorId ground -1 -1 4 as james665        while not gumpexists 2258988405666            menu james 1667            waitforgump 2258988405 5000668        endwhile669        gumpresponse 2 2258988405670        wait 200671        @setvar! playingGame 1672        if ingump "have 0 plays remaining" 2258988405673            overhead "We are done with Derby-Race for today.. lets try another game!" 88674            @setvar! playingGame 0675        elseif insysmsg "You are too far away to participate in this event."676            overhead "Move closer to the contest guy" 34677            wait 500678            replay679        elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"680            settimer waitingInLineTimer 0681            @setvar! playingGame 0682            while find gameVendorId ground -1 -1 4683                if timer overheadMessageTimer >= overheadMessageTimerCd684                    overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34685                    settimer overheadMessageTimer 0686                endif687                if paralyzed or findbuff "hinder"688                    @setvar! playingGame 1689                    break690                endif691                wait 50692            endwhile693        elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."694            overhead "We need to go buy tickets!" 287695            wait 2000696        endif697    endif698	699	##############700    ### Drinking-Contest701    #########702	@setvar! gameVendorId Drinking-Contest703 704    if find gameVendorId ground -1 -1 4 as james705        while not gumpexists 2258988405706            menu james 1707            waitforgump 2258988405 5000708        endwhile709        gumpresponse 2 2258988405710        wait 500711        @setvar! playingGame 1712        if ingump "have 0 plays remaining" 2258988405713            overhead "We are done with Drinking-Contest for today.. lets try another game!" 88714            @setvar! playingGame 0715			gumpclose 2258988405716        elseif insysmsg "You are too far away to participate in this event."717            overhead "Move closer to the contest guy" 34718            wait 500719            replay720        elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"721            settimer waitingInLineTimer 0722            @setvar! playingGame 0723            while find gameVendorId ground -1 -1 4724                if timer overheadMessageTimer >= overheadMessageTimerCd725                    overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34726                    settimer overheadMessageTimer 0727                endif728                if paralyzed or findbuff "hinder"729                    @setvar! playingGame 1730                    break731                endif732                wait 500733            endwhile734        elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."735            overhead "We need to go buy tickets!" 287736            wait 2000737        endif738    endif739	740	##############741    ### Dunk-Tank742    #########743	@setvar! gameVendorId Dunk-Tank744	@setvar! gameStartX 6439745    @setvar! gameStartY 3060746    @setvar! gameEndX 6440747    @setvar! gameEndY 3058748     749    if find gameVendorId ground -1 -1 4 as james750        while not gumpexists 2258988405751            menu james 1752            waitforgump 2258988405 5000753        endwhile754        if ingump "have 0 plays remaining" 2258988405755            if timer overheadMessageTimer >= overheadMessageTimerCd756            overhead "We are done with Dunk-Tank for today.. lets try another game!" 77757                settimer overheadMessageTimer 0758            endif759            gumpclose 2258988405760        else761            gumpresponse 2 2258988405762            wait 200763            if insysmsg "You are too far away to participate in this event."764                overhead "Move closer to the contest guy" 34765                wait 500766            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"767                settimer waitingInLineTimer 0768                while find gameVendorId ground -1 -1 4769                    if timer overheadMessageTimer >= overheadMessageTimerCd770                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34771                        settimer overheadMessageTimer 0772                    endif773                    if position gameStartX gameStartY774                        break775                    endif776                    wait 50777                endwhile778            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."779                overhead "We need to go buy tickets!" 287780                wait 2000781            endif782        endif783        if position gameStartX gameStartY784            while position gameStartX gameStartY785                wait 200786            endwhile787            if position gameEndX gameEndY788                say "I just finished, your turn!"789            endif790        endif791    endif792	793	##############794    ### Dye-Dye-Dye795    #########796	@setvar! gameVendorId Dye-Dye-Dye797 798    if find gameVendorId ground -1 -1 4 as james799        while not gumpexists 2258988405800            menu james 1801            waitforgump 2258988405 5000802        endwhile803        gumpresponse 2 2258988405804        wait 200805        @setvar! playingGame 1806        if ingump "have 0 plays remaining" 2258988405807            overhead "We are done with Dye-Dye-Dye for today.. lets try another game!" 88808            @setvar! playingGame 0809        elseif insysmsg "You are too far away to participate in this event."810            overhead "Move closer to the contest guy" 34811            wait 500812            replay813        elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"814            settimer waitingInLineTimer 0815            @setvar! playingGame 0816            while find gameVendorId ground -1 -1 4817                if timer overheadMessageTimer >= overheadMessageTimerCd818                    overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34819                    settimer overheadMessageTimer 0820                endif821                if paralyzed or findbuff "hinder"822                    @setvar! playingGame 1823                    break824                endif825                wait 50826            endwhile827        elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."828            overhead "We need to go buy tickets!" 287829            wait 2000830        endif831    endif832	833	##############834    ### Eating-Contest835    #########836	@setvar! gameVendorId Eating-Contest837	@setvar! gameStartX 6433838    @setvar! gameStartY 3138839    @setvar! gameEndX 6436 840    @setvar! gameEndY 3142841     842    if find gameVendorId ground -1 -1 4 as james843        while not gumpexists 2258988405844            menu james 1845            waitforgump 2258988405 5000846        endwhile847        if ingump "have 0 plays remaining" 2258988405848            if timer overheadMessageTimer >= overheadMessageTimerCd849            overhead "We are done with Eating-Contest for today.. lets try another game!" 77850                settimer overheadMessageTimer 0851            endif852            gumpclose 2258988405853        else854            gumpresponse 2 2258988405855            wait 200856            if insysmsg "You are too far away to participate in this event."857                overhead "Move closer to the contest guy" 34858                wait 500859            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"860                settimer waitingInLineTimer 0861                while find gameVendorId ground -1 -1 4862                    if timer overheadMessageTimer >= overheadMessageTimerCd863                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34864                        settimer overheadMessageTimer 0865                    endif866                    if position gameStartX gameStartY867                        break868                    endif869                    wait 50870                endwhile871            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."872                overhead "We need to go buy tickets!" 287873                wait 2000874            endif875        endif876        if position gameStartX gameStartY877            while position gameStartX gameStartY878                wait 200879            endwhile880            if position gameEndX gameEndY881                say "I just finished, your turn!"882            endif883        endif884    endif885	886	##############887    ### Fishing-Contest888    #########889	@setvar! gameVendorId Fishing-Contest890	@setvar! gameStartX 6486891    @setvar! gameStartY 3088892    @setvar! gameEndX  6487893    @setvar! gameEndY 3076894     895    if find gameVendorId ground -1 -1 4 as james896        while not gumpexists 2258988405897            menu james 1898            waitforgump 2258988405 5000899        endwhile900        if ingump "have 0 plays remaining" 2258988405901            if timer overheadMessageTimer >= overheadMessageTimerCd902            overhead "We are done with Fishing-Contest for today.. lets try another game!" 77903                settimer overheadMessageTimer 0904            endif905            gumpclose 2258988405906        else907            gumpresponse 2 2258988405908            wait 200909            if insysmsg "You are too far away to participate in this event."910                overhead "Move closer to the contest guy" 34911                wait 500912            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"913                settimer waitingInLineTimer 0914                while find gameVendorId ground -1 -1 4915                    if timer overheadMessageTimer >= overheadMessageTimerCd916                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34917                        settimer overheadMessageTimer 0918                    endif919                    if position gameStartX gameStartY920                        break921                    endif922                    wait 50923                endwhile924            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."925                overhead "We need to go buy tickets!" 287926                wait 2000927            endif928        endif929        if position gameStartX gameStartY930            while position gameStartX gameStartY931                wait 200932            endwhile933            if position gameEndX gameEndY934                say "I just finished, your turn!"935            endif936        endif937    endif938	939	##############940    ### Jousting941    #########942	@setvar! gameVendorId Jousting943 944    if find gameVendorId ground -1 -1 4 as james945        while not gumpexists 2258988405946            menu james 1947            waitforgump 2258988405 5000948        endwhile949        gumpresponse 2 2258988405950        wait 200951        @setvar! playingGame 1952        if ingump "have 0 plays remaining" 2258988405953            overhead "We are done with Jousting for today.. lets try another game!" 88954            @setvar! playingGame 0955        elseif insysmsg "You are too far away to participate in this event."956            overhead "Move closer to the contest guy" 34957            wait 500958            replay959        elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"960            settimer waitingInLineTimer 0961            @setvar! playingGame 0962            while find gameVendorId ground -1 -1 4963                if timer overheadMessageTimer >= overheadMessageTimerCd964                    overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 34965                    settimer overheadMessageTimer 0966                endif967                if paralyzed or findbuff "hinder"968                    @setvar! playingGame 1969                    break970                endif971                wait 50972            endwhile973        elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."974            overhead "We need to go buy tickets!" 287975            wait 2000976        endif977    endif978	979	##############980    ### Ladder-Golf981    #########982	@setvar! gameVendorId Ladder-Golf983	@setvar! gameStartX 6435984    @setvar! gameStartY 3087985    @setvar! gameEndX 6438986    @setvar! gameEndY 3088987     988    if find gameVendorId ground -1 -1 4 as james989        while not gumpexists 2258988405990            menu james 1991            waitforgump 2258988405 5000992        endwhile993        if ingump "have 0 plays remaining" 2258988405994            if timer overheadMessageTimer >= overheadMessageTimerCd995            overhead "We are done with Ladder-Golf for today.. lets try another game!" 77996                settimer overheadMessageTimer 0997            endif998            gumpclose 2258988405999        else1000            gumpresponse 2 22589884051001            wait 2001002            if insysmsg "You are too far away to participate in this event."1003                overhead "Move closer to the contest guy" 341004                wait 5001005            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1006                settimer waitingInLineTimer 01007                while find gameVendorId ground -1 -1 41008                    if timer overheadMessageTimer >= overheadMessageTimerCd1009                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341010                        settimer overheadMessageTimer 01011                    endif1012                    if position gameStartX gameStartY1013                        break1014                    endif1015                    wait 501016                endwhile1017            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1018                overhead "We need to go buy tickets!" 2871019                wait 20001020            endif1021        endif1022        if position gameStartX gameStartY1023            while position gameStartX gameStartY1024                wait 2001025            endwhile1026            if position gameEndX gameEndY1027                say "I just finished, your turn!"1028            endif1029        endif1030    endif1031	1032	##############1033    ### Log-Cutter1034    #########1035	@setvar! gameVendorId Log-Cutter1036	@setvar! gameStartX 64201037    @setvar! gameStartY 30701038    @setvar! gameEndX 64191039    @setvar! gameEndY 30761040     1041    if find gameVendorId ground -1 -1 4 as james1042        while not gumpexists 22589884051043            menu james 11044            waitforgump 2258988405 50001045        endwhile1046        if ingump "have 0 plays remaining" 22589884051047            if timer overheadMessageTimer >= overheadMessageTimerCd1048            overhead "We are done with Log-Cutter for today.. lets try another game!" 771049                settimer overheadMessageTimer 01050            endif1051            gumpclose 22589884051052        else1053            gumpresponse 2 22589884051054            wait 2001055            if insysmsg "You are too far away to participate in this event."1056                overhead "Move closer to the contest guy" 341057                wait 5001058            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1059                settimer waitingInLineTimer 01060                while find gameVendorId ground -1 -1 41061                    if timer overheadMessageTimer >= overheadMessageTimerCd1062                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341063                        settimer overheadMessageTimer 01064                    endif1065                    if position gameStartX gameStartY1066                        break1067                    endif1068                    wait 501069                endwhile1070            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1071                overhead "We need to go buy tickets!" 2871072                wait 20001073            endif1074        endif1075        if position gameStartX gameStartY1076            while position gameStartX gameStartY1077                wait 2001078            endwhile1079            if position gameEndX gameEndY1080                say "I just finished, your turn!"1081            endif1082        endif1083    endif1084	1085	##############1086    ### Log-Rolling1087    #########1088	@setvar! gameVendorId Log-Rolling1089 1090    if find gameVendorId ground -1 -1 4 as james1091        while not gumpexists 22589884051092            menu james 11093            waitforgump 2258988405 50001094        endwhile1095        gumpresponse 2 22589884051096        wait 2001097        @setvar! playingGame 11098        if ingump "have 0 plays remaining" 22589884051099            overhead "We are done with Log-Rolling for today.. lets try another game!" 881100            @setvar! playingGame 01101			gumpclose 22589884051102        elseif insysmsg "You are too far away to participate in this event."1103            overhead "Move closer to the contest guy" 341104            wait 5001105            replay1106        elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1107            settimer waitingInLineTimer 01108            @setvar! playingGame 01109            while find gameVendorId ground -1 -1 41110                if timer overheadMessageTimer >= overheadMessageTimerCd1111                    overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341112                    settimer overheadMessageTimer 01113                endif1114                if paralyzed or findbuff "hinder"1115                    @setvar! playingGame 11116                    break1117                endif1118                wait 501119            endwhile1120        elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1121            overhead "We need to go buy tickets!" 2871122            wait 20001123        endif1124    endif1125	1126	##############1127    ### Packmaster1128    #########1129	@setvar! gameVendorId Packmaster1130	@setvar! gameStartX 64471131    @setvar! gameStartY 31301132    @setvar! gameEndX 64461133    @setvar! gameEndY 31391134     1135    if find gameVendorId ground -1 -1 4 as james1136        while not gumpexists 22589884051137            menu james 11138            waitforgump 2258988405 50001139        endwhile1140        if ingump "have 0 plays remaining" 22589884051141            if timer overheadMessageTimer >= overheadMessageTimerCd1142            overhead "We are done with Packmaster for today.. lets try another game!" 771143                settimer overheadMessageTimer 01144            endif1145            gumpclose 22589884051146        else1147            gumpresponse 2 22589884051148            wait 2001149            if insysmsg "You are too far away to participate in this event."1150                overhead "Move closer to the contest guy" 341151                wait 5001152            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1153                settimer waitingInLineTimer 01154                while find gameVendorId ground -1 -1 41155                    if timer overheadMessageTimer >= overheadMessageTimerCd1156                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341157                        settimer overheadMessageTimer 01158                    endif1159                    if position gameStartX gameStartY1160                        break1161                    endif1162                    wait 501163                endwhile1164            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1165                overhead "We need to go buy tickets!" 2871166                wait 20001167            endif1168        endif1169        if position gameStartX gameStartY1170            while position gameStartX gameStartY1171                wait 2001172            endwhile1173            if position gameEndX gameEndY1174                say "I just finished, your turn!"1175            endif1176        endif1177    endif1178	1179	##############1180    ### Plucky-Musician1181    #########1182	@setvar! gameVendorId Plucky-Musician1183	@setvar! gameStartX 64051184    @setvar! gameStartY 31261185    @setvar! gameEndX 64131186    @setvar! gameEndY 31221187     1188    if find gameVendorId ground -1 -1 4 as james1189        while not gumpexists 22589884051190            menu james 11191            waitforgump 2258988405 50001192        endwhile1193        if ingump "have 0 plays remaining" 22589884051194            if timer overheadMessageTimer >= overheadMessageTimerCd1195            overhead "We are done with Plucky-Musician for today.. lets try another game!" 771196                settimer overheadMessageTimer 01197            endif1198            gumpclose 22589884051199        else1200            gumpresponse 2 22589884051201            wait 2001202            if insysmsg "You are too far away to participate in this event."1203                overhead "Move closer to the contest guy" 341204                wait 5001205            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1206                settimer waitingInLineTimer 01207                while find gameVendorId ground -1 -1 41208                    if timer overheadMessageTimer >= overheadMessageTimerCd1209                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341210                        settimer overheadMessageTimer 01211                    endif1212                    if position gameStartX gameStartY1213                        break1214                    endif1215                    wait 501216                endwhile1217            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1218                overhead "We need to go buy tickets!" 2871219                wait 20001220            endif1221        endif1222        if position gameStartX gameStartY1223            while position gameStartX gameStartY1224                wait 2001225            endwhile1226            if position gameEndX gameEndY1227                say "I just finished, your turn!"1228            endif1229        endif1230    endif1231	1232	##############1233    ### Produce-Pitch1234    #########1235	@setvar! gameVendorId Produce-Pitch1236	@setvar! gameStartX 64191237    @setvar! gameStartY 31091238    @setvar! gameEndX 64191239    @setvar! gameEndY 31101240     1241    if find gameVendorId ground -1 -1 4 as james1242        while not gumpexists 22589884051243            menu james 11244            waitforgump 2258988405 50001245        endwhile1246        if ingump "have 0 plays remaining" 22589884051247            if timer overheadMessageTimer >= overheadMessageTimerCd1248            overhead "We are done with Produce-Pitch for today.. lets try another game!" 771249                settimer overheadMessageTimer 01250            endif1251            gumpclose 22589884051252        else1253            gumpresponse 2 22589884051254            wait 2001255            if insysmsg "You are too far away to participate in this event."1256                overhead "Move closer to the contest guy" 341257                wait 5001258            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1259                settimer waitingInLineTimer 01260                while find gameVendorId ground -1 -1 41261                    if timer overheadMessageTimer >= overheadMessageTimerCd1262                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341263                        settimer overheadMessageTimer 01264                    endif1265                    if position gameStartX gameStartY1266                        break1267                    endif1268                    wait 501269                endwhile1270            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1271                overhead "We need to go buy tickets!" 2871272                wait 20001273            endif1274        endif1275        if position gameStartX gameStartY1276            while position gameStartX gameStartY1277                wait 2001278            endwhile1279            if position gameEndX gameEndY1280                say "I just finished, your turn!"1281            endif1282        endif1283    endif1284	1285	##############1286    ### Pylon-Gladiator1287    #########1288	@setvar! gameVendorId Pylon-Gladiator1289 1290    if find gameVendorId ground -1 -1 4 as james1291        while not gumpexists 22589884051292            menu james 11293            waitforgump 2258988405 50001294        endwhile1295        gumpresponse 2 22589884051296        wait 2001297        @setvar! playingGame 11298        if ingump "have 0 plays remaining" 22589884051299            overhead "We are done with Pylon-Gladiator for today.. lets try another game!" 881300            @setvar! playingGame 01301        elseif insysmsg "You are too far away to participate in this event."1302            overhead "Move closer to the contest guy" 341303            wait 5001304            replay1305        elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1306            settimer waitingInLineTimer 01307            @setvar! playingGame 01308            while find gameVendorId ground -1 -1 41309                if timer overheadMessageTimer >= overheadMessageTimerCd1310                    overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341311                    settimer overheadMessageTimer 01312                endif1313                if paralyzed or findbuff "hinder"1314                    @setvar! playingGame 11315                    break1316                endif1317                wait 501318            endwhile1319        elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1320            overhead "We need to go buy tickets!" 2871321            wait 20001322        endif1323    endif1324	1325	##############1326    ### Quartermaster1327    #########1328	@setvar! gameVendorId Quartermaster1329	@setvar! gameStartX 64831330    @setvar! gameStartY 31541331    @setvar! gameEndX 64911332    @setvar! gameEndY 31591333     1334    if find gameVendorId ground -1 -1 4 as james1335        while not gumpexists 22589884051336            menu james 11337            waitforgump 2258988405 50001338        endwhile1339        if ingump "have 0 plays remaining" 22589884051340            if timer overheadMessageTimer >= overheadMessageTimerCd1341            overhead "We are done with Quartermaster for today.. lets try another game!" 771342                settimer overheadMessageTimer 01343            endif1344            gumpclose 22589884051345        else1346            gumpresponse 2 22589884051347            wait 2001348            if insysmsg "You are too far away to participate in this event."1349                overhead "Move closer to the contest guy" 341350                wait 5001351            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1352                settimer waitingInLineTimer 01353                while find gameVendorId ground -1 -1 41354                    if timer overheadMessageTimer >= overheadMessageTimerCd1355                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341356                        settimer overheadMessageTimer 01357                    endif1358                    if position gameStartX gameStartY1359                        break1360                    endif1361                    wait 501362                endwhile1363            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1364                overhead "We need to go buy tickets!" 2871365                wait 20001366            endif1367        endif1368        if position gameStartX gameStartY1369            while position gameStartX gameStartY1370                wait 2001371            endwhile1372            if position gameEndX gameEndY1373                say "I just finished, your turn!"1374            endif1375        endif1376    endif1377	1378	##############1379    ### Rage-Cage1380    #########1381	@setvar! gameVendorId Rage-Cage1382	@setvar! gameStartX 65431383    @setvar! gameStartY 31371384    @setvar! gameEndX 65421385    @setvar! gameEndY 31421386     1387    if find gameVendorId ground -1 -1 4 as james1388        while not gumpexists 22589884051389            menu james 11390            waitforgump 2258988405 50001391        endwhile1392        if ingump "have 0 plays remaining" 22589884051393            if timer overheadMessageTimer >= overheadMessageTimerCd1394				overhead "We are done with Rage-Cage for today.. lets try another game!" 771395                settimer overheadMessageTimer 01396            endif1397            gumpclose 22589884051398        else1399            gumpresponse 2 22589884051400            wait 2001401            if insysmsg "You are too far away to participate in this event."1402                overhead "Move closer to the contest guy" 341403                wait 5001404            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1405                settimer waitingInLineTimer 01406                while find gameVendorId ground -1 -1 41407                    if timer overheadMessageTimer >= overheadMessageTimerCd1408                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341409                        settimer overheadMessageTimer 01410                    endif1411                    if position gameStartX gameStartY1412                        break1413                    endif1414                    wait 501415                endwhile1416            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1417                overhead "We need to go buy tickets!" 2871418                wait 20001419            endif1420        endif1421        if position gameStartX gameStartY1422            while position gameStartX gameStartY1423                wait 2001424            endwhile1425            if position gameEndX gameEndY1426                say "I just finished, your turn!"1427            endif1428        endif1429    endif1430	1431	##############1432    ### Ship-Race1433    #########1434	@setvar! gameVendorId Ship-Race1435 1436    if find gameVendorId ground -1 -1 4 as james1437        while not gumpexists 22589884051438            menu james 11439            waitforgump 2258988405 50001440        endwhile1441        gumpresponse 2 22589884051442        wait 2001443        @setvar! playingGame 11444        if ingump "have 0 plays remaining" 22589884051445            overhead "We are done with Ship-Race for today.. lets try another game!" 881446            @setvar! playingGame 01447        elseif insysmsg "You are too far away to participate in this event."1448            overhead "Move closer to the contest guy" 341449            wait 5001450            replay1451        elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1452            settimer waitingInLineTimer 01453            @setvar! playingGame 01454            while find gameVendorId ground -1 -1 41455                if timer overheadMessageTimer >= overheadMessageTimerCd1456                    overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341457                    settimer overheadMessageTimer 01458                endif1459                if paralyzed or findbuff "hinder"1460                    @setvar! playingGame 11461                    break1462                endif1463                wait 501464            endwhile1465        elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1466            overhead "We need to go buy tickets!" 2871467            wait 20001468        endif1469    endif1470	1471	##############1472    ### Skeet-Shooting1473    #########1474	@setvar! gameVendorId Skeet-Shooting1475	@setvar! gameStartX 65231476    @setvar! gameStartY 31021477    @setvar! gameEndX 65281478    @setvar! gameEndY 31061479     1480    if find gameVendorId ground -1 -1 4 as james1481        while not gumpexists 22589884051482            menu james 11483            waitforgump 2258988405 50001484        endwhile1485        if ingump "have 0 plays remaining" 22589884051486            if timer overheadMessageTimer >= overheadMessageTimerCd1487            overhead "We are done with Skeet-Shooting for today.. lets try another game!" 771488                settimer overheadMessageTimer 01489            endif1490            gumpclose 22589884051491        else1492            gumpresponse 2 22589884051493            wait 2001494            if insysmsg "You are too far away to participate in this event."1495                overhead "Move closer to the contest guy" 341496                wait 5001497            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1498                settimer waitingInLineTimer 01499                while find gameVendorId ground -1 -1 41500                    if timer overheadMessageTimer >= overheadMessageTimerCd1501                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341502                        settimer overheadMessageTimer 01503                    endif1504                    if position gameStartX gameStartY1505                        break1506                    endif1507                    wait 501508                endwhile1509            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1510                overhead "We need to go buy tickets!" 2871511                wait 20001512            endif1513        endif1514        if position gameStartX gameStartY1515            while position gameStartX gameStartY1516                wait 2001517            endwhile1518            if position gameEndX gameEndY1519                say "I just finished, your turn!"1520            endif1521        endif1522    endif1523	1524	##############1525    ### Squiball1526    #########1527	@setvar! gameVendorId Squiball1528	@setvar! gameStartX 65291529    @setvar! gameStartY 30491530    @setvar! gameEndX 65291531    @setvar! gameEndY 30531532     1533    if find gameVendorId ground -1 -1 4 as james1534        while not gumpexists 22589884051535            menu james 11536            waitforgump 2258988405 50001537        endwhile1538        if ingump "have 0 plays remaining" 22589884051539            if timer overheadMessageTimer >= overheadMessageTimerCd1540            overhead "We are done with Squiball for today.. lets try another game!" 771541                settimer overheadMessageTimer 01542            endif1543            gumpclose 22589884051544        else1545            gumpresponse 2 22589884051546            wait 2001547            if insysmsg "You are too far away to participate in this event."1548                overhead "Move closer to the contest guy" 341549                wait 5001550            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1551                settimer waitingInLineTimer 01552                while find gameVendorId ground -1 -1 41553                    if timer overheadMessageTimer >= overheadMessageTimerCd1554                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341555                        settimer overheadMessageTimer 01556                    endif1557                    if position gameStartX gameStartY1558                        break1559                    endif1560                    wait 501561                endwhile1562            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1563                overhead "We need to go buy tickets!" 2871564                wait 20001565            endif1566        endif1567        if position gameStartX gameStartY1568            while position gameStartX gameStartY1569                wait 2001570            endwhile1571            if position gameEndX gameEndY1572                say "I just finished, your turn!"1573            endif1574        endif1575    endif1576 1577	##############1578    ### Statue-Carving1579    #########1580	@setvar! gameVendorId Statue-Carving1581	@setvar! gameStartX 64171582    @setvar! gameStartY 30561583    @setvar! gameEndX 64241584    @setvar! gameEndY 30561585     1586    if find gameVendorId ground -1 -1 4 as james1587        while not gumpexists 22589884051588            menu james 11589            waitforgump 2258988405 50001590        endwhile1591        if ingump "have 0 plays remaining" 22589884051592            if timer overheadMessageTimer >= overheadMessageTimerCd1593            overhead "We are done with Statue-Carving for today.. lets try another game!" 771594                settimer overheadMessageTimer 01595            endif1596            gumpclose 22589884051597        else1598            gumpresponse 2 22589884051599            wait 2001600            if insysmsg "You are too far away to participate in this event."1601                overhead "Move closer to the contest guy" 341602                wait 5001603            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1604                settimer waitingInLineTimer 01605                while find gameVendorId ground -1 -1 41606                    if timer overheadMessageTimer >= overheadMessageTimerCd1607                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341608                        settimer overheadMessageTimer 01609                    endif1610                    if position gameStartX gameStartY1611                        break1612                    endif1613                    wait 501614                endwhile1615            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1616                overhead "We need to go buy tickets!" 2871617                wait 20001618            endif1619        endif1620        if position gameStartX gameStartY1621            while position gameStartX gameStartY1622                wait 2001623            endwhile1624            if position gameEndX gameEndY1625                say "I just finished, your turn!"1626            endif1627        endif1628    endif1629	1630	##############1631    ### Tomato-Justice1632    #########1633	@setvar! gameVendorId Tomato-Justice1634	@setvar! gameStartX 65111635    @setvar! gameStartY 30051636    @setvar! gameEndX 64991637    @setvar! gameEndY 30111638     1639    if find gameVendorId ground -1 -1 4 as james1640        while not gumpexists 22589884051641            menu james 11642            waitforgump 2258988405 50001643        endwhile1644        if ingump "have 0 plays remaining" 22589884051645            if timer overheadMessageTimer >= overheadMessageTimerCd1646            overhead "We are done with Tomato-Justice for today.. lets try another game!" 771647                settimer overheadMessageTimer 01648            endif1649            gumpclose 22589884051650        else1651            gumpresponse 2 22589884051652            wait 2001653            if insysmsg "You are too far away to participate in this event."1654                overhead "Move closer to the contest guy" 341655                wait 5001656            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1657                settimer waitingInLineTimer 01658                while find gameVendorId ground -1 -1 41659                    if timer overheadMessageTimer >= overheadMessageTimerCd1660                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341661                        settimer overheadMessageTimer 01662                    endif1663                    if position gameStartX gameStartY1664                        break1665                    endif1666                    wait 501667                endwhile1668            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1669                overhead "We need to go buy tickets!" 2871670                wait 20001671            endif1672        endif1673        if position gameStartX gameStartY1674            while position gameStartX gameStartY1675                wait 2001676            endwhile1677            if position gameEndX gameEndY1678                say "I just finished, your turn!"1679            endif1680        endif1681    endif1682	1683	##############1684    ### Totem-Stacker1685    #########1686	@setvar! gameVendorId Totem-Stacker1687	@setvar! gameStartX 64241688    @setvar! gameStartY 29831689    @setvar! gameEndX 64251690    @setvar! gameEndY 29881691     1692    if find gameVendorId ground -1 -1 4 as james1693        while not gumpexists 22589884051694            menu james 11695            waitforgump 2258988405 50001696        endwhile1697        if ingump "have 0 plays remaining" 22589884051698            if timer overheadMessageTimer >= overheadMessageTimerCd1699            overhead "We are done with Totem-Stacker for today.. lets try another game!" 771700                settimer overheadMessageTimer 01701            endif1702            gumpclose 22589884051703        else1704            gumpresponse 2 22589884051705            wait 2001706            if insysmsg "You are too far away to participate in this event."1707                overhead "Move closer to the contest guy" 341708                wait 5001709            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1710                settimer waitingInLineTimer 01711                while find gameVendorId ground -1 -1 41712                    if timer overheadMessageTimer >= overheadMessageTimerCd1713                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341714                        settimer overheadMessageTimer 01715                    endif1716                    if position gameStartX gameStartY1717                        break1718                    endif1719                    wait 501720                endwhile1721            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1722                overhead "We need to go buy tickets!" 2871723                wait 20001724            endif1725        endif1726        if position gameStartX gameStartY1727            while position gameStartX gameStartY1728                wait 2001729            endwhile1730            if position gameEndX gameEndY1731                say "I just finished, your turn!"1732            endif1733        endif1734    endif1735	1736	##############1737    ### Whack-a-Muck1738    #########1739	@setvar! gameVendorId Whack-a-Muck1740	@setvar! gameStartX 64901741    @setvar! gameStartY 30041742    @setvar! gameEndX 64801743    @setvar! gameEndY 30061744     1745    if find gameVendorId ground -1 -1 4 as james1746        while not gumpexists 22589884051747            menu james 11748            waitforgump 2258988405 50001749        endwhile1750        if ingump "have 0 plays remaining" 22589884051751            if timer overheadMessageTimer >= overheadMessageTimerCd1752            overhead "We are done with Whack-a-Muck for today.. lets try another game!" 771753                settimer overheadMessageTimer 01754            endif1755            gumpclose 22589884051756        else1757            gumpresponse 2 22589884051758            wait 2001759            if insysmsg "You are too far away to participate in this event."1760                overhead "Move closer to the contest guy" 341761                wait 5001762            elseif insysmsg "You join the queue to participate" or insysmsg "You are already queued"1763                settimer waitingInLineTimer 01764                while find gameVendorId ground -1 -1 41765                    if timer overheadMessageTimer >= overheadMessageTimerCd1766                        overhead "Wait in queue, stand by... {{waitingInLineTimer}}" 341767                        settimer overheadMessageTimer 01768                    endif1769                    if position gameStartX gameStartY1770                        break1771                    endif1772                    wait 501773                endwhile1774            elseif insysmsg "You do not have enough tickets in your bank box to participate in this event."1775                overhead "We need to go buy tickets!" 2871776                wait 20001777            endif1778        endif1779        if position gameStartX gameStartY1780            while position gameStartX gameStartY1781                wait 2001782            endwhile1783            if position gameEndX gameEndY1784                say "I just finished, your turn!"1785            endif1786        endif1787    endif1788        1789    if insysmsg "You are no longer queued"1790        overhead "We dropped out of the queue" 341791        gumpclose 22589884051792    endif1793	1794    wait 5001795	1796endwhile