Kings Faire 2024 by surpz
Related: Snippet kings faire 2024
Description: Made a simple Kings Faire script for the "RNG" games.
It might have issues if there are 2 NPCs too close to one another. Also some games require you to manually move closer to the NPC after each play, but for the most part, just walk near the NPC, turn this on, and afk.
Thx Blackstar for NPC serials
2024-08-27 Updated new Totem Stack NPC serial
1@setvar! pingDelay 500
2@setvar! retryDelay 2000
3
4clearlist npcList
5createlist npcList
6
7#Alchemissed
8pushlist npcList 0x14164
9#Apple Bobber
10pushlist npcList 0x14165
11#Archery Contest
12pushlist npcList 0x14115
13#Balloon Pop
14pushlist npcList 0x1414A
15#Boxing Match
16pushlist npcList 0x14120
17#Caravan Pusher
18pushlist npcList 0x14158
19#Derby Race
20pushlist npcList 0x14144
21#Dye Dye Dye
22pushlist npcList 0x1418F
23#Eating Contest
24pushlist npcList 0x1413E
25#Fishing Contest
26pushlist npcList 0x14136
27#Jousting
28pushlist npcList 0x14139
29#Log Cutter
30pushlist npcList 0x1413C
31#Packmaster
32pushlist npcList 0x14154
33#Plucky Musician
34pushlist npcList 0x1415A
35#Produce Pitch
36pushlist npcList 0x14149
37#Quartermaster
38pushlist npcList 0x1416B
39#Rage Cage
40pushlist npcList 0x1416C
41#Ship Race
42pushlist npcList 0x1414D
43#Skeet Shooting
44pushlist npcList 0x14155
45#Squiball
46pushlist npcList 0x1413B
47#Statue Carving
48pushlist npcList 0x14152
49#Tomato Justice
50pushlist npcList 0x14153
51#Totem Stacker
52pushlist npcList 0x281D
53#Whack-a-Muck
54pushlist npcList 0x1413F
55#Ladder Golf
56pushlist npcList 0x1413A
57#Bell Striker
58pushlist npcList 0x14119
59#Dunk Tank
60pushlist npcList 0x1412F
61#Axe Toss
62pushlist npcList 0x14117
63#Log Rolling
64pushlist npcList 0x1414E
65#Pylon Gladiator
66pushlist npcList 0x14148
67#Drinking Contest
68pushlist npcList 0x14128
69
70
71while not dead
72 foreach npc in npcList
73
74 #look for each npc in list and open gump
75 if find npc ground -1 -1 6 as npcFound
76 overhead "▼ NPC Found ▼" 30 npc
77 menu npcFound 1
78 waitforgump 2258988405 1000
79 wait pingDelay
80
81 #if 0 plays remaining
82 if ingump "have 0 plays remaining" 2258988405
83 overhead "Done with this game for today."
84
85 #some plays remaining, click Play Event
86 else
87 gumpresponse 2 2258988405
88 wait pingDelay
89 if insysmsg "You are already participating in an event currently"
90 wait retryDelay
91 elseif insysmsg "You are too far away to participate in this event"
92 overhead 'Move Closer to NPC.'
93 elseif insysmsg "You join the queue to participate"
94 overhead "Entered Queue!"
95 elseif insysmsg "You are already queued"
96 overhead "Already Queued."
97 elseif insysmsg "You have played this event"
98 overhead "Done with this game for today."
99 elseif insysmsg "You do not have enough tickets in your bank box to participate in this event"
100 overhead "We need to go buy tickets!" 30
101 endif
102 endif
103 endif
104
105 endfor
106 wait retryDelay
107
108endwhile