forked from scriptdev2/scriptdev2
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathteleguy.cpp
More file actions
879 lines (674 loc) · 26.7 KB
/
teleguy.cpp
File metadata and controls
879 lines (674 loc) · 26.7 KB
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
#include "precompiled.h"
long long int money;
int costo;
bool GossipHello_teleguy(Player *player, Creature *_Creature)
{
if ( player->GetTeam() == ALLIANCE ) {
player->ADD_GOSSIP_ITEM( 5, "Darnassus. 5 Silver" , GOSSIP_SENDER_MAIN, 1203);
player->ADD_GOSSIP_ITEM( 5, "Exodar. 5 Silver" , GOSSIP_SENDER_MAIN, 1216);
player->ADD_GOSSIP_ITEM( 5, "Stormwind. 5 Silver" , GOSSIP_SENDER_MAIN, 1206);
player->ADD_GOSSIP_ITEM( 5, "Ironforge. 5 Silver" , GOSSIP_SENDER_MAIN, 1224);
player->ADD_GOSSIP_ITEM( 5, "Gnomeregan. 5 Silver" , GOSSIP_SENDER_MAIN, 1222);
player->ADD_GOSSIP_ITEM( 5, "Shattrath City. 5 Silver" , GOSSIP_SENDER_MAIN, 1287);
player->ADD_GOSSIP_ITEM( 5, "Dalaran. 5 Silver" , GOSSIP_SENDER_MAIN, 1205);
player->ADD_GOSSIP_ITEM( 5, "Isle Of Quel'Danas. 5 Silver" , GOSSIP_SENDER_MAIN, 1288);
player->ADD_GOSSIP_ITEM( 7, "[Instances] ->" , GOSSIP_SENDER_MAIN, 5550);
player->ADD_GOSSIP_ITEM( 7, "[Instances WotLK] ->" , GOSSIP_SENDER_MAIN, 5554);
} else {
player->ADD_GOSSIP_ITEM( 5, "Orgrimmar. 5 Silver" , GOSSIP_SENDER_MAIN, 1215);
player->ADD_GOSSIP_ITEM( 5, "Silvermoon. 5 Silver" , GOSSIP_SENDER_MAIN, 1217);
player->ADD_GOSSIP_ITEM( 5, "Undercity. 5 Silver" , GOSSIP_SENDER_MAIN, 1213);
player->ADD_GOSSIP_ITEM( 5, "Thunder Bluff. 5 Silver" , GOSSIP_SENDER_MAIN, 1225);
player->ADD_GOSSIP_ITEM( 5, "Gnomeregan. 5 Silver" , GOSSIP_SENDER_MAIN, 1222);
player->ADD_GOSSIP_ITEM( 5, "Shattrath City. 5 Silver" , GOSSIP_SENDER_MAIN, 1287);
player->ADD_GOSSIP_ITEM( 5, "Dalaran. 5 Silver" , GOSSIP_SENDER_MAIN, 1205);
player->ADD_GOSSIP_ITEM( 5, "Isle Of Quel'Danas. 5 Silver" , GOSSIP_SENDER_MAIN, 1288);
player->ADD_GOSSIP_ITEM( 7, "[Instances] ->" , GOSSIP_SENDER_MAIN, 5550);
player->ADD_GOSSIP_ITEM( 7, "[Instances WotLK] ->" , GOSSIP_SENDER_MAIN, 5554);
}
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
return true;
}
void SendDefaultMenu_teleguy(Player *player, Creature *_Creature, uint32 action )
{
if(!player->getAttackers().empty())
{
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You are in combat!", LANG_UNIVERSAL, NULL);
return;
}
if( player->getLevel() < 8 )
{
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be lvl 8+", LANG_UNIVERSAL, NULL);
return;
}
money = player-> GetMoney();
costo = 500;
if (money < costo )
{
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You haven't enough money", LANG_UNIVERSAL, NULL);
return;
}
switch(action)
{
case 5550: //Instances
player->ADD_GOSSIP_ITEM( 5, "Ragefire Chasm. 10 Silver" , GOSSIP_SENDER_MAIN, 1248);
player->ADD_GOSSIP_ITEM( 5, "The Wailing Caverns. 10 Silver" , GOSSIP_SENDER_MAIN, 1249);
player->ADD_GOSSIP_ITEM( 5, "The Stockade. 10 Silver" , GOSSIP_SENDER_MAIN, 1253);
player->ADD_GOSSIP_ITEM( 5, "Deadmines. 10 Silver" , GOSSIP_SENDER_MAIN, 1250);
player->ADD_GOSSIP_ITEM( 5, "Shadowfang Keep. 10 Silver" , GOSSIP_SENDER_MAIN, 1251);
player->ADD_GOSSIP_ITEM( 5, "Blackfathom Deeps. 10 Silver" , GOSSIP_SENDER_MAIN, 1252);
player->ADD_GOSSIP_ITEM( 5, "Razorfen Kraul. 20 Silver" , GOSSIP_SENDER_MAIN, 1254);
player->ADD_GOSSIP_ITEM( 5, "Razorfen Downs. 20 Silver" , GOSSIP_SENDER_MAIN, 1256);
player->ADD_GOSSIP_ITEM( 5, "Scarlet Monastery. 20 Silver" , GOSSIP_SENDER_MAIN, 1257);
player->ADD_GOSSIP_ITEM( 7, "[More] ->" , GOSSIP_SENDER_MAIN, 5551);
player->ADD_GOSSIP_ITEM( 7, "<- [Main Menu]" , GOSSIP_SENDER_MAIN, 5552);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
break;
case 5551: //More Instances
player->ADD_GOSSIP_ITEM( 5, "Uldaman. 30 Silver" , GOSSIP_SENDER_MAIN, 1258);
player->ADD_GOSSIP_ITEM( 5, "Zul'Farrak. 30 Silver" , GOSSIP_SENDER_MAIN, 1259);
player->ADD_GOSSIP_ITEM( 5, "Maraudon. 40 Silver" , GOSSIP_SENDER_MAIN, 1260);
player->ADD_GOSSIP_ITEM( 5, "Maraudon. 40 Silver" , GOSSIP_SENDER_MAIN, 1260);
player->ADD_GOSSIP_ITEM( 5, "The Sunken Temple. 40 Silver" , GOSSIP_SENDER_MAIN, 1261);
player->ADD_GOSSIP_ITEM( 5, "Blackrock Depths. 40 Silver" , GOSSIP_SENDER_MAIN, 1262);
player->ADD_GOSSIP_ITEM( 5, "Dire Maul. 50 Silver" , GOSSIP_SENDER_MAIN, 1263);
player->ADD_GOSSIP_ITEM( 5, "Blackrock Spire. 50 Silver" , GOSSIP_SENDER_MAIN, 1264);
player->ADD_GOSSIP_ITEM( 5, "Stratholme. 50 Silver" , GOSSIP_SENDER_MAIN, 1265);
player->ADD_GOSSIP_ITEM( 5, "Scholomance. 50 Silver" , GOSSIP_SENDER_MAIN, 1266);
player->ADD_GOSSIP_ITEM( 7, "[More] ->" , GOSSIP_SENDER_MAIN, 5553);
player->ADD_GOSSIP_ITEM( 7, "<- [Back]" , GOSSIP_SENDER_MAIN, 5550);
player->ADD_GOSSIP_ITEM( 7, "<- [Main Menu]" , GOSSIP_SENDER_MAIN, 5552);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
break;
case 5553: //Instances 60-70
player->ADD_GOSSIP_ITEM( 5, "Karazhan. 1 Gold" , GOSSIP_SENDER_MAIN, 4007);
player->ADD_GOSSIP_ITEM( 5, "Gruul's Lair. 1 Gold" , GOSSIP_SENDER_MAIN, 4008);
player->ADD_GOSSIP_ITEM( 5, "Hellfire Citadel. 1 Gold" , GOSSIP_SENDER_MAIN, 4009);
player->ADD_GOSSIP_ITEM( 5, "Coilfang Reservoir. 1 Gold" , GOSSIP_SENDER_MAIN, 4010);
player->ADD_GOSSIP_ITEM( 5, "Tempest Keep. 1 Gold" , GOSSIP_SENDER_MAIN, 4011);
player->ADD_GOSSIP_ITEM( 5, "Caverns of Time. 1 Gold" , GOSSIP_SENDER_MAIN, 4012);
player->ADD_GOSSIP_ITEM( 5, "Zul'Aman. 1 Gold" , GOSSIP_SENDER_MAIN, 4016);
player->ADD_GOSSIP_ITEM( 5, "Black Temple. 1 Gold" , GOSSIP_SENDER_MAIN, 4013);
player->ADD_GOSSIP_ITEM( 5, "Magister's Terrace. 2 Gold" , GOSSIP_SENDER_MAIN, 4017);
player->ADD_GOSSIP_ITEM( 5, "Sunwell Plateau. 2 Gold" , GOSSIP_SENDER_MAIN, 4018);
player->ADD_GOSSIP_ITEM( 7, "<- [Back]" , GOSSIP_SENDER_MAIN, 5550);
player->ADD_GOSSIP_ITEM( 7, "<- [Main Menu]" , GOSSIP_SENDER_MAIN, 5552);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
break;
case 5554: //Instances 75-80 NORTHREND
player->ADD_GOSSIP_ITEM( 5, "Utgarde Keep. 20 Gold" , GOSSIP_SENDER_MAIN, 4019);
player->ADD_GOSSIP_ITEM( 5, "The Nexus. 20 Gold" , GOSSIP_SENDER_MAIN, 4020);
player->ADD_GOSSIP_ITEM( 5, "Azjol-Nerub. 20 Gold" , GOSSIP_SENDER_MAIN, 4021);
player->ADD_GOSSIP_ITEM( 5, "Ahn'kahet: The Old Kingdom. 20 Gold" , GOSSIP_SENDER_MAIN, 4022);
player->ADD_GOSSIP_ITEM( 5, "Drak'Tharon Keep. 20 Gold" , GOSSIP_SENDER_MAIN, 4023);
player->ADD_GOSSIP_ITEM( 5, "The Violet Hold. 20 Gold" , GOSSIP_SENDER_MAIN, 4024);
player->ADD_GOSSIP_ITEM( 5, "Gun' Drak. 20 Gold" , GOSSIP_SENDER_MAIN, 4025);
player->ADD_GOSSIP_ITEM( 5, "Utgarde Pinnacle. 20 Gold" , GOSSIP_SENDER_MAIN, 4026);
player->ADD_GOSSIP_ITEM( 5, "Ulduar. 20 Gold" , GOSSIP_SENDER_MAIN, 4027);
player->ADD_GOSSIP_ITEM( 5, "The Obsidian Sanctum. 20 Gold" , GOSSIP_SENDER_MAIN, 4028);
player->ADD_GOSSIP_ITEM( 5, "Naxxramas. 20 Gold" , GOSSIP_SENDER_MAIN, 4029);
player->ADD_GOSSIP_ITEM( 7, "<- [Back]" , GOSSIP_SENDER_MAIN, 5550);
player->ADD_GOSSIP_ITEM( 7, "<- [Main Menu]" , GOSSIP_SENDER_MAIN, 5552);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
break;
case 5552: //Back To Main Menu
if ( player->GetTeam() == ALLIANCE ) {
player->ADD_GOSSIP_ITEM( 5, "Darnassus. 5 Silver" , GOSSIP_SENDER_MAIN, 1203);
player->ADD_GOSSIP_ITEM( 5, "Exodar. 5 Silver" , GOSSIP_SENDER_MAIN, 1216);
player->ADD_GOSSIP_ITEM( 5, "Stormwind. 5 Silver" , GOSSIP_SENDER_MAIN, 1206);
player->ADD_GOSSIP_ITEM( 5, "Ironforge. 5 Silver" , GOSSIP_SENDER_MAIN, 1224);
player->ADD_GOSSIP_ITEM( 5, "Gnomeregan. 5 Silver" , GOSSIP_SENDER_MAIN, 1222);
player->ADD_GOSSIP_ITEM( 5, "Shattrath City. 5 Silver" , GOSSIP_SENDER_MAIN, 1287);
player->ADD_GOSSIP_ITEM( 5, "Dalaran. 5 Silver" , GOSSIP_SENDER_MAIN, 1205);
player->ADD_GOSSIP_ITEM( 5, "Isle Of Quel'Danas. 5 Silver" , GOSSIP_SENDER_MAIN, 1288);
player->ADD_GOSSIP_ITEM( 7, "[Instances] ->" , GOSSIP_SENDER_MAIN, 5550);
player->ADD_GOSSIP_ITEM( 7, "[Instances WotLK] ->" , GOSSIP_SENDER_MAIN, 5554);
} else {
player->ADD_GOSSIP_ITEM( 5, "Orgrimmar. 5 Silver" , GOSSIP_SENDER_MAIN, 1215);
player->ADD_GOSSIP_ITEM( 5, "Silvermoon. 5 Silver" , GOSSIP_SENDER_MAIN, 1217);
player->ADD_GOSSIP_ITEM( 5, "Undercity. 5 Silver" , GOSSIP_SENDER_MAIN, 1213);
player->ADD_GOSSIP_ITEM( 5, "Thunder Bluff. 5 Silver" , GOSSIP_SENDER_MAIN, 1225);
player->ADD_GOSSIP_ITEM( 5, "Gnomeregan. 5 Silver" , GOSSIP_SENDER_MAIN, 1222);
player->ADD_GOSSIP_ITEM( 5, "Shattrath City. 5 Silver" , GOSSIP_SENDER_MAIN, 1287);
player->ADD_GOSSIP_ITEM( 5, "Dalaran. 5 Silver" , GOSSIP_SENDER_MAIN, 1205);
player->ADD_GOSSIP_ITEM( 5, "Isle Of Quel'Danas. 5 Silver" , GOSSIP_SENDER_MAIN, 1288);
player->ADD_GOSSIP_ITEM( 7, "[Instances] ->" , GOSSIP_SENDER_MAIN, 5550);
player->ADD_GOSSIP_ITEM( 7, "[Instances WotLK] ->" , GOSSIP_SENDER_MAIN, 5554);
}
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
break;
case 1203: // Teleport to Darnassus
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, 9947.52f, 2482.73f, 1316.21f, 0.0f);
player->ModifyMoney(-1*costo);
break;
// Teleport to Stormwind
case 1206:
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -8960.14f, 516.266f, 96.3568f, 0.0f);
player->ModifyMoney(-1*costo);
break;
// Teleport to Dalaran
case 1205:
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 5804.14f, 624.770f, 647.7670f, 1.64f);
player->ModifyMoney(-1*costo);
break;
// Teleport to Undercity
case 1213:
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, 1819.71f, 238.79f, 60.5321f, 0.0f);
player->ModifyMoney(-1*costo);
break;
// Teleport to Orgrimmar
case 1215:
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, 1552.5f, -4420.66f, 8.94802f, 0.0f);
player->ModifyMoney(-1*costo);
break;
// Teleport to Exodar
case 1216:
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -4073.03f, -12020.4f, -1.47f, 0.0f);
player->ModifyMoney(-1*costo);
break;
// Teleport to Silvermoon
case 1217:
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 9338.74f, -7277.27f, 13.7895f, 0.0f);
player->ModifyMoney(-1*costo);
break;
case 1222://teleport player to Gnomeregan
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -5163.43f,660.40f,348.28f,4.65f);
player->ModifyMoney(-1*costo);
break;
// Teleport to Ironforge
case 1224:
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -4924.07f, -951.95f, 501.55f, 5.40f);
player->ModifyMoney(-1*costo);
break;
// Teleport to Thunder Bluff
case 1225:
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -1280.19f,127.21f,131.35f,5.16f);
player->ModifyMoney(-1*costo);
break;
case 1248://teleport player to Ragefire Chasm
if( player->getLevel() >= 8)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, 1800.53f,-4394.68f,-17.93f,5.49f);
player->ModifyMoney(-2*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 8!", LANG_UNIVERSAL, NULL);
}
break;
case 1249://teleport player to the Wailing Caverns
if (player->getLevel() >= 10)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -722.53f,-2226.30f,16.94f,2.71f);
player->ModifyMoney(-2*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 10!", LANG_UNIVERSAL, NULL);
}
break;
case 1250://teleport player to the Deadmines
if (player->getLevel() >= 10)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -11212.04f,1658.58f,25.67f,1.45f);
player->ModifyMoney(-2*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 10!", LANG_UNIVERSAL, NULL);
}
break;
case 1251://teleport player to Shadowfang Keep
if (player->getLevel() >= 15)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -254.47f,1524.68f,76.89f,1.56f);
player->ModifyMoney(-2*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 15!", LANG_UNIVERSAL, NULL);
}
break;
case 1252://teleport player to Blackfathom Deeps
if (player->getLevel() >= 15)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, 4254.58f,664.74f,-29.04f,1.97f);
player->ModifyMoney(-2*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 15!", LANG_UNIVERSAL, NULL);
}
break;
case 1253://teleport player to the Stockade
if (player->getLevel() >= 20)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -8769.76f,813.08f,97.63f,2.26f);
player->ModifyMoney(-2*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 20!", LANG_UNIVERSAL, NULL);
}
break;
case 1254://teleport player to Razorfen Kraul
if (player->getLevel() >= 24)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -4484.04f,-1739.40f,86.47f,1.23f);
player->ModifyMoney(-4*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 24!", LANG_UNIVERSAL, NULL);
}
break;
case 1255://teleport player to Gnomeregan
if (player->getLevel() >= 20)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -5162.62f,667.81f,248.05f,1.48f);
player->ModifyMoney(-4*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 20!", LANG_UNIVERSAL, NULL);
}
break;
case 1256://teleport player to Razorfen Downs
if (player->getLevel() >= 25)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -4645.08f,-2470.85f,85.53f,4.39f);
player->ModifyMoney(-4*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 25!", LANG_UNIVERSAL, NULL);
}
break;
case 1257://teleport player to the Scarlet Monastery
if (player->getLevel() >= 25)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, 2843.89f,-693.74f,139.32f,5.11f);
player->ModifyMoney(-4*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 25!", LANG_UNIVERSAL, NULL);
}
break;
case 1258://teleport player to Uldaman
if (player->getLevel() >= 35)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -6119.70f,-2957.30f,204.11f,0.03f);
player->ModifyMoney(-6*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 35!", LANG_UNIVERSAL, NULL);
}
break;
case 1259://teleport player to Zul'Farrak
if (player->getLevel() >= 35)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -6839.39f,-2911.03f,8.87f,0.41f);
player->ModifyMoney(-6*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 35!", LANG_UNIVERSAL, NULL);
}
break;
case 1260://teleport player to Maraudon
if (player->getLevel() >= 40)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -1433.33f,2955.34f,96.21f,4.82f);
player->ModifyMoney(-8*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 40!", LANG_UNIVERSAL, NULL);
}
break;
case 1261://teleport player to the Sunken Temple
if (player->getLevel() >= 45)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -10346.92f,-3851.90f,-43.41f,6.09f);
player->ModifyMoney(-8*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 45!", LANG_UNIVERSAL, NULL);
}
break;
case 1262://teleport player to Blackrock Depths
if (player->getLevel() >= 45)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -7301.03f,-913.19f,165.37f,0.08f);
player->ModifyMoney(-8*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 45!", LANG_UNIVERSAL, NULL);
}
break;
case 1263://teleport player to Dire Maul
if (player->getLevel() >= 50)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -3982.47f,1127.79f,161.02f,0.05f);
player->ModifyMoney(-10*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 50!", LANG_UNIVERSAL, NULL);
}
break;
case 1264://teleport player to Blackrock Spire
if (player->getLevel() >= 50)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -7535.43f,-1212.04f,285.45f,5.29f);
player->ModifyMoney(-10*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 50!", LANG_UNIVERSAL, NULL);
}
break;
case 1265://teleport player to Stratholme
if (player->getLevel() >= 50)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, 3263.54f,-3379.46f,143.59f,0.00f);
player->ModifyMoney(-10*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 50!", LANG_UNIVERSAL, NULL);
}
break;
case 1266://teleport player to Scholomance
if (player->getLevel() >= 50)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, 1219.01f,-2604.66f,85.61f,0.50f);
player->ModifyMoney(-10*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 50!", LANG_UNIVERSAL, NULL);
}
break;
case 1287:// Shattrath City
if( player->getLevel() >= 58)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -1850.209961f, 5435.821777f, -10.961435f, 3.403913f);
player->ModifyMoney(-1*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 58!", LANG_UNIVERSAL, NULL);
}
break;
case 1288://teleport player to Isle Of Quel'Danas
if (player->getLevel() >= 65)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 12947.4f,-6893.31f,5.68398f,3.09154f);
player->ModifyMoney(-1*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 65!", LANG_UNIVERSAL, NULL);
}
break;
case 4007:// Karazhan
if (player->getLevel() >= 70)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -11118.8f, -2010.84f, 47.0807f, 0.0f);
player->ModifyMoney(-20*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 70!", LANG_UNIVERSAL, NULL);
}
break;
case 4008:// Gruul's Lair
if (player->getLevel() >= 65)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 3539.007568f, 5082.357910f, 1.691071f, 0.0f);
player->ModifyMoney(-20*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 65!", LANG_UNIVERSAL, NULL);
}
break;
case 4009:// Hellfire Citadel
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -305.816223f, 3056.401611f, -2.473183f, 2.01f);
player->ModifyMoney(-20*costo);
break;
case 4010:// Coilfang Reservoir
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 517.288025f, 6976.279785f, 32.007198f, 0.0f);
player->ModifyMoney(-20*costo);
break;
case 4011:// Tempest Keep
if (player->getLevel() >= 70)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 3089.579346f, 1399.046509f, 187.653458f, 4.794070f);
player->ModifyMoney(-20*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 70!", LANG_UNIVERSAL, NULL);
}
break;
case 4012:// Caverns of Time
if (player->getLevel() >= 66)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -8173.66f, -4746.36f, 33.8423f, 4.93989f);
player->ModifyMoney(-20*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 66!", LANG_UNIVERSAL, NULL);
}
break;
case 4016:// Zul'Aman
if (player->getLevel() >= 70)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 6846.95f, -7954.5f, 170.028f, 4.61501f);
player->ModifyMoney(-20*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 70!", LANG_UNIVERSAL, NULL);
}
break;
case 4013:// Black Temple
if (player->getLevel() >= 70)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3610.719482f, 324.987579f, 37.400028f, 3.282981f);
player->ModifyMoney(-20*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 70!", LANG_UNIVERSAL, NULL);
}
break;
case 4017:// magistrate
if (player->getLevel() >= 70)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 12884.6f, -7317.69f, 65.5023f, 4.799f);
player->ModifyMoney(-40*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 70!", LANG_UNIVERSAL, NULL);
}
break;
case 4018:// sunwell
if (player->getLevel() >= 70)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 12574.1f, -6774.81f, 15.0904f, 3.13788f);
player->ModifyMoney(-40*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 70!", LANG_UNIVERSAL, NULL);
}
break;
case 4019:// Utgarde Keep
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 1219.720f, -4865.28f, 41.25f, 0.31f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
case 4020:// The Nexus
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 3776.950f, 6953.80f, 105.05f, 0.345f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
case 4021:// Azjol-Nerub
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 3675.430f, 2169.00f, 35.90f, 2.29f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
case 4022:// Ahn'kahet: The Old Kingdom
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 3646.760f, 2045.17f, 1.79f, 4.37f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
case 4023:// Drak'Tharon Keep
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 4450.860f, -2045.25f, 162.83f, 0.00f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
case 4024:// The Violet Hold
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 5679.820f, 486.80f, 652.40f, 4.08f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
case 4025:// Gun' Drak
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 6937.540f, -4455.98f, 450.68f, 1.00f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
case 4026:// Utgarde Pinnacle
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 1245.690f, -4856.59f, 216.86f, 3.45f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
case 4027:// Ulduar
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 8976.240f, -1281.33f, 1059.01f, 0.58f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
case 4028:// The Obsidian Sanctum
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 3625.780f, 280.40f, -120.14f, 3.25f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
case 4029:// Naxxramas
if (player->getLevel() >= 80)
{
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 3668.719f, -1262.460f, 243.63f, 5.03f);
player->ModifyMoney(-400*costo);
} else {
player->CLOSE_GOSSIP_MENU();
_Creature->MonsterSay("You must be at least level 80!", LANG_UNIVERSAL, NULL);
}
break;
}
}
bool GossipSelect_teleguy(Player *player, Creature *_Creature, uint32 sender, uint32 action )
{
// Main menu
if (sender == GOSSIP_SENDER_MAIN)
SendDefaultMenu_teleguy(player, _Creature, action );
return true;
}
void AddSC_teleguy()
{
Script *newscript;
newscript = new Script;
newscript->Name = "teleguy";
newscript->pGossipHello = &GossipHello_teleguy;
newscript->pGossipSelect = &GossipSelect_teleguy;
newscript->pItemHello = NULL;
newscript->pGOHello = NULL;
newscript->pAreaTrigger = NULL;
newscript->pItemQuestAccept = NULL;
newscript->pGOQuestAccept = NULL;
newscript->pGOChooseReward = NULL;
newscript->RegisterSelf();
}