-
-
Notifications
You must be signed in to change notification settings - Fork 212
/
meta.lua
5945 lines (4153 loc) · 126 KB
/
meta.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---@meta
---@class Color
---@field r integer
---@field g integer
---@field b integer
---@field a integer
---@class Position
---@field x integer
---@field y integer
---@field z integer
---@class Size
---@field width integer
---@field height integer
---@class Point
---@field x integer
---@field y integer
---@class Rect
---@field x integer
---@field y integer
---@field width integer
---@field height integer
---@class Light
---@field color integer
---@field intensity integer
---@class Outfit
---@field type integer
---@field auxType integer
---@field addons? integer
---@field head integer
---@field body integer
---@field legs integer
---@field feet integer
---@field mount? integer
---@alias OTMLNode table<string | integer, any>
---@class UnjustifiedPoints
---@field killsDay integer
---@field killsDayRemaining integer
---@field killsWeek integer
---@field killsWeekRemaining integer
---@field killsMonth integer
---@field killsMonthRemaining integer
---@field skullTime integer
---@class MarketData
---@field category integer
---@field name string
---@field requiredLevel integer
---@field restrictVocation integer
---@field showAs integer
---@field tradeAs integer
---@alias WidgetType
--- |UIItem
--- |UISprite
--- |UICreature
--- |UIMap
--- |UIMinimap
--- |UIProgressRect
--- |UIGraph
--- |UITextEdit
--- |UIQrCode
--- |UIParticles
--------------------------------
------- Global Functions -------
--------------------------------
---@param color integer
---@return Color
function getOutfitColor(color) end
---@param fromPos Position | string
---@param toPos Position | string
---@return number
function getAngleFromPos(fromPos, toPos) end
---@param fromPos Position | string
---@param toPos Position | string
---@return integer
function getDirectionFromPos(fromPos, toPos) end
---@param v string
---@return Rect
function torect(v) end
---@param v string
---@return Point
function topoint(v) end
---@param v string
---@return Color
function tocolor(v) end
---@param v string
---@return Size
function tosize(v) end
---@param v Rect
---@return string
function recttostring(v) end
---@param v Point
---@return string
function pointtostring(v) end
---@param v Color
---@return string
function colortostring(v) end
---@param v Size
---@return string
function sizetostring(v) end
---@param v number
---@return string
function iptostring(v) end
---@param v string
---@return number
function stringtoip(v) end
---@param a number
---@param b integer
---@return number[]
function listSubnetAddresses(a, b) end
---@param v string
---@return string
function ucwords(v) end
---@param s string
---@param exp string
---@return string[][]
function regexMatch(s, exp) end
--------------------------------
----------- g_things -----------
--------------------------------
---@class g_things
g_things = {}
---@param file string
---@return boolean
function g_things.loadAppearances(file) end
---@param file string
---@return boolean
function g_things.loadDat(file) end
---@param file string
---@return boolean
function g_things.loadOtml(file) end
---@return boolean
function g_things.isDatLoaded() end
---@return number
function g_things.getDatSignature() end
---@return integer
function g_things.getContentRevision() end
---@param id integer
---@param category integer
---@return ThingType | nil
function g_things.getThingType(id, category) end
---@param category integer
---@return ThingType[]
function g_things.getThingTypes(category) end
---@param attr integer
---@param category integer
---@return ThingType[]
function g_things.findThingTypeByAttr(attr, category) end
---* FRAMEWORK_EDITOR
---@param id integer
---@return ThingType | nil
function g_things.getItemType(id) end
---* FRAMEWORK_EDITOR
---@param id integer
---@return ThingType | nil
function g_things.findItemTypeByClientId(id) end
---* FRAMEWORK_EDITOR
---@param name string
---@return ThingType | nil
function g_things.findItemTypeByName(name) end
---* FRAMEWORK_EDITOR
---@param name string
---@return ThingType[]
function g_things.findItemTypesByName(name) end
---* FRAMEWORK_EDITOR
---@param name string
---@return ThingType[]
function g_things.findItemTypesByString(name) end
---* FRAMEWORK_EDITOR
---@param category integer
---@return ThingType[]
function g_things.findItemTypeByCategory(category) end
---* FRAMEWORK_EDITOR
---@param fileName string
function g_things.saveDat(fileName) end
---* FRAMEWORK_EDITOR
---@param file string
function g_things.loadOtb(file) end
---* FRAMEWORK_EDITOR
---@param file string
function g_things.loadXml(file) end
---* FRAMEWORK_EDITOR
---@return boolean
function g_things.isOtbLoaded() end
--------------------------------
----------- g_houses -----------
--------------------------------
---* FRAMEWORK_EDITOR
---@class g_houses
g_houses = {}
function g_houses.clear() end
---@param fileName string
function g_houses.load(fileName) end
---@param fileName string
function g_houses.save(fileName) end
---@param houseId number
---@return House | nil
function g_houses.getHouse(houseId) end
---@param name string
---@return House | nil
function g_houses.getHouseByName(name) end
---@param house House
function g_houses.addHouse(house) end
---@param houseId number
function g_houses.removeHouse(houseId) end
---@return House[]
function g_houses.getHouseList() end
---@param townId number
---@return House[]
function g_houses.filterHouses(townId) end
function g_houses.sort() end
--------------------------------
----------- g_towns ------------
--------------------------------
---* FRAMEWORK_EDITOR
---@class g_towns
g_towns = {}
---@param townId number
---@return Town | nil
function g_towns.getTown(townId) end
---@param name string
---@return Town | nil
function g_towns.getTownByName(name) end
---@param town Town
function g_towns.addTown(town) end
---@param townId number
function g_towns.removeTown(townId) end
---@return Town[]
function g_towns.getTowns() end
function g_towns.sort() end
--------------------------------
---------- g_sprites -----------
--------------------------------
---@class g_sprites
g_sprites = {}
---@param file string
---@return boolean
function g_sprites.loadSpr(file) end
function g_sprites.unload() end
---@return boolean
function g_sprites.isLoaded() end
---@return number
function g_sprites.getSprSignature() end
---@return integer
function g_sprites.getSpritesCount() end
---* FRAMEWORK_EDITOR
---@param fileName string
function g_sprites.saveSpr(fileName) end
--------------------------------
------ g_spriteAppearances -----
--------------------------------
---@class g_spriteAppearances
g_spriteAppearances = {}
---@param id integer
---@param file string
function g_spriteAppearances.saveSpriteToFile(id, file) end
---@param id integer
---@param file string
function g_spriteAppearances.saveSheetToFileBySprite(id, file) end
--------------------------------
------------ g_map -------------
--------------------------------
---@class g_map
g_map = {}
---@param pos Position | string
---@return boolean
function g_map.isLookPossible(pos) end
---@param pos Position | string
---@param firstFloor? integer 0
---@return boolean
function g_map.isCovered(pos, firstFloor) end
---@param pos Position | string
---@param firstFloor? integer 0
---@return boolean
function g_map.isCompletelyCovered(pos, firstFloor) end
---@param thing Thing
---@param pos Position | string
---@param stackPos? integer -1
function g_map.addThing(thing, pos, stackPos) end
---@param txt StaticText
---@param pos Position | string
function g_map.addStaticText(txt, pos) end
---@param txt AnimatedText
---@param pos Position | string
function g_map.addAnimatedText(txt, pos) end
---@param pos Position | string
---@param stackPos integer
---@return Thing | nil
function g_map.getThing(pos, stackPos) end
---@param pos Position | string
---@param stackPos integer
---@return boolean
function g_map.removeThingByPos(pos, stackPos) end
---@param thing Thing
---@return boolean
function g_map.removeThing(thing) end
---@param thing Thing
function g_map.removeThingColor(thing) end
---@param thing Thing
---@param color Color | string
function g_map.colorizeThing(thing, color) end
function g_map.clean() end
---@param pos Position | string
function g_map.cleanTile(pos) end
function g_map.cleanTexts() end
---@param pos Position | string
---@return Tile | nil
function g_map.getTile(pos) end
---@param floor? integer -1
---@return Tile[]
function g_map.getTiles(floor) end
---@param centralPosition Position | string
function g_map.setCentralPosition(centralPosition) end
---@return Position
function g_map.getCentralPosition() end
---@param id number
---@return Creature | nil
function g_map.getCreatureById(id) end
---@param id number
function g_map.removeCreatureById(id) end
---@param centerPos Position | string
---@param multiFloor boolean
---@return Creature[]
function g_map.getSpectators(centerPos, multiFloor) end
---@param centerPos Position | string
---@param multiFloor boolean
---@param xRange integer
---@param yRange integer
---@return Creature[]
function g_map.getSpectatorsInRange(centerPos, multiFloor, xRange, yRange) end
---@param centerPos Position | string
---@param multiFloor boolean
---@param minXRange integer
---@param maxXRange integer
---@param minYRange integer
---@param maxYRange integer
---@return Creature[]
function g_map.getSpectatorsInRangeEx(centerPos, multiFloor, minXRange, maxXRange, minYRange, maxYRange) end
---@param start Position | string
---@param goal Position | string
---@param maxComplexity integer
---@param flags? integer 0
---@return integer[], integer
function g_map.findPath(start, goal, maxComplexity, flags) end
---@param pos Position | string
---@return Tile | nil
function g_map.createTile(pos) end
---@param w integer
function g_map.setWidth(w) end
---@param h integer
function g_map.setHeight(h) end
---@return Size
function g_map.getSize() end
---* FRAMEWORK_EDITOR
---@param fileName string
function g_map.loadOtbm(fileName) end
---* FRAMEWORK_EDITOR
---@param fileName string
function g_map.saveOtbm(fileName) end
---* FRAMEWORK_EDITOR
---@param fileName string
---@return boolean
function g_map.loadOtcm(fileName) end
---* FRAMEWORK_EDITOR
---@param fileName string
function g_map.saveOtcm(fileName) end
---* FRAMEWORK_EDITOR
---@return string
function g_map.getHouseFile() end
---* FRAMEWORK_EDITOR
---@param file string
function g_map.setHouseFile(file) end
---* FRAMEWORK_EDITOR
---@return string
function g_map.getSpawnFile() end
---* FRAMEWORK_EDITOR
---@param file string
function g_map.setSpawnFile(file) end
---* FRAMEWORK_EDITOR
---@param desc string
function g_map.setDescription(desc) end
---* FRAMEWORK_EDITOR
---@return string[]
function g_map.getDescriptions() end
---* FRAMEWORK_EDITOR
function g_map.clearDescriptions() end
---* FRAMEWORK_EDITOR
---@param zone number
---@param show boolean
function g_map.setShowZone(zone, show) end
---* FRAMEWORK_EDITOR
---@param show boolean
function g_map.setShowZones(show) end
---* FRAMEWORK_EDITOR
---@param zone number
---@param color Color | string
function g_map.setZoneColor(zone, color) end
---* FRAMEWORK_EDITOR
---@param opacity number
function g_map.setZoneOpacity(opacity) end
---* FRAMEWORK_EDITOR
---@return number
function g_map.getZoneOpacity() end
---* FRAMEWORK_EDITOR
---@param zone number
---@return Color
function g_map.getZoneColor(zone) end
---* FRAMEWORK_EDITOR
---@return boolean
function g_map.showZones() end
---* FRAMEWORK_EDITOR
---@param zone number
---@return boolean
function g_map.showZone(zone) end
---* FRAMEWORK_EDITOR
---@param force boolean
function g_map.setForceShowAnimations(force) end
---* FRAMEWORK_EDITOR
---@return boolean
function g_map.isForcingAnimations() end
---* FRAMEWORK_EDITOR
---@return boolean
function g_map.isShowingAnimations() end
---* FRAMEWORK_EDITOR
---@param show boolean
function g_map.setShowAnimations(show) end
---@param opacity number
function g_map.beginGhostMode(opacity) end
function g_map.endGhostMode() end
---@param clientId integer
---@param max number
---@return table<Position, Item>
function g_map.findItemsById(clientId, max) end
---@param enable boolean
function g_map.setFloatingEffect(enable) end
---@return boolean
function g_map.isDrawingFloatingEffects() end
---@param pos Position | string
---@return integer
function g_map.getMinimapColor(pos) end
---@param fromPos Position | string
---@param toPos Position | string
---@return boolean
function g_map.isSightClear(fromPos, toPos) end
---* BOT_PROTECTION
---@param start Position | string
---@param maxDistance integer
---@param params table<string, string>
---@return table<string, [integer, integer, integer, string]>
function g_map.findEveryPath(start, maxDistance, params) end
---* BOT_PROTECTION
---@param centerPos Position | string
---@param pattern string
---@param direction integer
---@return Creature[]
function g_map.getSpectatorsByPattern(centerPos, pattern, direction) end
--------------------------------
---------- g_minimap -----------
--------------------------------
---@class g_minimap
g_minimap = {}
function g_minimap.clean() end
---@param fileName string
---@param topLeft Position | string
---@param colorFactor number
---@return boolean
function g_minimap.loadImage(fileName, topLeft, colorFactor) end
---@param fileName string
---@param mapRect Rect
function g_minimap.saveImage(fileName, mapRect) end
---@param fileName string
---@return boolean
function g_minimap.loadOtmm(fileName) end
---@param fileName string
function g_minimap.saveOtmm(fileName) end
--------------------------------
--------- g_creatures ----------
--------------------------------
---* FRAMEWORK_EDITOR
---@class g_creatures
g_creatures = {}
---@return CreatureType[]
function g_creatures.getCreatures() end
---@param name string
---@return CreatureType | nil
function g_creatures.getCreatureByName(name) end
---@param look integer
---@return CreatureType | nil
function g_creatures.getCreatureByLook(look) end
---@param centerPos Position | string
---@return Spawn | nil
function g_creatures.getSpawn(centerPos) end
---@param pos Position | string
---@return Spawn | nil
function g_creatures.getSpawnForPlacePos(pos) end
---@param centerPos Position | string
---@param radius integer
---@return Spawn
function g_creatures.addSpawn(centerPos, radius) end
---@param file string
function g_creatures.loadMonsters(file) end
---@param folder string
function g_creatures.loadNpcs(folder) end
---@param file string
function g_creatures.loadSingleCreature(file) end
---@param fileName string
function g_creatures.loadSpawns(fileName) end
---@param fileName string
function g_creatures.saveSpawns(fileName) end
---@return boolean
function g_creatures.isLoaded() end
---@return boolean
function g_creatures.isSpawnLoaded() end
function g_creatures.clear() end
function g_creatures.clearSpawns() end
---@return Spawn[]
function g_creatures.getSpawns() end
---@param spawn Spawn
function g_creatures.deleteSpawn(spawn) end
--------------------------------
------------ g_game ------------
--------------------------------
---@class g_game
g_game = {}
---@param account string
---@param password string
---@param worldName string
---@param worldHost string
---@param worldPort integer
---@param characterName string
---@param authenticatorToken string
---@param sessionKey string
function g_game.loginWorld(account, password, worldName, worldHost, worldPort, characterName, authenticatorToken, sessionKey) end
function g_game.cancelLogin() end
function g_game.forceLogout() end
function g_game.safeLogout() end
---@param direction integer
---@param isKeyDown? boolean false
---@return boolean
function g_game.walk(direction, isKeyDown) end
---@param scheduleLastWalk boolean
function g_game.setScheduleLastWalk(scheduleLastWalk) end
---@param dirs integer[]
---@param startPos Position | string
function g_game.autoWalk(dirs, startPos) end
---@param direction integer
function g_game.forceWalk(direction) end
---@param direction integer
function g_game.turn(direction) end
function g_game.stop() end
---@param thing Thing
---@param inBattleList? boolean false
function g_game.look(thing, inBattleList) end
---@param thing Thing
---@param toPos Position | string
---@param count integer
function g_game.move(thing, toPos, count) end
---@param thing Thing
---@param count integer
function g_game.moveToParentContainer(thing, count) end
---@param thing Thing
function g_game.rotate(thing) end
---@param thing Thing
function g_game.wrap(thing) end
---@param thing Thing
function g_game.use(thing) end
---@param item Item
---@param toThing Thing
function g_game.useWith(item, toThing) end
---@param itemId integer
function g_game.useInventoryItem(itemId) end
---@param itemId integer
---@param toThing Thing
function g_game.useInventoryItemWith(itemId, toThing) end
---@param itemId number
---@param subType integer
---@return Item | nil
function g_game.findItemInContainers(itemId, subType) end
---@param item Item
---@param previousContainer? Container
---@return integer
function g_game.open(item, previousContainer) end
---@param container Container
function g_game.openParent(container) end
---@param container Container
function g_game.close(container) end
---@param container Container
function g_game.refreshContainer(container) end
---@param creature Creature
function g_game.attack(creature) end
function g_game.cancelAttack() end
---@param creature Creature
function g_game.follow(creature) end
function g_game.cancelFollow() end
function g_game.cancelAttackAndFollow() end
---@param message string
function g_game.talk(message) end
---@param mode integer
---@param channelId integer
---@param message string
function g_game.talkChannel(mode, channelId, message) end
---@param mode integer
---@param receiver string
---@param message string
function g_game.talkPrivate(mode, receiver, message) end
---@param receiver string
function g_game.openPrivateChannel(receiver) end
function g_game.requestChannels() end
---@param channelId integer
function g_game.joinChannel(channelId) end
---@param channelId integer
function g_game.leaveChannel(channelId) end
function g_game.closeNpcChannel() end
function g_game.openOwnChannel() end
---@param name string
function g_game.inviteToOwnChannel(name) end
---@param name string
function g_game.excludeFromOwnChannel(name) end
---@param creatureId integer
function g_game.partyInvite(creatureId) end
---@param creatureId integer
function g_game.partyJoin(creatureId) end
---@param creatureId integer
function g_game.partyRevokeInvitation(creatureId) end
---@param creatureId integer
function g_game.partyPassLeadership(creatureId) end
function g_game.partyLeave() end
---@param active boolean
function g_game.partyShareExperience(active) end
function g_game.requestOutfit() end
---@param outfit Outfit
function g_game.changeOutfit(outfit) end
---@param name string
function g_game.addVip(name) end
---@param playerId integer
function g_game.removeVip(playerId) end
---@param playerId integer
---@param description string
---@param iconId integer
---@param notifyLogin boolean
function g_game.editVip(playerId, description, iconId, notifyLogin) end
---@param chaseMode integer
function g_game.setChaseMode(chaseMode) end
---@param fightMode integer
function g_game.setFightMode(fightMode) end
---@param pvpMode integer
function g_game.setPVPMode(pvpMode) end
---@param on boolean
function g_game.setSafeFight(on) end
---@return integer
function g_game.getChaseMode() end
---@return integer
function g_game.getFightMode() end
---@return integer
function g_game.getPVPMode() end
---@return UnjustifiedPoints
function g_game.getUnjustifiedPoints() end
---@return integer
function g_game.getOpenPvpSituations() end
---@return boolean
function g_game.isSafeFight() end
---@param item Item
function g_game.inspectNpcTrade(item) end
---@param item Item
---@param amount integer
---@param ignoreCapacity boolean
---@param buyWithBackpack boolean
function g_game.buyItem(item, amount, ignoreCapacity, buyWithBackpack) end
---@param item Item
---@param amount integer
---@param ignoreEquipped boolean
function g_game.sellItem(item, amount, ignoreEquipped) end
function g_game.closeNpcTrade() end
---@param item Item
---@param creature Creature
function g_game.requestTrade(item, creature) end
---@param counterOffer boolean
---@param index integer
function g_game.inspectTrade(counterOffer, index) end
function g_game.acceptTrade() end
function g_game.rejectTrade() end
---@param reporter string
function g_game.openRuleViolation(reporter) end
---@param reporter string
function g_game.closeRuleViolation(reporter) end
function g_game.cancelRuleViolation() end
---@param comment string
function g_game.reportBug(comment) end
---@param target string
---@param reason integer
---@param action integer
---@param comment string
---@param statement string
---@param statementId integer
---@param ipBanishment boolean
function g_game.reportRuleViolation(target, reason, action, comment, statement, statementId, ipBanishment) end
---@param a string
---@param b string
---@param c string
---@param d string
function g_game.debugReport(a, b, c, d) end
---@param id number
---@param text string
function g_game.editText(id, text) end
---@param id number
---@param doorId integer
---@param text string
function g_game.editList(id, doorId, text) end
function g_game.requestQuestLog() end
---@param questId integer
function g_game.requestQuestLine(questId) end
---@param item Item
function g_game.equipItem(item) end
---@param mount boolean
function g_game.mount(mount) end
---@param item Item
---@param index integer
function g_game.requestItemInfo(item, index) end
function g_game.ping() end
---@param delay integer
function g_game.setPingDelay(delay) end
---@param xrange integer
---@param yrange integer
function g_game.changeMapAwareRange(xrange, yrange) end
---@return boolean
function g_game.canReportBugs() end
---@return boolean
function g_game.isOnline() end
---@return boolean
function g_game.isLogging() end
---@return boolean
function g_game.isDead() end
---@return boolean
function g_game.isAttacking() end
---@return boolean
function g_game.isFollowing() end
---@return boolean
function g_game.isConnectionOk() end