-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameScr.cs
23266 lines (22280 loc) · 603 KB
/
GameScr.cs
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
using System;
using UnityEngine;
public class GameScr : mScreen, IChatable, IActionListener
{
public static GameScr instance;
public static int gW;
public static int gH;
public static int gW2;
public static int gssw;
public static int gssh;
public static int gH34;
public static int gW3;
public static int gH3;
public static int gH23;
public static int gW23;
public static int gH2;
public static int csPadMaxH;
public static int cmdBarH;
public static int gW34;
public static int gW6;
public static int gH6;
public static int cmx;
public static int cmy;
public static int cmdx;
public static int cmdy;
public static int cmvx;
public static int cmvy;
public static int cmtoX;
public static int cmtoY;
public static int cmxLim;
public static int cmyLim;
public static int gssx;
public static int gssy;
public static int gssxe;
public static int gssye;
public Command cmdback;
public Command cmdBag;
public Command cmdSkill;
public Command cmdTiemnang;
public Command cmdtrangbi;
public Command cmdInfo;
public Command cmdFocus;
public Command cmdFire;
public Command cmdBijuu;
public Command cmdTrangbi2;
public static int d;
public static int mpPotion;
public static int hpPotion;
public static SkillPaint[] sks;
public static Arrowpaint[] arrs;
public static Part[] parts;
public static EffectCharPaint[] efs;
private int moveUp;
private int moveDow;
private int idTypeTask;
private bool isstarOpen;
private bool isChangeSkill;
private bool isShortcut;
public static MyVector vMobSoul;
public static MyVector vClan;
public static MyVector vParty;
public static MyVector vPtMap;
public static MyVector vFriend;
public static MyVector vList;
public static MyVector vFriendWait;
public static MyVector vEnemies;
public static MyVector vCharInMap;
public static MyVector vItemMap;
public static MyVector vMobAttack;
public static MyVector vSet;
public static MyVector vMob;
public static MyVector vNpc;
public static MyVector vBuNhin;
public static MyVector vLanterns;
public static NClass[] nClasss;
public static int indexSize;
public static int indexTitle;
public static int indexSelect;
public static int indexRow;
public static int indexRowMax;
public static int indexMenu;
public static int indexCard;
public Item itemFocus;
public static ItemOptionTemplate[] iOptionTemplates;
public static SkillOptionTemplate[] sOptionTemplates;
private static Scroll scrInfo;
public static Scroll scrMain;
private static GamePad gamePad;
public static Item[] arrItemNonNam;
public static Item[] arrItemNonNu;
public static Item[] arrItemAoNam;
public static Item[] arrItemAoNu;
public static Item[] arrItemGangTayNam;
public static Item[] arrItemGangTayNu;
public static Item[] arrItemQuanNam;
public static Item[] arrItemQuanNu;
public static Item[] arrItemGiayNam;
public static Item[] arrItemGiayNu;
public static Item[] arrItemLien;
public static Item[] arrItemNhan;
public static Item[] arrItemNgocBoi;
public static Item[] arrItemPhu;
public static Item[] arrItemWeapon;
public static Item[] arrItemStack;
public static Item[] arrItemStackLock;
public static Item[] arrItemGrocery;
public static Item[] arrItemGroceryLock;
public static Item[] arrItemStore;
public static Item[] arrItemElites;
public static Item[] arrItemClanShop;
public static Item[] arrItemBook;
public static Item[] arrItemFashion;
public static Item[] arrItemUpPeal;
public static Item[] arrItemUpGrade;
public static Item[] arrItemSplit;
public static Item[] arrItemTradeMe;
public static Item[] arrItemTradeOrder;
public static Item[] arrItemConvert;
public static ItemStands[] arrItemStands;
public static Item itemUpGrade;
public static Item itemSplit;
public static Item itemSell;
public static short[] arrItemSprin;
public int numSprinLeft;
public static MyVector vItemUpGrade;
public static bool isTypeXu;
public static bool isViewNext;
public static bool isViewClanMemOnline;
public static bool isSortClanByPointWeek;
public static bool isViewClanInvite;
public static bool isChop;
public static bool isMessageMenu;
public static string titleInputText;
public static bool isPaintRankedList;
public static bool isPaintAuctionSale;
public static bool isPaintAlert;
public static bool isPaintTask;
public static bool isPaintTeam;
public static bool isPaintFindTeam;
public static bool isPaintFriend;
public static bool isPaintList;
public static bool isPaintEnemies;
public static bool isPaintItemInfo;
public static bool isPaintSelectSkill;
public static bool isPaintInfoMe;
public static bool isPaintStore;
public static bool isPaintEliteShop;
public static bool isPaintNonNam;
public static bool isPaintNonNu;
public static bool isPaintAoNam;
public static bool isPaintAoNu;
public static bool isPaintGangTayNam;
public static bool isPaintGangTayNu;
public static bool isPaintQuanNam;
public static bool isPaintQuanNu;
public static bool isPaintGiayNam;
public static bool isPaintGiayNu;
public static bool isPaintLien;
public static bool isPaintNhan;
public static bool isPaintNgocBoi;
public static bool isPaintPhu;
public static bool isPaintWeapon;
public static bool isPaintStack;
public static bool isPaintStackLock;
public static bool isPaintGrocery;
public static bool isPaintGroceryLock;
public static bool isPaintUpGrade;
public static bool isPaintConvert;
public static bool isPaintUpGradeGold;
public static bool isPaintUpPearl;
public static bool isPaintBox;
public static bool isPaintSplit;
public static bool isPaintCharInMap;
public static bool isPaintTrade;
public static bool isPaintZone;
public static bool isPaintAuto;
public static bool isPaintMessage;
public static bool isPaintClan;
public static bool isRequestMember;
public static bool isPaintLuckySpin;
public static bool isPaintAuctionBuy;
public static bool isPaintLuyenThach;
public static bool isPaintTinhluyen;
public static bool isPaintDichChuyen;
public static bool isPaintLuyenNgoc;
public static bool isPaintKhamNgoc;
public static bool isPaintGotNgoc;
public static bool isPaintThaoNgoc;
public static bool isPaintLucky_Draw;
public static bool isPaintGiaoDo;
public static bool isShopOnline;
public static Char currentCharViewInfo;
public static long[] exps;
public static int[] crystals;
public static int[] upClothe;
public static int[] upAdorn;
public static int[] upWeapon;
public static int[] coinUpCrystals;
public static int[] coinUpClothes;
public static int[] coinUpAdorns;
public static int[] coinUpWeapons;
public static int[] maxPercents;
public static int[] goldUps;
public static int[] coinGotngoc;
public int zoneCol = 6;
public int[] zones;
public int[] pts;
public int typeTrade;
public int typeTradeOrder;
public int coinTrade;
public int coinTradeOrder;
public int timeTrade;
public int typeSortPrice;
public int typeSortLevel;
public int typeSortName;
public int indexItemUse = -1;
public int cLastFocusID = -1;
public int cPreFocusID = -1;
public bool isLockKey;
public static sbyte[][] tasks;
public static sbyte[][] mapTasks;
public MyVector texts;
public string textsTitle;
public TField tfText;
public static sbyte vcData;
public static sbyte vcMap;
public static sbyte vcSkill;
public static sbyte vcItem;
public static sbyte vsData;
public static sbyte vsMap;
public static sbyte vsSkill;
public static sbyte vsItem;
public static Image imgTopBar;
public static Image imgArrow;
public static Image imgArrow2;
public static Image imgChat;
public static Image imgMenu;
public static Image imgFocus;
public static Image imgButton;
public static Image imgButton2;
public static Image imgHpp;
public static Image imgMpp;
public static Image imgRight;
public static Image imgRight2;
public static Image imgSkill;
public static Image imgMapBorder;
public static Image imgLbtn;
public static Image imgLbtnFocus;
public static Image imgSelect;
public static Image imgAnalog1;
public static Image imgAnalog2;
public static Image imgMenu1;
public static Image imgMenu2;
public static Image imgTf;
public static Image imgMatcho;
public static Image imgFiremoto;
public string tradeName = string.Empty;
public string tradeItemName = string.Empty;
public int timeLengthMap;
public int timeStartMap;
public static sbyte typeViewInfo;
public static sbyte typeActive;
private int[] xM = new int[2];
private int[] yM = new int[2];
public long timePoint;
private int[] xMounts;
private int[] yMounts;
public string[] YenCards = new string[9] { "10000", "20000", "30000", "50000", "100000", "200000", "500000", "1000000", "5000000" };
public int yenTemp;
public int typeba;
public string[] yenValue;
public static MyVector vItemTreeFront;
public static MyVector vItemTreeBehind;
public static MyVector vItemTreeBetwen;
private static GamePad tgamePad;
public static bool isTouchKey;
public int wColoerMp = 85;
public int hColorMp = 11;
public static Image imgEggMonters;
public static Image imgEffMob;
public static Image imgEffMob1;
public static Image imgEffMob2;
public static Image imgEffMob3;
public static Image imgsmokeFollow;
public static Command cmd240;
public static Command cmd360;
public static Command cmdallmap;
public static bool isUseitemAuto;
public static bool isAllmap;
private static Skill[] keySkill;
private static Skill[] onScreenSkill;
public Command menu;
private Command cmdPotentialAdd;
private Command cmdSkillUp;
private Command cmdAddFriend;
private Command cmdBijuuAddPoint;
private Command cmdBijuuSkillUp;
public static int shaking;
public static int count;
private static int deltaY;
private int saveAuto;
private long lastMove;
private long lastFire;
public static int auto;
public bool lockAutoMove;
private int nSkill;
private int selectedIndexSkill = -1;
private long longPress;
public static bool isManualFocus;
private long lastSendUpdatePostion;
public int runArrow;
private static int yTouchBar;
private static int xL;
private static int yL;
private static int xC;
private static int yC;
private static int xR;
private static int yR;
private static int xF;
private static int yF;
private static int xU;
private static int yU;
private static int xHP;
private static int yHP;
private static int xMP;
private static int yMP;
private static int xTG;
private static int yTG;
private static int[] xS;
private static int[] yS;
private static int xSkill;
private static int ySkill;
private static int padSkill;
public static string[] flyTextString;
public static int[] flyTextX;
public static int[] flyTextY;
public static int[] flyTextDx;
public static int[] flyTextDy;
public static int[] flyTextState;
public static int[] flyTextColor;
public static int[] splashX;
public static int[] splashY;
public static int[] splashState;
public static int[] splashF;
public static int[] splashDir;
public static Image[] imgSplash;
public static int cmdBarX;
public static int cmdBarY;
public static int cmdBarW;
public static int hpBarX;
public static int hpBarY;
public static int hpBarW;
public static int mpBarW;
public static int expBarW;
public static int lvPosX;
public static int moneyPosX;
public static int hpBarH;
public static int girlHPBarY;
public static int popupY;
public static int popupX;
public static int isborderIndex;
public static int isselectedRow;
private static Image imgNolearn;
public static int indextabTrangbi;
private int[] fhorse = new int[11]
{
0, 0, 0, 0, 0, 0, 1, 1, 1, 1,
1
};
private int fhorsetrangbi;
private int indexMember;
private string[] arrClanInfo;
private string[] arrClanDongGop;
public int cmxp;
public int cmvxp;
public int cmdxp;
public int cmxLimp;
public int cmyLimp;
public int cmyp;
public int cmvyp;
public int cmdyp;
private int indexTiemNang;
protected Command cmdGiaoDoMoveOut;
private Command cmdTradeLock;
private Command cmdTradeAccept;
protected Command cmdKhamNgocMoveOut_Ngoc;
protected Command cmdKhamNgocMoveOut_Item;
protected Command cmdKhamNgocMoveOut_Stone;
protected Command cmdUpgradeMoveOut;
protected Command cmdConvertMoveOut;
protected Command cmdSplitMoveOut;
private Command cmdTradeSendMoney;
private Command cmdTradeMoveOut;
private Command cmdTradeViewItemInfo;
private Command cmdTradeSelectItem;
private Command cmdTradeSelectInBag;
private Command cmdTradeSelectInList;
public Command cmdCloseAll;
private Command cmdEliteShopBuy;
private Command cmdEliteShopView;
private Command cmdStoreBuy;
private Command cmdStoreView;
private Command cmdStoreLockBuy;
private Command cmdStoreLockView;
private Command cmdClanStoreBuy;
private Command cmdClanStoreView;
private Command cmdStoreFashionBuy;
private Command cmdStoreFashionView;
private Command cmdNonNamBuy;
private Command cmdNonNamView;
private Command cmdNonNuBuy;
private Command cmdNonNuView;
private Command cmdAoNamBuy;
private Command cmdAoNamView;
private Command cmdAoNuBuy;
private Command cmdAoNuView;
private Command cmdGangTayNamBuy;
private Command cmdGangTayNamView;
private Command cmdGangTayNuBuy;
private Command cmdGangTayNuView;
private static int pa;
public static bool trans;
private string alertURL;
private string fnick;
public static int xstart;
public static int ystart;
public static int popupW;
public static int popupH;
public static int cmySK;
public static int cmtoYSK;
public static int cmdySK;
public static int cmvySK;
public static int cmyLimSK;
public static int columns;
public static int rows;
private int totalRowInfo;
private int ypaintKill;
private int ylimUp;
private int ylimDow;
private int yPaint;
private int[] color = new int[18]
{
0, 0, 0, 0, 600841, 600841, 667658, 667658, 3346944, 3346688,
4199680, 5052928, 3276851, 3932211, 4587571, 5046280, 6684682, 3359744
};
private int[][] colorBorder = new int[5][]
{
new int[6] { 18687, 16869, 15052, 13235, 11161, 9344 },
new int[6] { 45824, 39168, 32768, 26112, 19712, 13056 },
new int[6] { 16744192, 15037184, 13395456, 11753728, 10046464, 8404992 },
new int[6] { 13500671, 12058853, 10682572, 9371827, 7995545, 6684800 },
new int[6] { 16711705, 15007767, 13369364, 11730962, 10027023, 8388621 }
};
private int[] size = new int[6] { 2, 1, 1, 1, 1, 1 };
public static string Name_store;
public static MyVector vecShop;
public static int indexEff;
public static EffectCharPaint effUpok;
private int yhelp;
public bool isPaintInfoHelpNotIphone;
public static int inforX;
public static int inforY;
public static int inforW;
public static int inforH;
public Command cmdDead = new Command(mResources.DIES[0], 11038);
protected Command cmdBagUseItem;
protected Command cmdBagSortItem;
private Command cmdItemInfoClose;
protected Command cmdBagThrowItem;
protected Command cmdBagSplitItem;
private Command cmdBagViewItemInfo;
private Command cmdBagSelectItem;
public static string svTitle;
public static string svAction;
public static int INFO;
public static int STORE;
public static int ZONE;
public static int UPGRADE;
private int Hitem = 30;
private int maxSizeRow = 5;
private int isTranKyNang;
private bool isTran;
private int cmY_Old;
private int cmX_Old;
private int step;
private Input2Dlg ipError;
private string strErrCard = string.Empty;
private long timeLastBuff;
public static long lastAutoMove;
public static int index;
public static int[] fardistandsX;
public static int[] fardistandsY;
public static bool isItemNearMe;
public static int pointCenterX;
public static int pointCenterY;
public static int rangeSearch;
public short timeLucky_Draw;
public short percentWin1Lucky_Draw;
public short numPlayerLucky_Draw;
public string timeC;
public string totalMoneyLucky_Draw;
public string percentWin2Lucky_Draw;
public string winnerInfoLucky_Draw;
public string myMoneyLucky_Draw;
public long timeStart;
public bool isRefresh;
public static sbyte typeLucky_Draw;
private mFont fnt = mFont.tahoma_7b_yellow;
private sbyte countCaptcha;