· 6 years ago · Feb 08, 2020, 05:46 PM
1class UIScript extends UIEventManager
2
3 dynamicrecompile
4
5 native;
6
7
8
9var WindowHandle m_hOwnerWnd;
10
11
12
13// Test
14
15native function RequestTest( String param );
16
17
18
19// Console State
20
21native function bool IsPKMode();
22
23
24
25// Client To Server API
26
27native function RequestExit();
28
29native function RequestAuthCardKeyLogin( int uid, string value);
30
31native function RequestSelfTarget();
32
33native function RequestTargetCancel();
34
35native function RequestSkillList();
36
37native function RequestRaidRecord();
38
39native function RequestTradeDone( bool bDone );
40
41native function RequestStartTrade( int targetID );
42
43native function RequestAddTradeItem( int serverID, int num );
44
45native function AnswerTradeRequest( bool bOK );
46
47native function RequestSellItem( string param );
48
49native function RequestBuyItem( string param );
50
51
52
53native function RequestBuySeed( string param );
54
55native function RequestProcureCrop( string param );
56
57native function RequestSetSeed( string param );
58
59native function RequestSetCrop( string param );
60
61
62
63native function RequestAttack( int ServerID, vector Loc );
64
65native function RequestAction( int ServerID, vector Loc );
66
67native function RequestAssist( int ServerID, vector Loc );
68
69native function RequestTargetUser( int ServerID );
70
71native function RequestWarehouseDeposit( string param );
72
73native function RequestWarehouseWithdraw( string param );
74
75native function RequestChangePetName( string Name );
76
77native function RequestPackageSendableItemList( int targetID );
78
79native function RequestPackageSend( string param );
80
81native function RequestPreviewItem( string param );
82
83native function RequestBBSBoard();
84
85native function RequestMultiSellChoose( string param );
86
87native function RequestRestartPoint( ERestartPointType Type );
88
89native function RequestUseItem( int serverID );
90
91native function RequestDestroyItem( int serverID, int num );
92
93native function RequestDropItem( int serverID, int num, Vector location );
94
95native function RequestUnequipItem( int serverID, int slotBitType );
96
97native function RequestCrystallizeItem( int serverID, int number );
98
99native function RequestItemList(); // Ivnetory Item request
100
101native function RequestDuelStart( string sTargetName, int duelType ); // 결투 신청
102
103native function RequestDuelAnswerStart( int duelType, int option, int answer ); // 결투 신청에 대한 응답. option은 결투 수락 가능 옵션의 값. 0 이면 answer는 더미.
104
105native function RequestDuelSurrender(); // 현재 진행 중인 결투에서 항복(패배 인정).
106
107
108
109// PrivateShop
110
111native function RequestQuitPrivateShop(string type); // type : "sell", "buy", "sellList", "buyList" PrivateShopWnd.uc 참조
112
113native function SendPrivateShopList(string type, string param);
114
115
116
117// Party
118
119native function int GetPartyMemberCount();
120
121native function bool GetPartyMemberLocation( int a_PartyMemberIndex, out Vector a_Location );
122
123
124
125// clan
126
127native function RequestClanMemberInfo( int type, string name );
128
129native function RequestClanGradeList();
130
131native function RequestClanChangeGrade( string sName, int grade );
132
133native function RequestClanAssignPupil( string sMaster, string sPupil );
134
135native function RequestClanDeletePupil( string sMaster, string sPupil );
136
137native function RequestClanLeave(string ClanName, int clanType);
138
139native function RequestClanExpelMember( int clanType, string sName );
140
141native function RequestClanAskJoin( int ID, int clanType );
142
143native function RequestClanDeclareWar(); // 혈맹 이름 입력창이 뜨고 거기서 이름을 넣는다
144
145native function RequestClanDeclareWarWithUserID( int ID ); // 유저의 ID로 그 유저의 혈맹에 전쟁 선포
146
147native function RequestClanDeclareWarWidhClanName( string sName ); // 혈맹 이름으로 전쟁 선포
148
149native function RequestClanWithdrawWar(); // 혈맹 이름 입력창이 뜨고 거기서 이름을 넣는다
150
151native function RequestClanWithdrawWarWithClanName( string sClanName );
152
153native function RequestClanReorganizeMember( int type, string memberName, int clanType, string targetMemberName );
154
155
156
157native function RequestClanRegisterCrest();
158
159native function RequestClanUnregisterCrest();
160
161native function RequestClanRegisterEmblem();
162
163native function RequestClanUnregisterEmblem();
164
165
166
167native function RequestClanChangeNickName( string sName, string sNickName );
168
169native function RequestClanWarList( int page, int state ); // state 0:선포 1: 피선포
170
171native function RequestClanAuth( int gradeID );
172
173native function RequestEditClanAuth( int gradeID, array<int> powers );
174
175native function RequestClanMemberAuth( int clanType, string sName );
176
177
178
179native function RequestPCCafeCouponUse( string a_CouponKey );
180
181
182
183native function string GetCastleName( int castleID );
184
185
186
187native function bool HasClanCrest(); // 혈맹 문장을 가지고 있는지를 리턴
188
189native function bool HasClanEmblem(); // 혈맹 휘장을 가지고 있는지를 리턴
190
191
192
193native function RequestInviteParty( string sName );
194
195//native function OpenBBS( int index ); //사용안함 2006.9.11 ttmayrin
196
197
198
199// ClassInfo
200
201native final function string GetClassType( int ClassID );
202
203native final function string GetClassStr( int ClassID );
204
205native function string GetClassIconName( int classID );
206
207
208
209// UserInfo
210
211native function bool GetPlayerInfo( out UserInfo a_UserInfo );
212
213native function bool GetTargetInfo( out UserInfo a_UserInfo );
214
215native function bool GetUserInfo( int userID, out UserInfo a_UserInfo );
216
217native function bool GetPetInfo( out PetInfo a_PetInfo );
218
219native function bool GetSkillInfo( int a_SkillID, int a_SkillLevel, out SkillInfo a_SkillInfo );
220
221native function INT64 GetExpByPlayerLevel( int iLevel );
222
223native function bool GetAccessoryServerID( out int a_LEar, out int a_REar, out int a_LFinger, out int a_RFinger );
224
225native function int GetClassStep( int a_ClassID );
226
227
228
229native function string GetClanName( int clanID );
230
231native final function int GetClanNameValue(int iClanID); // 혈맹 명성치 얻어온다
232
233
234
235native final function int GetAdena(); // 현재 인벤토리에 갖고 있는 아데나 카운트를 리턴
236
237// Util API
238
239native final function string MakeBuffTimeStr( int Time );
240
241native final function string GetTimeString();
242
243native final function string ConvertTimetoStr( int Time );
244
245native final function Debug( string strMsg );
246
247native final function bool IsKeyDown( EInputKey Key );
248
249native final function string GetSystemString(int id);
250
251native final function string GetSystemMessage(int id);
252
253native final function GetSystemMsgInfo(int id, out SystemMsgData SysMsgData); // lancelot 2006. 10. 11.
254
255
256
257native final function UIScript GetScript( string window );
258
259native final function string MakeFullSystemMsg( string sMsg, string sArg1, optional string sArg2 );
260
261
262
263native final function GetTextSize( string strInput, out int nWidth, out int nHeight);
264
265native final function GetZoneNameTextSize( string strInput, out int nWidth, out int nHeight);
266
267
268
269native final function string MakeFullItemName(int id);
270
271native final function string GetItemGradeString(int nCrystalType);
272
273native final function string MakeCostStringInt64( INT64 a_Input );
274
275native final function string MakeCostString( string strInput );
276
277native final function string ConvertNumToText( string strInput );
278
279native final function string ConvertNumToTextNoAdena( string strInput );
280
281native final function color GetNumericColor( string strCommaAdena );
282
283native final function int GetInventoryItemCount( int nID );
284
285native final function PlayConsoleSound(EInterfaceSoundType eType);
286
287native final function EIMEType GetCurrentIMELang();
288
289native final function texture GetPledgeCrestTexFromPledgeCrestID( int PledgeCrestID );
290
291native final function texture GetAllianceCrestTexFromAllianceCrestID( int AllianceCrestID );
292
293native final function RequestBypassToServer( string strPass );
294
295native final function String GetUserRankString( int Rank );
296
297native final function String GetRoutingString( int RoutingType );
298
299native final function bool IsDebuff( int SkillID, int SkillLevel );
300
301native final function bool CheckItemLimit( int ClassID, int Count );
302
303
304
305native final function String Int64ToString( INT64 i64 );
306
307native final function INT64 Int64SubtractBfromA(INT64 A, INT64 B);
308
309native final function INT64 Int64Add( INT64 A, INT64 B );
310
311native final function INT64 Int64Mul( int A, int B );
312
313native final function INT64 Int2Int64( int value );
314
315
316
317native final function float GetExpRate( INT64 a_Exp, optional int a_Level );
318
319
320
321native function Vector GetClickLocation();
322
323
324
325native final function GetCurrentResolution(out int ScreenWidth, out int ScreenHeight);
326
327
328
329//Chat Prefix
330
331native function string GetChatPrefix(EChatType type);
332
333native function bool IsSameChatPrefix(EChatType type, string InputPrefix);
334
335
336
337// PrivateStore
338
339native function SetPrivateShopMessage( string type, string message ); // type : "buy" or "sell"
340
341native function string GetPrivateShopMessage( string type ); // type : "buy" or "sell"
342
343
344
345//System Message
346
347native final function AddSystemMessage( String a_Message, Color a_Color );
348
349native final function AddSystemMessageParam( string strParam );
350
351native final function string EndSystemMessageParam( int MsgNum, bool bGetMsg );
352
353
354
355//Restart & Quit
356
357native final function ExecRestart();
358
359native final function ExecQuit();
360
361
362
363//About Server
364
365native final function EServerAgeLimit GetServerAgeLimit();
366
367native final function int GetServerNo();
368
369native final function int GetServerType();
370
371
372
373// Option API
374
375native final function bool CanUseAudio();
376
377native final function bool CanUseJoystick();
378
379native final function bool CanUseHDR();
380
381native final function bool IsEnableEngSelection();
382
383native final function bool IsUseKeyCrypt();
384
385native final function bool IsCheckKeyCrypt();
386
387native final function bool IsEnableKeyCrypt();
388
389native final function ELanguageType GetLanguage();
390
391native final function GetResolutionList( out Array<ResolutionInfo> a_ResolutionList );
392
393native final function GetRefreshRateList( out Array<int> a_RefreshRateList, optional int a_nWidth, optional int a_nHeight );
394
395native final function SetResolution( int a_nResolutionIndex, int a_nRefreshRateIndex );
396
397native final function int GetMultiSample();
398
399native final function int GetResolutionIndex();
400
401native final function GetShaderVersion( out int a_nPixelShaderVersion, out int a_nVertexShaderVersion );
402
403native final function SetDefaultPosition();
404
405native final function SetKeyCrypt( bool a_bOnOff );
406
407native final function SetTextureDetail( int a_nTextureDetail );
408
409native final function SetModelingDetail( int a_nModelingDetail );
410
411native final function SetMotionDetail( int a_nMotionDetail );
412
413native final function SetShadow( bool a_bShadow );
414
415native final function SetBackgroundEffect( bool a_bBackgroundEffect );
416
417native final function SetTerrainClippingRange( int a_nTerrainClippingRange );
418
419native final function SetPawnClippingRange( int a_nPawnClippingRange );
420
421native final function SetReflectionEffect( int a_nReflectionEffect );
422
423native final function SetHDR( int a_nHDR );
424
425native final function SetWeatherEffect( int a_nWeatherEffect );
426
427
428
429// Common API
430
431native final function ExecuteCommand( String a_strCmd );
432
433native final function ExecuteCommandFromAction( String strCmd );
434
435native final function DoAction( INT ActionID );
436
437native final function UseSkill( INT SkillID );
438
439native final function bool IsStackableItem( int consumeType );
440
441
442
443// Option API
444
445native final function SetOptionBool( string a_strSection, string a_strName, bool a_bValue );
446
447native final function SetOptionInt( string a_strSection, string a_strName, int a_nValue );
448
449native final function SetOptionFloat( string a_strSection, string a_strName, float a_fValue );
450
451native final function SetOptionString( string a_strSection, string a_strName, string a_strValue );
452
453native final function bool GetOptionBool( string a_strSection, string a_strName );
454
455native final function int GetOptionInt( string a_strSection, string a_strName );
456
457native final function float GetOptionFloat( string a_strSection, string a_strName );
458
459native final function string GetOptionString( string a_strSection, string a_strName );
460
461
462
463// Inventory Item API
464
465native final function string GetSlotTypeString( int ItemType, int SlotBitType, int ArmorType );
466
467native final function string GetWeaponTypeString( int WeaponType );
468
469native final function int GetPhysicalDamage( int WeaponType, int SlotBitType, int CrystalType, int Enchanted, int PhysicalDamage );
470
471native final function int GetMagicalDamage( int WeaponType, int SlotBitType, int CrystalType, int Enchanted, int MagicalDamage );
472
473native final function string GetAttackSpeedString( int AttackSpeed );
474
475native final function int GetShieldDefense( int CrystalType, int Enchanted, int ShieldDefense );
476
477native final function int GetPhysicalDefense( int CrystalType, int Enchanted, int PhysicalDefense );
478
479native final function int GetMagicalDefense( int CrystalType, int Enchanted, int MagicalDefense );
480
481native final function bool IsMagicalArmor( int ClassID );
482
483native final function string GetLottoString( int Enchanted, int Damaged);
484
485native final function string GetRaceTicketString( int Blessed );
486
487
488
489// INI file option
490
491native final function RefreshINI( String a_INIFileName );
492
493native final function bool GetINIBool( string section, string key, out int value, string file );
494
495native final function bool GetINIInt( string section, string key, out int value, string file );
496
497native final function bool GetINIFloat( string section, string key, out float value, string file );
498
499native final function bool GetINIString( string section, string key, out string value, string file );
500
501
502
503native final function SetINIBool( string section, string key, bool value, string file );
504
505native final function SetINIInt( string section, string key, int value, string file );
506
507native final function SetINIFloat( string section, string key, float value, string file );
508
509native final function SetINIString( string section, string key, string value, string file );
510
511
512
513// Constant API
514
515native final function bool GetConstantInt( int a_nID, out int a_nValue );
516
517native final function bool GetConstantString( int a_nID, out String a_strValue );
518
519native final function bool GetConstantBool( int a_nID, out int a_bValue );
520
521native final function bool GetConstantFloat( int a_nID, out float a_fValue );
522
523
524
525// Audio API
526
527native final function SetSoundVolume( float a_fVolume );
528
529native final function SetMusicVolume( float a_fVolume );
530
531native final function SetWavVoiceVolume( float a_fVolume );
532
533native final function SetOggVoiceVolume( float a_fVolume );
534
535
536
537// Tooltip API
538
539native final function ReturnTooltipInfo( CustomTooltip Info );
540
541
542
543// Default Events
544
545event OnLoad();
546
547event OnTick();
548
549event OnShow();
550
551event OnHide();
552
553event OnEvent( int a_EventID, String a_Param );
554
555event OnTimer( int TimerID );
556
557event OnMinimize();
558
559event OnEnterState( name a_PreStateName );
560
561event OnExitState( name a_NextStateName );
562
563event OnSendPacketWhenHiding();
564
565event OnFrameExpandClick( bool bIsExpand );
566
567event OnDefaultPosition();
568
569
570
571// Keyboard events
572
573event OnKeyDown( EInputKey Key );
574
575event OnKeyUp( EInputKey Key );
576
577
578
579// Mouse events
580
581event OnLButtonDown( WindowHandle a_WindowHandle, int X, int Y );
582
583event OnLButtonUp( WindowHandle a_WindowHandle, int X, int Y );
584
585event OnLButtonDblClick( int X, int Y );
586
587event OnRButtonDown( int X, int Y );
588
589event OnRButtonUp( int X, int Y );
590
591event OnRButtonDblClick( int X, int Y );
592
593
594
595// Drag&Drop event
596
597event OnDropItem( String strID, ItemInfo infItem, int x, int y );
598
599event OnDragItemStart( String strID, ItemInfo infItem );
600
601event OnDragItemEnd( String strID );
602
603event OnDropItemSource( String strTarget, ItemInfo infItem ); // 아이템을 드랍했을 경우 드래그를 시작한 윈도우에 불린다.
604
605
606
607// Button,Tab events
608
609event OnClickButton( String strID );
610
611event OnClickButtonWithHandle( ButtonHandle a_ButtonHandle );
612
613event OnButtonTimer( bool bExpired );
614
615event OnTabSplit( string sName ); // 탭윈도우에서 윈도우가 분리될때 보내진다.
616
617event OnTabMerge( string sName ); // 탭윈도우에서 윈도우가 분리되었다가 합쳐질 때 보내진다.
618
619
620
621// Editbox events
622
623event OnCompleteEditBox( String strID );
624
625event OnChangeEditBox( String strID );
626
627event OnChatMarkedEditBox( String strID );
628
629
630
631// ListCtrl events
632
633event OnClickListCtrlRecord( String strID );
634
635event OnDBClickListCtrlRecord( String strID );
636
637
638
639// check box events
640
641event OnClickCheckBox( String strID );
642
643
644
645// ItemWnd event
646
647event OnClickItem( String strID, int index );
648
649event OnDBClickItem( String strID, int index );
650
651event OnRClickItem( String strID, int index );
652
653event OnRDBClickItem( String strID, int index );
654
655event OnRClickItemWithHandle( ItemWindowHandle a_hItemWindow, int a_Index );
656
657event OnDBClickItemWithHandle( ItemWindowHandle a_hItemWindow, int a_Index );
658
659event OnSelectItemWithHandle( ItemWindowHandle a_hItemWindow, int a_Index );
660
661
662
663// ProgressCtrl
664
665event OnProgressTimeUp( String strID );
666
667
668
669// combobox event
670
671event OnComboBoxItemSelected( String strID, int index );
672
673
674
675// AnimTexture event
676
677event OnTextureAnimEnd( AnimTextureHandle a_AnimTextureHandle );
678
679
680
681// API for MainWnd. This is temporary measure
682
683//native final function SetTabStatusWnd(int x, int y); 2006.8 ttmayrin
684
685//native final function SetTabSkillWnd(int x, int y); 2006.9.27 ttmayrin
686
687//native final function SetTabActionWnd(int x, int y); 2006.9.27 ttmayrin
688
689//native final function SetTabQuestWnd(int x, int y); 2006.7 ttmayrin
690
691
692
693native final function ProcessChatMessage( string chatMessage, int type );
694
695
696
697// Petition Chat - NeverDie 2006/07/18
698
699native final function ProcessPetitionChatMessage( string a_strChatMsg );
700
701
702
703// PartyMatch Chat - NeverDie 2006/07/04
704
705native final function ProcessPartyMatchChatMessage( string a_strChatMsg );
706
707
708
709// CommandChannel Chat - ttmayrin 2006/10/10
710
711native final function ProcessCommandChatMessage( string a_strChatMsg );
712
713native final function ProcessCommandInterPartyChatMessage( string a_strChatMsg );
714
715
716
717// Sound API for MenuWnd - lancelot 2006. 5. 10.
718
719native final function PlaySound( String strSoundName);
720
721native final function StopSound( String a_SoundName );
722
723
724
725// MenuWnd API - lancelot 2006. 5. 11.
726
727native final function RequestOpenMinimap();
728
729
730
731// Slider control - lancelot 2006. 6. 13.
732
733event OnModifyCurrentTickSliderCtrl(String strID, int iCurrentTick);
734
735
736
737// Returns zone name with given zone ID - NeverDie 2006/06/26
738
739native final function string GetZoneNameWithZoneID( int a_ZoneID );
740
741native final function string GetCurrentZoneName();
742
743
744
745// Returns looting method name with given looting method ID - NeverDie 2006/06/26
746
747native final function string GetLootingMethodName( int a_LootingMethodID );
748
749
750
751// Henna - lancelot 2006 .6. 29.
752
753native final function RequestHennaItemInfo(int iHennaID); // 문양새기기 윈도에서 염료 클릭했을때 염료정보 요청
754
755native final function RequestHennaItemList(); // 문양새기기 - 염료정보 윈도에서 "<이전" 버튼 클릭시 이전화면으로
756
757native final function RequestHennaEquip(int iHennaID); // 문양새기기 - 염료정보 윈도에서 "확인" 버튼 클릭시 문신요청
758
759
760
761native final function RequestHennaUnEquipInfo(int iHennaID); // 문양지우기 윈도에서 문신 클릭했을때 문신정보 요청
762
763native final function RequestHennaUnEquipList(); // 문양 지우기 윈도에서 "<이전"버튼 눌렀을때
764
765native final function RequestHennaUnEquip(int iHennaID); // 문양 지우기 윈도에서 "확인"버튼 눌렀을때
766
767
768
769native final function SetChatMessage( String a_Message );
770
771
772
773native function Vector GetPlayerPosition();
774
775
776
777// Replay - lancelot 2006. 7. 10.
778
779native final function GetFileList(out Array<string> FileList, string strDir, string strExtention);
780
781native final function BeginReplay(string strFileName, bool bLoadCameraInst, bool bLoadChatData);
782
783native final function EraseReplayFile(string strFileName);
784
785// BenchMark- lancelot 2006. 7. 18.
786
787native final function BeginPlay();
788
789native final function BeginBenchMark();
790
791
792
793// Skill Train - lancelot 2006. 8. 1.
794
795// 스킬 목록창에서 스킬 정보요청
796
797native final function RequestAcquireSkillInfo(int iID, int iLevel, int iType);
798
799native final function RequestExEnchantSkillInfo(int iID, int iLevel);
800
801// 스킬정보 창에서 스킬 배우기 요청
802
803native final function RequestAcquireSkill(int iID, int iLevel, int iType);
804
805native final function RequestExEnchantSkill(int iID, int iLevel);
806
807
808
809// ObserverMode
810
811native final function RequestObserverModeEnd();
812
813
814
815native final function WindowHandle GetHandle( String a_ControlID );
816
817
818
819// (cpptext)
820
821// (cpptext)
822
823// (cpptext)
824
825// (cpptext)
826
827
828
829// FishViewport
830
831native final function RequestFishRanking();
832
833native final function InitFishViewportWnd(bool Event);
834
835native final function FishFinalAction();
836
837
838
839native final function SaveInventoryOrder( array<int> order );
840
841native final function bool LoadInventoryOrder( out array<int> order );
842
843
844
845//manor
846
847native final function RequestProcureCropList(string param);
848
849native final function int GetManorCount();
850
851native final function int GetManorIDInManorList(int index);
852
853native final function string GetManorNameInManorList(int index);
854
855
856
857native final function ToggleMsnWindow();
858
859
860
861// minimap
862
863native final function bool GetQuestLocation(Vector Location);
864
865
866
867// PawnViewer
868
869native final function RequestLoadAllItem();
870
871native final function float GetPawnFrameCount();
872
873native final function float GetPawnCurrentFrame();
874
875defaultproperties
876
877{
878
879}