-
Notifications
You must be signed in to change notification settings - Fork 5
/
TeleportStone.lua
1131 lines (1029 loc) · 47 KB
/
TeleportStone.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
--[[信息:
超级炉石 (Teleport stone)
修改日期:2015-10-28
功能:除了传送,还有召唤NPC,其他更多功能
]]--
print(">>Script: TeleportStone loading...OK")
--菜单所有者 --默认炉石
local itemEntry =6948
--阵营
local TEAM_ALLIANCE=0
local TEAM_HORDE=1
--菜单号
local MMENU=1
local TPMENU=2
local GMMENU=3
local ENCMENU=4
local PTMENU=5
--菜单类型
local FUNC=1
local MENU=2
local TP=3
local ENC=4
--GOSSIP_ICON 菜单图标
local GOSSIP_ICON_CHAT = 0 -- 对话
local GOSSIP_ICON_VENDOR = 1 -- 货物
local GOSSIP_ICON_TAXI = 2 -- 传送
local GOSSIP_ICON_TRAINER = 3 -- 训练(书)
local GOSSIP_ICON_INTERACT_1 = 4 -- 复活
local GOSSIP_ICON_INTERACT_2 = 5 -- 设为我的家
local GOSSIP_ICON_MONEY_BAG = 6 -- 钱袋
local GOSSIP_ICON_TALK = 7 -- 申请 说话+黑色点
local GOSSIP_ICON_TABARD = 8 -- 工会(战袍)
local GOSSIP_ICON_BATTLE = 9 -- 加入战场 双剑交叉
local GOSSIP_ICON_DOT = 10 -- 加入战场
--装备位置
local EQUIPMENT_SLOT_HEAD = 0--头部
local EQUIPMENT_SLOT_NECK = 1--颈部
local EQUIPMENT_SLOT_SHOULDERS = 2--肩部
local EQUIPMENT_SLOT_BODY = 3--身体
local EQUIPMENT_SLOT_CHEST = 4--胸甲
local EQUIPMENT_SLOT_WAIST = 5--腰部
local EQUIPMENT_SLOT_LEGS = 6--腿部
local EQUIPMENT_SLOT_FEET = 7--脚部
local EQUIPMENT_SLOT_WRISTS = 8--手腕
local EQUIPMENT_SLOT_HANDS = 9--手套
local EQUIPMENT_SLOT_FINGER1 = 10--手指1
local EQUIPMENT_SLOT_FINGER2 = 11--手指2
local EQUIPMENT_SLOT_TRINKET1 = 12--饰品1
local EQUIPMENT_SLOT_TRINKET2 = 13--饰品2
local EQUIPMENT_SLOT_BACK = 14--背部
local EQUIPMENT_SLOT_MAINHAND = 15--主手
local EQUIPMENT_SLOT_OFFHAND = 16--副手
local EQUIPMENT_SLOT_RANGED = 17--远程
local EQUIPMENT_SLOT_TABARD = 18--徽章
local Instances={--副本表
{249,0},{249,1},{269,1},{309,0},
{409,0},{469,0},
{509,0},{531,0},{532,0},{533,0},{533,1},
{534,0},{540,1},{542,1},{543,1},{544,0},{545,1},{546,1},{547,1},{548,0},
{550,0},{552,1},{553,1},{554,1},{555,1},{556,1},{557,1},{558,1},
{560,1},{564,0},{565,0},{568,0},
{574,1},{575,1},{576,1},{578,1},
{580,0},{585,1},{595,1},{598,1},{599,1},
{600,1},{601,1},{602,1},{603,0},{603,1},{604,1},{608,1},
{615,0},{615,1},{616,0},{616,1},{619,1},{624,0},{624,1},
{631,0},{631,1},{631,2},{631,3},{632,1},
{649,0},{649,1},{649,2},{649,3},--十字军的试炼
{650,1},{658,1},{668,1},
{724,0},{724,1},{724,2},{724,3},
}
--随身NPC
local ST={
TIME=90,
NPCID1=90031,--召唤幻化商人
NPCID2=60003,--召唤商业训练师
NPCID3=190010,--召唤幻化大师
NPCID4=51000,--召唤随身商人
NPCID5=190011,--召唤重铸大师
--NPCID5=80000,
--商业技能训练师
NPCID501=28703,
NPCID501A=33630,
NPCID502=28694,
NPCID503=28693,
NPCID503A=33633,
NPCID504=28697,
NPCID505=28704,
NPCID506=28702,
NPCID507=28701,
NPCID508=28700,
NPCID509=28698,
NPCID510=28696,
NPCID511=28699,
NPCID512=28705,
NPCID513=28706,
NPCID514=28742,
--结束商业技能
--{guid,npc,time},
}
function ST.SummonNPC(player, entry)
local guid=player:GetGUIDLow()
local lastTime,nowTime=(ST[guid] or 0),os.time()
if(player:IsInCombat())then
player:SendAreaTriggerMessage("不能在战斗中召唤。")
else
if(nowTime>lastTime)then
local map=player:GetMap()
if(map)then
player:SendAreaTriggerMessage(map:GetName())
local x,y,z=player:GetX()+1,player:GetY(),player:GetZ()
local nz=map:GetHeight(x,y)
if(nz)then
else
nz=player:GetZ()+0.3
end
if(nz>z and nz<(z+5))then
z=nz
end
local NPC=player:SpawnCreature(entry,x,y,z,0, 3,ST.TIME*1000)
if(NPC)then
player:SendAreaTriggerMessage("召唤对象成功。")
NPC:SetFacingToObject(player)
NPC:SendUnitSay(string.format("%s,我响应你的召唤,从远方来到你的身边。请问你需要什么?",player:GetName()),0)
lastTime=os.time()+ST.TIME
else
player:SendAreaTriggerMessage("召唤对象失败。")
end
end
else
player:SendAreaTriggerMessage("召唤NPC不能太频繁。")
end
end
ST[guid]=lastTime
end
function ST.SummonCZDSNPC(player)--召唤重铸大师
ST.SummonNPC(player, ST.NPCID5)
end
function ST.SummonSSSRNPC(player)--召唤随身商人
ST.SummonNPC(player, ST.NPCID4)
end
function ST.SummonHHDSNPC(player)--召唤幻化大师
ST.SummonNPC(player, ST.NPCID3)
end
function ST.SummonSTXLNPC(player)--召唤商业训练师
ST.SummonNPC(player, ST.NPCID2)
end
function ST.SummonHHSRNPC(player)--召唤幻化商人
ST.SummonNPC(player, ST.NPCID1)
end
--商业技能师
function ST.SummonNPCAlchemy(player)
ST.SummonNPC(player, ST.NPCID501)
ST.SummonNPC(player, ST.NPCID501A)
end
function ST.SummonNPCBlacksmithing(player)
ST.SummonNPC(player, ST.NPCID502)
end
function ST.SummonNPCEnchanting(player)
ST.SummonNPC(player, ST.NPCID503)
ST.SummonNPC(player, ST.NPCID503A)
end
function ST.SummonNPCEngineering(player)
ST.SummonNPC(player, ST.NPCID504)
end
function ST.SummonNPCHerbalism(player)
ST.SummonNPC(player, ST.NPCID505)
end
function ST.SummonNPCInscription(player)
ST.SummonNPC(player, ST.NPCID506)
end
function ST.SummonNPCJewelcrafting(player)
ST.SummonNPC(player, ST.NPCID507)
end
function ST.SummonNPCLeatherworking(player)
ST.SummonNPC(player, ST.NPCID508)
end
function ST.SummonNPCMining(player)
ST.SummonNPC(player, ST.NPCID509)
end
function ST.SummonNPCSkinning(player)
ST.SummonNPC(player, ST.NPCID510)
end
function ST.SummonNPCTailoring(player)
ST.SummonNPC(player, ST.NPCID511)
end
function ST.SummonNPCCooking(player)
ST.SummonNPC(player, ST.NPCID512)
end
function ST.SummonNPCFirstAid(player)
ST.SummonNPC(player, ST.NPCID513)
end
function ST.SummonNPCFishing(player)
ST.SummonNPC(player, ST.NPCID514)
end
local function ResetPlayer(player, flag, text)
player:SetAtLoginFlag(flag)
player:SendAreaTriggerMessage("你需要重新登录角色,才能修改"..text.."。")
player:SendAreaTriggerMessage("正在返回选择角色菜单")
player:LogoutPlayer(true)
end
local Stone={
GetTimeASString=function(player)
local inGameTime=player:GetTotalPlayedTime()
local days=math.modf(inGameTime/(24*3600))
local hours=math.modf((inGameTime-(days*24*3600))/3600)
local mins=math.modf((inGameTime-(days*24*3600+hours*3600))/60)
return days.."天"..hours.."时"..mins.."分"
end,
GoHome=function(player)--穿越回去
player:CastSpell(player,8690,true)
--[[
player:SendBroadcastMessage("1")
local curSpell = player:GetCurrentSpell(1)
if(curSpell==nil) then
player:SendBroadcastMessage("err:没找到法术"..GetCurrTime())
end
curSpell:Finish()
--..curSpell:GetCastTime()
]]
player:ResetSpellCooldown(8690, true)
player:SendBroadcastMessage("你回到家了。")
end,
GoGMIsland=function(player)--新手装备
local v = {TP, "GM之岛",1, 16222.1,16252.1,12.5872,0}
local map,mapid,x,y,z,o=v[2],v[3],v[4], v[5], v[6],v[7] or 0
local pname=player:GetName()--得到玩家名
if(player:Teleport(mapid,x,y,z,o,TELE_TO_GM_MODE))then--传送
Nplayer=GetPlayerByName(pname)--根据玩家名得到玩家
if(Nplayer)then
Nplayer:SendBroadcastMessage("已经到达 "..map)
end
else
print(">>Eluna Error: Teleport Stone : Teleport To "..mapid)
end
end,
GoArena=function(player)
-- local v = {TP, "海加尔山营地", 1, 5156.93, -1400.25, 1354.3, 0}-- 海加尔山营地
local v = {TP, "竞技场营地", 0, -13253.53, 183.5, 32, 1}-- 竞技场营地
local map,mapid,x,y,z,o=v[2],v[3],v[4], v[5], v[6],v[7] or 0
local pname=player:GetName()--得到玩家名
if(player:Teleport(mapid,x,y,z,o,TELE_TO_GM_MODE))then--传送
Nplayer=GetPlayerByName(pname)--根据玩家名得到玩家
if(Nplayer)then
Nplayer:SendBroadcastMessage("已经到达 "..map)
end
else
print(">>Eluna Error: Teleport Stone : Teleport To "..mapid)
end
end,
SetHome=function(player)--设置当前位置为家
local x,y,z,mapId,areaId=player:GetX(),player:GetY(),player:GetZ(),player:GetMapId(),player:GetAreaId()
player:SetBindPoint(x,y,z,mapId,areaId)
player:SendBroadcastMessage("已经设置当前位置为家")
end,
OpenBank=function(player)--打开银行
player:SendShowBank(player)
player:SendBroadcastMessage("已经打开银行")
end,
OpenAutionHouse=function(player)--打开拍卖行
player:SendAuctionMenu(player)
player:SendBroadcastMessage("已经打开拍卖行")
end,
OpenMailBox=function(player)--打开邮箱
player:SendShowMailBox(player:GetGUID())
player:SendBroadcastMessage("已经打开邮箱")
end,
WeakOut=function(player)--移除复活虚弱
if(player:HasAura(15007))then
player:RemoveAura(15007) --移除复活虚弱
player:SetHealth(player:GetMaxHealth())
--self:RemoveAllAuras() --移除所有状态
player:SendBroadcastMessage("你的身上的复活虚弱状态已经被移除。")
else
player:SendBroadcastMessage("你的身上没有复活虚弱状态。")
end
end,
OutCombat=function(player)--脱离战斗
if(player:IsInCombat())then
player:ClearInCombat()
player:SendAreaTriggerMessage("你已经脱离战斗")
player:SendBroadcastMessage("你已经脱离战斗。")
else
player:SendAreaTriggerMessage("你并没有在战斗。")
player:SendBroadcastMessage("你并没有在战斗。")
end
end,
WSkillsToMax=function(player)--武器熟练度
player:AdvanceSkillsToMax()
player:SendBroadcastMessage("当前武器熟练度已经达到最大值")
end,
SYjn=function(player)--商业技能熟练度
player:AdvanceSkill(171, 450)
player:AdvanceSkill(164, 450)
player:AdvanceSkill(333, 450)
player:AdvanceSkill(202, 450)
player:AdvanceSkill(182, 450)
player:AdvanceSkill(773, 450)
player:AdvanceSkill(755, 450)
player:AdvanceSkill(165, 450)
player:AdvanceSkill(186, 450)
player:AdvanceSkill(393, 450)
player:AdvanceSkill(197, 450)
player:AdvanceSkill(185, 450)
player:AdvanceSkill(129, 450)
player:AdvanceSkill(356, 450)
player:GossipComplete("当前技能已满")
end,
MaxHealth=function(player) --回复生命
player:SetHealth(player:GetMaxHealth())
player:SendBroadcastMessage("生命值已经回满。")
end,
ResetTalents = function(player)--重置天赋
player:ResetTalents(true)--免费
player:SendBroadcastMessage("已经重置天赋")
end,
ResetPetTalents=function(player)--重置宠物天赋
player:ResetPetTalents()
player:SendBroadcastMessage("已经重置宠物天赋")
end,
ResetAllCD=function(player)--刷新冷却
player:ResetAllCooldowns()
player:SendBroadcastMessage("已经重置物品和技能冷却")
end,
RepairAll=function(player)--修理装备
player:DurabilityRepairAll(true,1,false)
player:SendBroadcastMessage("修理完所有装备。")
end,
SaveToDB=function(player)--保存数据
player:SaveToDB()
player:SendAreaTriggerMessage("保存数据完成")
end,
Logout=function(player)--返回选择角色
player:SendAreaTriggerMessage("正在返回选择角色菜单")
player:LogoutPlayer(true)
end,
LogoutNosave=function(player)--不保存数据,返回选择角色
player:SendAreaTriggerMessage("正在返回选择角色菜单")
player:LogoutPlayer(false)
end,
UnBind=function(player) --副本解绑
local nowmap=player:GetMapId()
for k, v in pairs(Instances) do
local mapid=v[1]
if(mapid~=nowmap)then
player:UnbindInstance(v[1],v[2])
else
player:SendBroadcastMessage("你所在的当前副本无法解除绑定。")
end
end
player:SendAreaTriggerMessage("已经解除所有副本的绑定")
player:SendBroadcastMessage("已经解除所有副本的绑定。")
end,
--[[登录标志
AT_LOGIN_RENAME = 0x01,
AT_LOGIN_RESET_SPELLS = 0x02,
AT_LOGIN_RESET_TALENTS = 0x04,
AT_LOGIN_CUSTOMIZE = 0x08,
AT_LOGIN_RESET_PET_TALENTS = 0x10,
AT_LOGIN_FIRST = 0x20,
AT_LOGIN_CHANGE_FACTION = 0x40,
AT_LOGIN_CHANGE_RACE = 0x80
]]--
ResetName=function(player,code)--修改名字
local target=player:GetSelection()
if(target and (target:GetTypeId()==player:GetTypeId()))then
ResetPlayer(target, 0x1, "名字")
else
player:SendAreaTriggerMessage("请选中一个玩家。")
end
end,
ResetFace=function(player)
ResetPlayer(player, 0x8, "外貌")
end,
ResetRace=function(player)
ResetPlayer(player, 0x80, "种族")
end,
ResetFaction=function(player)
ResetPlayer(player, 0x40, "阵营")
end,
ResetSpell=function(player)
ResetPlayer(player, 0x2, "所有法术")
end,
Test = function(player)
local msg = ".partybot add healer"
--player:Say(msg,1)
player:SendAddonMessage("prefix",msg,0,player,msg)
--SendWorldMessage(string.format("|cFFFF0000[系统]|r|cFFFFFF00%s|r",msg))
--player:SummonPlayer(player)
end,
}
local Menu={
[MMENU]={--主菜单
{FUNC, "传送回家(60分钟冷却)", Stone.GoHome, GOSSIP_ICON_TAXI, false,"是否穿越回|cFFF0F000记录位置|r ?"},
--{FUNC, "记录|cFFF0F000←|r位置", Stone.SetHome, GOSSIP_ICON_TAXI, false,"是否记录当前|cFFF0F000位置|r ?"},
{MENU, "地图传送(1G)", TPMENU, GOSSIP_ICON_TAXI},
--{FUNC, "购买新手装备", Stone.GoGMIsland, GOSSIP_ICON_CHAT, false,"是否传送到|cFFF0F000GM岛新手装备|r ?"},
{FUNC, "竞技场营地(测试)", Stone.GoArena, GOSSIP_ICON_TAXI, false,"是否传送到|cFFF0F000竞技场营地|r ?"},
--{FUNC, "修理装备", Stone.RepairAll,GOSSIP_ICON_MONEY_BAG, false,"需要花费金币修理装备 ?"},
{FUNC, "在线银行", Stone.OpenBank, GOSSIP_ICON_VENDOR},
{FUNC, "在线拍卖行", Stone.OpenAutionHouse, GOSSIP_ICON_VENDOR},
{FUNC, "召唤随身商人", ST.SummonSSSRNPC, GOSSIP_ICON_MONEY_BAG},
--{FUNC, "召唤重铸大师", ST.SummonCZDSNPC, GOSSIP_ICON_TRAINER},
--{MENU, "召唤商业训练师",PTMENU, GOSSIP_ICON_TRAINER},--PTMENU,ST.SummonSTXLNPC
--{FUNC, "召唤幻化大师", ST.SummonHHDSNPC, GOSSIP_ICON_TRAINER},
--{FUNC, "召唤幻化商人", ST.SummonHHSRNPC, GOSSIP_ICON_MONEY_BAG},
--{MENU, "双重附魔", ENCMENU, GOSSIP_ICON_TRAINER},
--{MENU, "其他功能", MMENU+0x10, GOSSIP_ICON_TABARD},
--{FUNC, "强制脱离战斗", Stone.OutCombat,GOSSIP_ICON_CHAT},
},
[MMENU+0x10]={--其他功能
{FUNC, "重置副本", Stone.UnBind, GOSSIP_ICON_INTERACT_2, false,"是否重置所有副本进度 ?"},
{FUNC, "解除虚弱", Stone.WeakOut, GOSSIP_ICON_INTERACT_1, false,"是否解除虚弱,并回复生命 ?"},
{FUNC, "重置天赋" , Stone.ResetTalents, GOSSIP_ICON_TRAINER, false,"确认重置天赋 ?"},
{FUNC, "武器熟练加满", Stone.WSkillsToMax, GOSSIP_ICON_TRAINER, false,"确认把武器熟练度加满 ?"},
{FUNC, "商业技能加满", Stone.SYjn, GOSSIP_ICON_TRAINER, false,"确认把商业技能加满 ?"},
{FUNC, "空中邮箱", Stone.OpenMailBox, GOSSIP_ICON_CHAT},
{FUNC, "修改名字", Stone.ResetName, GOSSIP_ICON_CHAT, false,"是否更改名字?\n|cFFFFFF00需要重新登录才能修改。|r"},
{FUNC, "修改外貌", Stone.ResetFace, GOSSIP_ICON_CHAT, false,"是否更改外貌?\n|cFFFFFF00需要重新登录才能修改。|r"},
{FUNC, "修改种族", Stone.ResetRace, GOSSIP_ICON_CHAT, false,"是否更改种族?\n|cFFFFFF00需要重新登录才能修改。|r"},
{FUNC, "修改阵营", Stone.ResetFaction, GOSSIP_ICON_CHAT, false,"是否更改阵营?\n|cFFFFFF00需要重新登录才能修改。|r"},
{FUNC, "遗忘所有法术", Stone.ResetSpell, GOSSIP_ICON_CHAT, false,"是否遗忘所有法术?\n|cFFFFFF00需要重新登录才能生效。|r"},
},
[GMMENU]={--GM菜单
{FUNC, "重置所有冷却", Stone.ResetAllCD, GOSSIP_ICON_INTERACT_1, false,"确认重置所有冷却 ?"},
{FUNC, "保存角色", Stone.SaveToDB, GOSSIP_ICON_INTERACT_1},
{FUNC, "返回选择角色", Stone.Logout, GOSSIP_ICON_INTERACT_1, false,"返回选择角色界面 ?"},
{FUNC, "|cFF800000不保存角色|r",Stone.LogoutNosave,GOSSIP_ICON_INTERACT_1,false,"|cFFFF0000不保存角色,并返回选择角色界面 ?|r"},
--{FUNC, "测试", Stone.Test, GOSSIP_ICON_CHAT, false,"测试??"},
},
[TPMENU]={--传送菜单
{MENU, "主要城市", TPMENU+0x10,GOSSIP_ICON_BATTLE},
{MENU, "东部王国", TPMENU+0x20,GOSSIP_ICON_BATTLE},
{MENU, "卡利姆多", TPMENU+0x30,GOSSIP_ICON_BATTLE},
--{MENU, "外域", TPMENU+0x40,GOSSIP_ICON_BATTLE},
--{MENU, "诺森德", TPMENU+0x50,GOSSIP_ICON_BATTLE},
{MENU, "|cFF006400经典旧世界副本★|r", TPMENU+0x60,GOSSIP_ICON_BATTLE},
--{MENU, "|cFF4B0082英雄副本★|r", TPMENU+0x70,GOSSIP_ICON_BATTLE},
--{MENU, "巫妖王之怒地下城", TPMENU+0x80,GOSSIP_ICON_BATTLE},
{MENU, "|cFFB22222团队副本★|r", TPMENU+0x90,GOSSIP_ICON_BATTLE},
{MENU, "风景传送", TPMENU+0xa0,GOSSIP_ICON_BATTLE},
{MENU, "其他传送", TPMENU+0xb0,GOSSIP_ICON_BATTLE},
{MENU, "野外BOSS传送", TPMENU+0xc0,GOSSIP_ICON_BATTLE},
{MENU, "传送到职业训练", MMENU+0x20,GOSSIP_ICON_TAXI},
{MENU, "传送到商业训练", MMENU+0x30,GOSSIP_ICON_TAXI},
},
[TPMENU+0x10]={--主要城市
{TP, "暴风城", 0, -8842.09, 626.358, 94.0867, 3.61363,TEAM_ALLIANCE},
{TP, "达纳苏斯", 1, 9869.91, 2493.58, 1315.88, 2.78897,TEAM_ALLIANCE},
{TP, "铁炉堡", 0, -4900.47, -962.585, 501.455, 5.40538,TEAM_ALLIANCE},
--{TP, "埃索达", 530, -3864.92, -11643.7, -137.644, 5.50862,TEAM_ALLIANCE},
{TP, "奥格瑞玛", 1, 1601.08, -4378.69, 9.9846, 2.14362,TEAM_HORDE},
{TP, "雷霆崖", 1, -1274.45, 71.8601, 128.159, 2.80623,TEAM_HORDE},
{TP, "幽暗城", 0, 1633.75, 240.167, -43.1034, 6.26128,TEAM_HORDE},
--{TP, "银月城", 530, 9738.28, -7454.19, 13.5605, 0.043914,TEAM_HORDE},
--{TP, "[诺森德]达拉然", 571, 5809.55, 503.975, 657.526, 2.38338},
--{TP, "[外域]沙塔斯", 530, -1887.62, 5359.09, -12.4279, 4.40435},
{TP, "[中立]藏宝海湾",0, -14281.9, 552.564, 8.90422, 0.860144},
{TP, "[中立]棘齿城", 1, -955.21875,-3678.92,8.29946, 0},
{TP, "[中立]加基森", 1, -7122.79834,-3704.82,14.0526, 0},
},
[TPMENU+0x20]={--东部王国
{TP, "艾尔文森林", 0, -9449.06, 64.8392, 56.3581, 3.0704},
{TP, "永歌森林", 530, 9024.37, -6682.55, 16.8973, 3.1413},
{TP, "丹莫罗", 0, -5603.76, -482.704, 396.98, 5.2349},
{TP, "提瑞斯法林地", 0, 2274.95, 323.918, 34.1137, 4.2436},
{TP, "幽魂之地", 530, 7595.73, -6819.6, 84.3718, 2.5656},
{TP, "洛克莫丹", 0, -5405.85, -2894.15, 341.972, 5.4823},
{TP, "银松森林", 0, 505.126, 1504.63, 124.808, 1.7798},
{TP, "西部荒野", 0, -10684.9, 1033.63, 32.5389, 6.0738},
{TP, "赤脊山", 0, -9447.8, -2270.85, 71.8224, 0.28385},
{TP, "暮色森林", 0, -10531.7, -1281.91, 38.8647, 1.5695},
{TP, "希尔斯布莱德丘陵", 0, -385.805, -787.954, 54.6655, 1.0392},
{TP, "湿地", 0, -3517.75, -913.401, 8.86625, 2.6070},
{MENU, "下一页", TPMENU+0x120,GOSSIP_ICON_CHAT},
},
[TPMENU+0x120]={--东部王国 2
{TP, "奥特兰克山脉",0, 275.049, -652.044, 130.296, 0.50203},
{TP, "阿拉希高地", 0, -1581.45, -2704.06, 35.4168, 0.490373},
{TP, "荆棘谷", 0, -11921.7, -59.544, 39.7262, 3.7357},
{TP, "荒芜之地", 0, -6782.56, -3128.14, 240.48, 5.6591},
{TP, "悲伤沼泽", 0, -10368.6, -2731.3, 21.6537, 5.2923},
{TP, "辛特兰", 0, 112.406, -3929.74, 136.358, 0.981903},
{TP, "灼热峡谷", 0, -6686.33, -1198.55, 240.027, 0.91688},
{TP, "诅咒之地", 0, -11184.7, -3019.31, 7.29238, 3.20542},
{TP, "燃烧平原", 0, -7979.78, -2105.72, 127.919, 5.10148},
{TP, "西瘟疫之地", 0, 1743.69, -1723.86, 59.6648, 5.23722},
{TP, "东瘟疫之地", 0, 2280.64, -5275.05, 82.0166, 4.747},
--{TP, "奎尔丹纳斯岛", 530, 12806.5, -6911.11, 41.1156, 2.2293},
},
[TPMENU+0x30]={--卡利姆多
--{TP, "秘蓝岛", 530, -4192.62, -12576.7, 36.7598, 1.62813},
--{TP, "秘血岛", 530, -2721.67, -12208.90, 9.08, 0},
{TP, "泰达希尔", 1, 9889.03, 915.869, 1307.43, 1.9336},
{TP, "杜隆塔尔", 1, 228.978, -4741.87, 10.1027, 0.416883},
{TP, "莫高雷", 1, -2473.87, -501.225, -9.42465, 0.6525},
--{TP, "秘血岛", 530, -2095.7, -11841.1, 51.1557, 6.19288},
{TP, "黑海岸", 1, 6463.25, 683.986, 8.92792, 4.33534},
{TP, "贫瘠之地", 1, -575.772, -2652.45, 95.6384, 0.006469},
{TP, "石爪山脉", 1, 1574.89, 1031.57, 137.442, 3.8013},
{TP, "灰谷", 1, 1919.77, -2169.68, 94.6729, 6.14177},
{TP, "千针石林", 1, -5375.53, -2509.2, -40.432, 2.41885},
{TP, "凄凉之地", 1, -656.056, 1510.12, 88.3746, 3.29553},
{TP, "尘泥沼泽", 1, -3350.12, -3064.85, 33.0364, 5.12666},
{TP, "菲拉斯", 1, -4808.31, 1040.51, 103.769, 2.90655},
{TP, "塔纳利斯沙漠", 1, -6940.91, -3725.7, 48.9381, 3.11174},
{MENU, "下一页", TPMENU+0x130,GOSSIP_ICON_CHAT},
},
[TPMENU+0x130]={--卡利姆多2
{TP, "艾萨拉", 1, 3117.12, -4387.97, 91.9059, 5.49897},
{TP, "费伍德森林", 1, 3898.8, -1283.33, 220.519, 6.24307},
{TP, "安戈洛环形山", 1, -6291.55, -1158.62, -258.138, 0.457099},
{TP, "希利苏斯", 1, -6815.25, 730.015, 40.9483, 2.39066},
{TP, "冬泉谷", 1, 6658.57, -4553.48, 718.019, 5.18088},
},
[TPMENU+0x40]={--外域
{TP, "地狱火半岛", 530, -207.335, 2035.92, 96.464, 1.59676},
{TP, "地狱火半岛-荣耀堡",530,-683.05,2657.57,91.04, 0,TEAM_ALLIANCE},
{TP, "地狱火半岛-萨尔玛",530,139.96,2671.51,85.509, 0,TEAM_HORDE},
{TP, "赞加沼泽", 530, -220.297, 5378.58, 23.3223, 1.61718},
{TP, "泰罗卡森林", 530, -2266.23, 4244.73, 1.47728, 3.68426},
{TP, "纳格兰", 530, -1610.85, 7733.62, -17.2773, 1.33522},
{TP, "刀锋山", 530, 2029.75, 6232.07, 133.495, 1.30395},
{TP, "虚空风暴", 530, 3271.2, 3811.61, 143.153, 3.44101},
{TP, "影月谷", 530, -3681.01, 2350.76, 76.587, 4.25995},
},
[TPMENU+0x50]={--诺森德
{TP, "北风苔原", 571, 2954.24, 5379.13, 60.4538, 2.55544},
{TP, "凛风峡湾", 571, 682.848, -3978.3, 230.161, 1.54207},
{TP, "龙骨荒野", 571, 2678.17, 891.826, 4.37494, 0.101121},
{TP, "灰熊丘陵", 571, 4017.35, -3403.85, 290, 5.35431},
{TP, "祖达克", 571, 5560.23, -3211.66, 371.709, 5.55055},
{TP, "索拉查盆地", 571, 5614.67, 5818.86, -69.722, 3.60807},
{TP, "水晶之歌森林", 571, 5411.17, -966.37, 167.082, 1.57167},
{TP, "风暴峭壁", 571, 6120.46, -1013.89, 408.39, 5.12322},
{TP, "冰冠冰川", 571, 8323.28, 2763.5, 655.093, 2.87223},
{TP, "冬拥湖", 571, 4522.23, 2828.01, 389.975, 0.215009},
},
[TPMENU+0x60]={--60旧世界
{TP, "怒焰裂谷8级", 1, 1811.78, -4410.5, -18.4704, 5.20165,TEAM_HORDE},
{TP, "死亡矿井10级", 0, -11209.6, 1666.54, 24.6974, 1.42053},
{TP, "哀嚎洞穴15级", 1, -731.607, -2218.39, 17.0281, 2.78486},
{TP, "影牙城堡20级", 0, -234.675, 1561.63, 76.8921, 1.24031},
{TP, "黑暗深渊25级", 1, 4249.99, 740.102, -25.671, 1.34062},
{TP, "暴风监狱25级", 0, -8799.15, 832.718, 97.6348, 6.04085,TEAM_ALLIANCE},
{TP, "剃刀沼泽30级", 1, -4470.28, -1677.77, 81.3925, 1.16302},
{TP, "诺莫瑞根30级",0, -5163.54, 925.423, 257.181, 1.57423},
{TP, "血色修道院35级", 0, 2873.15, -764.523, 160.332, 5.10447},
{TP, "剃刀高地35级", 1, -4657.3, -2519.35, 81.0529, 4.54808},
{TP, "奥达曼40级",0, -6071.37, -2955.16, 209.782, 0.015708},
{TP, "玛拉顿40级", 1, -1421.42, 2907.83, 137.415, 1.70718},
{MENU, "下一页", TPMENU+0x160,GOSSIP_ICON_CHAT},
},
[TPMENU+0x160]={--60旧世界2
{TP, "沉没的神庙45级", 0, -10177.9, -3994.9, -111.239, 6.01885},
{TP, "祖尔法拉克45级", 1, -6801.19, -2893.02, 9.00388, 0.158639},
{TP, "通灵学院50级", 0, 1269.64, -2556.21, 93.6088, 0.620623},
{TP, "黑石深渊50级", 0, -7179.34, -921.212, 165.821, 5.09599},
{TP, "黑石塔55级", 0, -7527.05, -1226.77, 285.732, 5.29626},
{TP, "厄运之槌55级", 1, -3520.14, 1119.38, 161.025, 4.70454},
{TP, "斯坦索姆60级", 0, 3352.92, -3379.03, 144.782, 6.25978},
},
[TPMENU+0x70]={--燃烧的远征地下城
{TP, "斯坦索姆60级", 0, 3352.92, -3379.03, 144.782, 6.25978},
{TP, "奥金顿60级", 530, -3324.49, 4943.45, -101.239, 4.63901},
{TP, "地狱火堡垒60级", 530, -347.29, 3089.82, 21.394, 5.68114},
{TP, "时光之穴65级", 1, -8369.65, -4253.11, -204.272, -2.70526},
{TP, "魔导师平台65级", 530, 12884.6, -7317.69, 65.5023, 4.799},
{TP, "风暴要塞70级", 530, 3100.48, 1536.49, 190.3, 4.62226},
},
[TPMENU+0x80]={--巫妖王之怒地下城
{TP, "艾卓-尼鲁布75级", 571, 3707.86, 2150.23, 36.76, 3.22},
{TP, "斯坦索姆的抉择75级", 1, -8756.39, -4440.68, -199.489, 4.66289},
{TP, "冠军的试炼75级", 571, 8590.95, 791.792, 558.235, 3.13127},
{TP, "达克萨隆堡垒75级", 571, 4765.59, -2038.24, 229.363, 0.887627},
{TP, "古达克75级", 571, 6722.44, -4640.67, 450.632, 3.91123},
{TP, "冰冠城塞75级", 571, 5643.16, 2028.81, 798.274, 4.60242},
{TP, "魔枢75级", 571, 3782.89, 6965.23, 105.088, 6.14194},
{TP, "紫罗兰监狱75级", 571, 5693.08, 502.588, 652.672, 4.0229},
{TP, "闪电大厅75级", 571, 9136.52, -1311.81, 1066.29, 5.19113},
{TP, "石头大厅75级", 571, 8922.12, -1009.16, 1039.56, 1.57044},
{TP, "乌特加德城堡75级",571, 1203.41, -4868.59, 41.2486, 0.283237},
{TP, "乌特加德之巅75级", 571, 1267.24, -4857.3, 215.764, 3.22768},
},
[TPMENU+0x90]={--团队副本
{TP, "祖尔格拉布(20人)T0", 0, -11916.7, -1215.72, 92.289, 4.72454},
{TP, "奥妮克希亚的巢穴60级 T2", 1, -4708.27, -3727.64, 54.5589, 3.72786},
{TP, "熔火之心(40人)T1-T2", 230, 1126.64, -459.94, -102.535, 3.46095},
{TP, "黑翼之巢(40人)T2", 229, 152.451, -474.881, 116.84, 0.001073},
{TP, "安其拉废墟(20人)T1", 1, -8409.82, 1499.06, 27.7179, 2.51868},
{TP, "安其拉神殿(40人)T2.5", 1, -8240.09, 1991.32, 129.072, 0.941603},
{TP, "纳克萨玛斯(40人)T3", 533, 3005.87,-3435.01,293.882,4.785},
--{TP, "海加尔山之巅65级", 1, -8177.89, -4181.23, -167.552, 0.913338},
--{TP, "格鲁尔的巢穴65级", 530, 3530.06, 5104.08, 3.50861, 5.51117},
--{TP, "玛瑟里顿的巢穴70级", 530, -336.411, 3130.46, -102.928, 5.20322},
--{TP, "卡拉赞70级", 0, -11118.9, -2010.33, 47.0819, 0.649895},
--{TP, "黑暗神庙75级", 530, -3649.92, 317.469, 35.2827, 2.94285},
--{TP, "毒蛇神殿75级", 530, 797.855, 6865.77, -65.4165, 0.005938},
--{TP, "祖阿曼75级",530, 6851.78, -7972.57, 179.242, 4.64691},
--{TP, "风暴要塞75级", 530, 3088.49, 1381.57, 184.863, 4.61973},
--{TP, "太阳井高地80级", 530, 12574.1, -6774.81, 15.0904, 3.13788},
--{TP, "纳克萨玛斯80级", 571, 3668.72, -1262.46, 243.622, 4.785},
--{TP, "永恒之眼80级", 571, 3784.17, 7028.84, 161.258, 5.79993},
--{TP, "黑曜石圣殿80级", 571, 3472.43, 264.923, -120.146, 3.27923},
--{TP, "奥杜尔80级",571, 9222.88, -1113.59, 1216.12, 6.27549},
--{TP, "阿尔卡冯的宝库80级", 571, 5453.72, 2840.79, 421.28, 0},
--{TP, "冰冠城塞80级",571, 5855.22, 2102.03, 635.991, 3.57899},
--{TP, "十字军的试炼80级", 571, 8515.61, 714.153, 558.248, 1.57753},
},
[TPMENU+0xa0]={--风景传送
{TP, "GM之岛", 1, 16222.1,16252.1,12.5872,0},
{TP, "PM之岛", 451, 16220.0,16107.7,69.5,0},
{TP, "时光之穴", 1,-8173.93018, -4737.46387,33.77735, 0},
{TP, "双塔山", 1,-3331.35327, 2225.72827, 30.9877, 0},
{TP, "梦境之树", 1,-2914.7561, 1902.19934, 34.74103, 0},
{TP, "恐怖之岛", 1, 4603.94678, -3879.25097,944.18347, 0},
{TP, "天涯海滩", 1,-9851.61719, -3608.47412,8.93973, 0},
{TP, "安戈洛环形山", 1,-8562.09668, -2106.05664,8.85254, 0},
{TP, "石堡瀑布", 0,-9481.49316, -3326.91528,8.86435, 0},
{TP, "暴雪建设公司路障",1, 5478.06006, -3730.8501, 1593.44, 0},
},
[TPMENU+0xb0]={--其他传送
{TP, "古拉巴什竞技场", 0, -13181.8, 339.356, 42.9805, 1.18013},
--Alliance
{TP, "奥特兰战场",0, 5.599396,-308.73822,132.26651, 0,TEAM_ALLIANCE},
{TP, "阿拉希战场",0, -1229.860352,-2545.07959,21.180079, 0,TEAM_ALLIANCE},
{TP, "战歌峡谷", 1, 1036.794800,-2106.138672,122.94553, 0,TEAM_ALLIANCE},
--Horde
{TP, "阿拉希战场",0, -847.953491,-3519.764893,72.607727, 0,TEAM_HORDE},
{TP, "奥特兰战场",0, 396.471863,-1006.229126,111.719086, 0,TEAM_HORDE},
{TP, "战歌峡谷", 1, 1036.794800,-2106.138672,122.94553, 0,TEAM_HORDE},
},
[TPMENU+0xc0]={--野外BOSS传送
{TP, "暮色森林", 0,-10526.16895,-434.996796,50.8948, 0},
{TP, "辛特兰", 0,759.605713,-3893.341309,116.4753, 0},
{TP, "灰谷", 1,3120.289307,-3439.444336,139.5663,0},
{TP, "艾萨拉", 1,2622.219971,-5977.930176,100.5629,0},
{TP, "菲拉斯", 1,-2741.290039,2009.481323,31.8773, 0},
{TP, "诅咒之地", 0,-12234,-2474,-3, 0},
{TP, "水晶谷", 1,-6292.463379,1578.029053,0.1553, 0},
},
[MMENU+0x20]={--联盟职业技能训练师
--Alliance
{TP, "战士训练师", 0,-8682.700195, 322.091125, 109.437958, 0,TEAM_ALLIANCE},
{TP, "圣骑士训练师", 0,-8573.793945, 877.343018, 106.519310, 0,TEAM_ALLIANCE},
--{TP, "死亡骑士训练师", 0,2365.21, -5658.35, 426.06, 0,TEAM_ALLIANCE},
{TP, "萨满训练师", 0,-9032.573242, 545.842590, 72.160950, 0,TEAM_ALLIANCE},
{TP, "猎人训练师", 0,-8422.097656, 550.078674, 95.448730, 0,TEAM_ALLIANCE},
{TP, "德鲁伊训练师", 1, 7870.23, -2586.97, 486.95, 0,TEAM_ALLIANCE},
{TP, "盗贼训练师", 0,-8751.876953, 381.321930, 101.056236, 0,TEAM_ALLIANCE},
{TP, "法师训练师", 0,-9009.386719, 875.746765, 29.621387, 0,TEAM_ALLIANCE},
{TP, "术士训练师", 0,-8972.834961, 1027.723511, 101.40416, 0,TEAM_ALLIANCE},
{TP, "牧师训练师", 0,-8517.649414, 858.083801, 109.81385, 0,TEAM_ALLIANCE},
--Horde
{TP, "战士训练师", 1, 1971.24, -4805.08, 56.99, 0,TEAM_HORDE},
{TP, "圣骑士训练师",1, 1936.14, -4138.31, 41.03,0,TEAM_HORDE},
--{TP, "死亡骑士训练师",0, 2365.21, -5658.35, 426.06, 0,TEAM_HORDE},
{TP, "萨满训练师", 1, 1928.482, -4228.17, 42.3219, 0,TEAM_HORDE},
{TP, "猎人训练师", 1, 2135.33, -4610.78, 54.3865, 0,TEAM_HORDE},
{TP, "德鲁伊训练师", 1, 7870.23, -2586.97, 486.95,0,TEAM_HORDE},
{TP, "盗贼训练师", 1, 1776.47, -4285.65, 7.44, 0,TEAM_HORDE},
{TP, "法师训练师", 1, 1468.58, -4221.86, 59.22, 0,TEAM_HORDE},
{TP, "术士训练师", 1, 1838.19, -4355.78, -14.71, 0,TEAM_HORDE},
{TP, "牧师训练师", 1, 1454.71, -4179.42, 61.56, 0,TEAM_HORDE},
},
[MMENU+0x30]={--专业技能训练师
--Alliance
{TP, "武器训练师", 0,-8793.120117, 613.002991, 96.856400, 0,TEAM_ALLIANCE},
{TP, "骑术训练师", 0,-9443.556641, -1388.178345, 46.9881, 0,TEAM_ALLIANCE},
--{TP, "飞行训练师", 530,-676.925598, 2730.669434, 93.9085, 0,TEAM_ALLIANCE},
--Horde
{TP, "武器训练师", 1, 2093.829346, -4821.349609, 24.382, 0,TEAM_HORDE},
{TP, "骑术训练师", 530, 9268.768555, -7508.026367, 38.09, 0,TEAM_HORDE},
--{TP, "飞行训练师", 530,48.719337, 2741.370850, 85.255180, 0,TEAM_HORDE},
},
[PTMENU]={--GM菜单
{FUNC, "召唤炼金训练师", ST.SummonNPCAlchemy, GOSSIP_ICON_TRAINER},
{FUNC, "召唤锻造训练师", ST.SummonNPCBlacksmithing, GOSSIP_ICON_TRAINER},
{FUNC, "召唤附魔训练师", ST.SummonNPCEnchanting, GOSSIP_ICON_TRAINER},
{FUNC, "召唤工程学训练师", ST.SummonNPCEngineering, GOSSIP_ICON_TRAINER},
{FUNC, "召唤草药训练师", ST.SummonNPCHerbalism, GOSSIP_ICON_TRAINER},
--{FUNC, "召唤铭文训练师", ST.SummonNPCInscription, GOSSIP_ICON_TRAINER},
--{FUNC, "召唤珠宝加工训练师",ST.SummonNPCJewelcrafting, GOSSIP_ICON_TRAINER},
{FUNC, "召唤皮甲训练师", ST.SummonNPCLeatherworking, GOSSIP_ICON_TRAINER},
{FUNC, "召唤采矿训练师", ST.SummonNPCMining, GOSSIP_ICON_TRAINER},
{FUNC, "召唤剥皮训练师", ST.SummonNPCSkinning, GOSSIP_ICON_TRAINER},
{FUNC, "召唤裁缝训练师", ST.SummonNPCTailoring, GOSSIP_ICON_TRAINER},
{FUNC, "召唤烹饪训练师", ST.SummonNPCCooking, GOSSIP_ICON_TRAINER},
{FUNC, "召唤急救训练师", ST.SummonNPCFirstAid, GOSSIP_ICON_TRAINER},
{FUNC, "召唤钓鱼训练师", ST.SummonNPCFishing, GOSSIP_ICON_TRAINER},
},
[ENCMENU]={-- Enchanter 附魔
{MENU, "头盔", ENCMENU+0x20,GOSSIP_ICON_TABARD},
{MENU, "肩甲", ENCMENU+0x30,GOSSIP_ICON_TABARD},
{MENU, "胸甲", ENCMENU+0x40,GOSSIP_ICON_TABARD},
{MENU, "衬衣", ENCMENU+0x10,GOSSIP_ICON_TABARD},
{MENU, "腰带", ENCMENU+0xf0,GOSSIP_ICON_TABARD},
{MENU, "裤子", ENCMENU+0x50,GOSSIP_ICON_TABARD},
{MENU, "鞋子", ENCMENU+0x60,GOSSIP_ICON_TABARD},
{MENU, "护腕", ENCMENU+0x70,GOSSIP_ICON_TABARD},
{MENU, "手套", ENCMENU+0x80,GOSSIP_ICON_TABARD},
{MENU, "披风", ENCMENU+0x90,GOSSIP_ICON_TABARD},
{MENU, "主手武器", ENCMENU+0xa0,GOSSIP_ICON_TABARD},
{MENU, "副手武器", ENCMENU+0xb0,GOSSIP_ICON_TABARD},
{MENU, "双手武器", ENCMENU+0xc0,GOSSIP_ICON_TABARD},
{MENU, "盾牌", ENCMENU+0xd0,GOSSIP_ICON_TABARD},
{MENU, "弓弩", ENCMENU+0xe0,GOSSIP_ICON_TABARD},
},
[ENCMENU+0x10] = { -- 衬衣
{ENC, "清除胸甲附魔",-1,EQUIPMENT_SLOT_BODY},
{ENC, "增加全属性", 3832, EQUIPMENT_SLOT_BODY},
{ENC, "增加生命", 3297, EQUIPMENT_SLOT_BODY},
{ENC, "法力回复", 2381, EQUIPMENT_SLOT_BODY},
{ENC, "韧性等级", 3245, EQUIPMENT_SLOT_BODY},
{ENC, "防御等级", 1953, EQUIPMENT_SLOT_BODY},
{ENC, "增加敏捷", 1099, EQUIPMENT_SLOT_BODY},
{ENC, "攻击强度", 3845, EQUIPMENT_SLOT_BODY},
},
[ENCMENU+0x20] = { -- 头部
{ENC, "清除头盔附魔",-1,EQUIPMENT_SLOT_HEAD},
{ENC, "增加全属性", 3832, EQUIPMENT_SLOT_HEAD},
{ENC, "法术强度,爆击等级[80]", 3820, EQUIPMENT_SLOT_HEAD},
{ENC, "法术强度,法力回复[80]", 3819, EQUIPMENT_SLOT_HEAD},
{ENC, "增加耐力,防御等级[80]", 3818, EQUIPMENT_SLOT_HEAD},
{ENC, "攻击强度,爆击等级[80]", 3817, EQUIPMENT_SLOT_HEAD},
{ENC, "增加耐力,韧性等级[80]", 3842, EQUIPMENT_SLOT_HEAD},
{ENC, "攻击强度,韧性等级[80]", 3795, EQUIPMENT_SLOT_HEAD},
{ENC, "法术强度,韧性等级[80]", 3797, EQUIPMENT_SLOT_HEAD},
},
[ENCMENU+0x30] = { -- 肩部
{ENC, "清除肩甲附魔",-1,EQUIPMENT_SLOT_SHOULDERS},
{ENC, "增加全属性", 3832, EQUIPMENT_SLOT_SHOULDERS},
{ENC, "攻击强度,韧性等级[80]", 3793, EQUIPMENT_SLOT_SHOULDERS},
{ENC, "攻击强度", 3845, EQUIPMENT_SLOT_SHOULDERS},
{ENC, "法术强度,韧性等级[80]", 3794, EQUIPMENT_SLOT_SHOULDERS},
{ENC, "增加耐力,韧性等级[80]", 3852, EQUIPMENT_SLOT_SHOULDERS},
{ENC, "攻击强度,爆击等级[80]", 3808, EQUIPMENT_SLOT_SHOULDERS},
{ENC, "法术强度,法力回复[80]", 3809, EQUIPMENT_SLOT_SHOULDERS},
{ENC, "闪避等级,防御等级[80]", 3811, EQUIPMENT_SLOT_SHOULDERS},
{ENC, "法术强度,爆击等级[80]", 3810, EQUIPMENT_SLOT_SHOULDERS},
},
[ENCMENU+0x40] = { -- 胸甲
{ENC, "清除胸甲附魔",-1,EQUIPMENT_SLOT_CHEST},
{ENC, "增加全属性", 3832, EQUIPMENT_SLOT_CHEST},
{ENC, "增加生命", 3297, EQUIPMENT_SLOT_CHEST},
{ENC, "法力回复", 2381, EQUIPMENT_SLOT_CHEST},
{ENC, "韧性等级", 3245, EQUIPMENT_SLOT_CHEST},
{ENC, "防御等级", 1953, EQUIPMENT_SLOT_CHEST},
},
[ENCMENU+0xf0] = { -- 腰部
{ENC, "清除腰带附魔",-1,EQUIPMENT_SLOT_WAIST},
{ENC, "增加全属性", 3832, EQUIPMENT_SLOT_WAIST},
{ENC, "增加生命", 3297, EQUIPMENT_SLOT_WAIST},
{ENC, "法力回复", 2381, EQUIPMENT_SLOT_WAIST},
{ENC, "韧性等级", 3245, EQUIPMENT_SLOT_WAIST},
{ENC, "防御等级", 1953, EQUIPMENT_SLOT_WAIST},
},
[ENCMENU+0x50] = { -- 腿部
{ENC, "清除裤子附魔",-1,EQUIPMENT_SLOT_LEGS},
{ENC, "增加精神,法术强度[70]", 3719, EQUIPMENT_SLOT_LEGS},
{ENC, "增加耐力,法术强度[70]", 3721, EQUIPMENT_SLOT_LEGS},
{ENC, "增加耐力,韧性等级[80]", 3853, EQUIPMENT_SLOT_LEGS},
{ENC, "增加耐力,敏捷[80]", 3822, EQUIPMENT_SLOT_LEGS},
{ENC, "攻击强度,爆击等级[80]", 3823, EQUIPMENT_SLOT_LEGS},
{ENC, "法术强度", 2332, EQUIPMENT_SLOT_LEGS},
{ENC, "攻击强度", 3845, EQUIPMENT_SLOT_LEGS},
{ENC, "增加全属性", 3832, EQUIPMENT_SLOT_LEGS},
},
[ENCMENU+0x60] = { -- 脚部
{ENC, "清除靴子附魔",-1,EQUIPMENT_SLOT_FEET},
--{ENC, "攻击强度", 1597, EQUIPMENT_SLOT_FEET},
{ENC, "攻击强度", 3845, EQUIPMENT_SLOT_FEET},
{ENC, "增加耐力,移动速度", 3232, EQUIPMENT_SLOT_FEET},
{ENC, "增加敏捷", 983, EQUIPMENT_SLOT_FEET},
{ENC, "增加精神", 1147, EQUIPMENT_SLOT_FEET},
{ENC, "增加生命,生命回复", 3244, EQUIPMENT_SLOT_FEET},
{ENC, "命中等级,爆击等级", 3826, EQUIPMENT_SLOT_FEET},
{ENC, "增加耐力", 1075, EQUIPMENT_SLOT_FEET},
},
[ENCMENU+0x70] = { -- 护腕
{ENC, "清除护腕附魔",-1,EQUIPMENT_SLOT_WRISTS},
{ENC, "增加耐力", 3850, EQUIPMENT_SLOT_WRISTS},
{ENC, "法术强度", 2332, EQUIPMENT_SLOT_WRISTS},
{ENC, "攻击强度", 3845, EQUIPMENT_SLOT_WRISTS},
{ENC, "增加精神", 1147, EQUIPMENT_SLOT_WRISTS},
{ENC, "精准等级", 3231, EQUIPMENT_SLOT_WRISTS},
--{ENC, "增加全属性1", 2661, EQUIPMENT_SLOT_WRISTS},
{ENC, "增加全属性", 3832, EQUIPMENT_SLOT_WRISTS},
{ENC, "增加智力", 1119, EQUIPMENT_SLOT_WRISTS},
},
[ENCMENU+0x80] = { -- 手套
{ENC, "清除手套附魔",-1,EQUIPMENT_SLOT_HANDS},
{ENC, "爆击等级", 3249, EQUIPMENT_SLOT_HANDS},
{ENC, "增加威胁,招架等级", 3253, EQUIPMENT_SLOT_HANDS},
--{ENC, "攻击强度", 1603, EQUIPMENT_SLOT_HANDS},
{ENC, "攻击强度", 3845, EQUIPMENT_SLOT_HANDS},
{ENC, "增加敏捷", 3222, EQUIPMENT_SLOT_HANDS},
{ENC, "命中等级", 3234, EQUIPMENT_SLOT_HANDS},
{ENC, "精准等级", 3231, EQUIPMENT_SLOT_HANDS},
{ENC, "法术强度", 3246, EQUIPMENT_SLOT_HANDS},
},
[ENCMENU+0x90] = { -- 背部
{ENC, "清除披风附魔",-1,EQUIPMENT_SLOT_BACK},
{ENC, "强化潜行,增加敏捷", 3256, EQUIPMENT_SLOT_BACK},
{ENC, "增加精神,减少威胁", 3296, EQUIPMENT_SLOT_BACK},
{ENC, "防御等级", 1951, EQUIPMENT_SLOT_BACK},
{ENC, "急速等级", 3831, EQUIPMENT_SLOT_BACK},
{ENC, "增加护甲", 3294, EQUIPMENT_SLOT_BACK},
{ENC, "增加敏捷", 1099, EQUIPMENT_SLOT_BACK},
{ENC, "奥术抗性", 1262, EQUIPMENT_SLOT_BACK},
{ENC, "攻击强度", 3845, EQUIPMENT_SLOT_BACK},
{ENC, "增加全属性", 3832, EQUIPMENT_SLOT_BACK},
},
[ENCMENU+0xa0] = {-- 主手
{ENC, "清除主手武器附魔",-1,EQUIPMENT_SLOT_MAINHAND},
{ENC, "增加耐力", 3851, EQUIPMENT_SLOT_MAINHAND},
{ENC, "命中等级,爆击等级", 3788, EQUIPMENT_SLOT_MAINHAND},
{ENC, "狂暴", 3789, EQUIPMENT_SLOT_MAINHAND},
{ENC, "黑魔法", 3790, EQUIPMENT_SLOT_MAINHAND},
--{ENC, "法术强度", 3834, EQUIPMENT_SLOT_MAINHAND},
--{ENC, "攻击强度", 3833, EQUIPMENT_SLOT_MAINHAND},
{ENC, "破冰武器", 3239, EQUIPMENT_SLOT_MAINHAND},
{ENC, "生命护卫", 3241, EQUIPMENT_SLOT_MAINHAND},
{ENC, "吸血[75]", 3870, EQUIPMENT_SLOT_MAINHAND},
{ENC, "利刃防护[75]", 3869, EQUIPMENT_SLOT_MAINHAND},
{ENC, "增加敏捷", 1103, EQUIPMENT_SLOT_MAINHAND},
{ENC, "增加精神", 3844, EQUIPMENT_SLOT_MAINHAND},
{ENC, "斩杀", 3225, EQUIPMENT_SLOT_MAINHAND},
{ENC, "猫鼬", 2673, EQUIPMENT_SLOT_MAINHAND},
{ENC, "攻击强度", 3827, EQUIPMENT_SLOT_MAINHAND},
{ENC, "法术强度", 3854, EQUIPMENT_SLOT_MAINHAND},
},
[ENCMENU+0xb0]={-- 副手
{ENC, "清除副手武器附魔",-1,EQUIPMENT_SLOT_OFFHAND},
{ENC, "增加耐力", 3851, EQUIPMENT_SLOT_OFFHAND},
{ENC, "命中等级,爆击等级", 3788, EQUIPMENT_SLOT_OFFHAND},
{ENC, "狂暴", 3789, EQUIPMENT_SLOT_OFFHAND},
{ENC, "黑魔法", 3790, EQUIPMENT_SLOT_OFFHAND},
--{ENC, "法术强度", 3834, EQUIPMENT_SLOT_OFFHAND},
--{ENC, "攻击强度", 3833, EQUIPMENT_SLOT_OFFHAND},
{ENC, "破冰武器", 3239, EQUIPMENT_SLOT_OFFHAND},
{ENC, "生命护卫", 3241, EQUIPMENT_SLOT_OFFHAND},
{ENC, "吸血[75]", 3870, EQUIPMENT_SLOT_OFFHAND},
{ENC, "利刃防护[75]", 3869, EQUIPMENT_SLOT_OFFHAND},
{ENC, "增加敏捷", 1103, EQUIPMENT_SLOT_OFFHAND},
{ENC, "增加精神", 3844, EQUIPMENT_SLOT_OFFHAND},
{ENC, "斩杀", 3225, EQUIPMENT_SLOT_OFFHAND},
{ENC, "猫鼬", 2673, EQUIPMENT_SLOT_OFFHAND},
{ENC, "攻击强度", 3827, EQUIPMENT_SLOT_OFFHAND},
{ENC, "法术强度", 3854, EQUIPMENT_SLOT_OFFHAND},
},
[ENCMENU+0xe0]={-- 远程
{ENC, "清除远程武器附魔",-1,EQUIPMENT_SLOT_RANGED},
{ENC, "增加耐力", 3851, EQUIPMENT_SLOT_RANGED},
{ENC, "命中等级,爆击等级", 3788, EQUIPMENT_SLOT_RANGED},
--{ENC, "法术强度", 3834, EQUIPMENT_SLOT_RANGED},
--{ENC, "攻击强度", 3833, EQUIPMENT_SLOT_RANGED},
{ENC, "生命护卫", 3241, EQUIPMENT_SLOT_RANGED},
{ENC, "增加敏捷", 1103, EQUIPMENT_SLOT_RANGED},
{ENC, "增加精神", 3844, EQUIPMENT_SLOT_RANGED},
{ENC, "攻击强度", 3827, EQUIPMENT_SLOT_RANGED},
{ENC, "法术强度", 3854,EQUIPMENT_SLOT_RANGED},
},
[ENCMENU+0xc0]={-- 双手
{ENC, "清除双手武器附魔",-1,EQUIPMENT_SLOT_MAINHAND},
{ENC, "增加耐力", 3851, EQUIPMENT_SLOT_MAINHAND},
{ENC, "增加敏捷", 1103, EQUIPMENT_SLOT_MAINHAND},
{ENC, "增加精神", 3844, EQUIPMENT_SLOT_MAINHAND},
{ENC, "命中等级,爆击等级", 3788, EQUIPMENT_SLOT_MAINHAND},
{ENC, "狂暴", 3789, EQUIPMENT_SLOT_MAINHAND},
{ENC, "破冰武器", 3239, EQUIPMENT_SLOT_MAINHAND},
{ENC, "生命护卫", 3241, EQUIPMENT_SLOT_MAINHAND},
{ENC, "吸血[75]", 3870, EQUIPMENT_SLOT_MAINHAND},
{ENC, "利刃防护[75]", 3869, EQUIPMENT_SLOT_MAINHAND},
{ENC, "斩杀", 3225, EQUIPMENT_SLOT_MAINHAND},
{ENC, "猫鼬", 2673, EQUIPMENT_SLOT_MAINHAND},
{ENC, "攻击强度", 3827, EQUIPMENT_SLOT_MAINHAND},
{ENC, "亡灵伤害", 3247, EQUIPMENT_SLOT_MAINHAND},
{ENC, "巨人杀手", 3251, EQUIPMENT_SLOT_MAINHAND},
{ENC, "法术强度", 3854, EQUIPMENT_SLOT_MAINHAND},
},
[ENCMENU+0xd0]={-- 盾牌
{ENC, "清除盾牌附魔",-1,EQUIPMENT_SLOT_OFFHAND},
{ENC, "防御等级", 1952, EQUIPMENT_SLOT_OFFHAND},
{ENC, "增加智力", 1128, EQUIPMENT_SLOT_OFFHAND},
{ENC, "盾牌格挡", 2655, EQUIPMENT_SLOT_OFFHAND},
{ENC, "韧性等级", 3229, EQUIPMENT_SLOT_OFFHAND},
{ENC, "增加耐力", 1071, EQUIPMENT_SLOT_OFFHAND},
{ENC, "格挡值", 2653, EQUIPMENT_SLOT_OFFHAND},
},
}
local function Enchanting(player, EncSpell, Eid, money) --附魔 (玩家,附魔效果,附魔位置)
local ID=Eid
local Nowitem = player:GetEquippedItemBySlot(ID)--得到相应位置物品
if (Nowitem and Eid ) then--存在物品
--local WType = Nowitem:GetSubClass()--物品类型
local WName = Nowitem:GetItemLink()--物品链接
for solt=0,1 do
local espellid=Nowitem:GetEnchantmentId(solt)
if(espellid and espellid>0)then
Nowitem:ClearEnchantment(solt)
if(EncSpell<=0)then
player:SendBroadcastMessage(WName.."已经清除附魔("..espellid..")")
elseif(solt < 1 )then
Nowitem:SetEnchantment(espellid, solt+1)
break
end
end
end
if(EncSpell>0)then
Nowitem:SetEnchantment(EncSpell, 0)