TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
item_scripts.cpp File Reference
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "Spell.h"
#include "Player.h"
+ Include dependency graph for item_scripts.cpp:

Classes

class  item_only_for_flight
 
class  item_nether_wraith_beacon
 
class  item_gor_dreks_ointment
 
class  item_incendiary_explosives
 
class  item_mysterious_egg
 
class  item_disgusting_jar
 
class  item_pile_fake_furs
 
class  item_petrov_cluster_bombs
 
class  item_dehta_trap_smasher
 
class  item_trident_of_nazjan
 
class  item_captured_frog
 

Macros

#define CaribouTrapsNum   15
 
#define MammothTrapsNum   22
 

Enumerations

enum  OnlyForFlight { SPELL_ARCANE_CHARGES = 45072 }
 
enum  PileFakeFur {
  GO_CARIBOU_TRAP_1 = 187982, GO_CARIBOU_TRAP_2 = 187995, GO_CARIBOU_TRAP_3 = 187996, GO_CARIBOU_TRAP_4 = 187997,
  GO_CARIBOU_TRAP_5 = 187998, GO_CARIBOU_TRAP_6 = 187999, GO_CARIBOU_TRAP_7 = 188000, GO_CARIBOU_TRAP_8 = 188001,
  GO_CARIBOU_TRAP_9 = 188002, GO_CARIBOU_TRAP_10 = 188003, GO_CARIBOU_TRAP_11 = 188004, GO_CARIBOU_TRAP_12 = 188005,
  GO_CARIBOU_TRAP_13 = 188006, GO_CARIBOU_TRAP_14 = 188007, GO_CARIBOU_TRAP_15 = 188008, GO_HIGH_QUALITY_FUR = 187983,
  NPC_NESINGWARY_TRAPPER = 25835
}
 
enum  PetrovClusterBombs { SPELL_PETROV_BOMB = 42406, AREA_ID_SHATTERED_STRAITS = 4064, ZONE_ID_HOWLING = 495 }
 
enum  HelpThemselves {
  QUEST_CANNOT_HELP_THEMSELVES = 11876, GO_MAMMOTH_TRAP_1 = 188022, GO_MAMMOTH_TRAP_2 = 188024, GO_MAMMOTH_TRAP_3 = 188025,
  GO_MAMMOTH_TRAP_4 = 188026, GO_MAMMOTH_TRAP_5 = 188027, GO_MAMMOTH_TRAP_6 = 188028, GO_MAMMOTH_TRAP_7 = 188029,
  GO_MAMMOTH_TRAP_8 = 188030, GO_MAMMOTH_TRAP_9 = 188031, GO_MAMMOTH_TRAP_10 = 188032, GO_MAMMOTH_TRAP_11 = 188033,
  GO_MAMMOTH_TRAP_12 = 188034, GO_MAMMOTH_TRAP_13 = 188035, GO_MAMMOTH_TRAP_14 = 188036, GO_MAMMOTH_TRAP_15 = 188037,
  GO_MAMMOTH_TRAP_16 = 188038, GO_MAMMOTH_TRAP_17 = 188039, GO_MAMMOTH_TRAP_18 = 188040, GO_MAMMOTH_TRAP_19 = 188041,
  GO_MAMMOTH_TRAP_20 = 188042, GO_MAMMOTH_TRAP_21 = 188043, GO_MAMMOTH_TRAP_22 = 188044, QUEST_CANNOT_HELP_THEMSELVES = 11876,
  NPC_TRAPPED_MAMMOTH_CALF = 25850, GO_MAMMOTH_TRAP_1 = 188022, GO_MAMMOTH_TRAP_2 = 188024, GO_MAMMOTH_TRAP_3 = 188025,
  GO_MAMMOTH_TRAP_4 = 188026, GO_MAMMOTH_TRAP_5 = 188027, GO_MAMMOTH_TRAP_6 = 188028, GO_MAMMOTH_TRAP_7 = 188029,
  GO_MAMMOTH_TRAP_8 = 188030, GO_MAMMOTH_TRAP_9 = 188031, GO_MAMMOTH_TRAP_10 = 188032, GO_MAMMOTH_TRAP_11 = 188033,
  GO_MAMMOTH_TRAP_12 = 188034, GO_MAMMOTH_TRAP_13 = 188035, GO_MAMMOTH_TRAP_14 = 188036, GO_MAMMOTH_TRAP_15 = 188037,
  GO_MAMMOTH_TRAP_16 = 188038, GO_MAMMOTH_TRAP_17 = 188039, GO_MAMMOTH_TRAP_18 = 188040, GO_MAMMOTH_TRAP_19 = 188041,
  GO_MAMMOTH_TRAP_20 = 188042, GO_MAMMOTH_TRAP_21 = 188043, GO_MAMMOTH_TRAP_22 = 188044
}
 
enum  TheEmissary { QUEST_THE_EMISSARY = 11626, NPC_LEVIROTH = 26452 }
 
enum  CapturedFrog { QUEST_THE_PERFECT_SPIES = 25444, NPC_VANIRAS_SENTRY_TOTEM = 40187 }
 

Functions

void AddSC_item_scripts ()
 

Variables

const uint32 CaribouTraps [CaribouTrapsNum]
 
const uint32 MammothTraps [MammothTrapsNum]
 

Macro Definition Documentation

#define CaribouTrapsNum   15
#define MammothTrapsNum   22

Enumeration Type Documentation

Enumerator
QUEST_THE_PERFECT_SPIES 
NPC_VANIRAS_SENTRY_TOTEM 
388 {
389  QUEST_THE_PERFECT_SPIES = 25444,
391 };
Definition: item_scripts.cpp:390
Definition: item_scripts.cpp:389
Enumerator
QUEST_CANNOT_HELP_THEMSELVES 
GO_MAMMOTH_TRAP_1 
GO_MAMMOTH_TRAP_2 
GO_MAMMOTH_TRAP_3 
GO_MAMMOTH_TRAP_4 
GO_MAMMOTH_TRAP_5 
GO_MAMMOTH_TRAP_6 
GO_MAMMOTH_TRAP_7 
GO_MAMMOTH_TRAP_8 
GO_MAMMOTH_TRAP_9 
GO_MAMMOTH_TRAP_10 
GO_MAMMOTH_TRAP_11 
GO_MAMMOTH_TRAP_12 
GO_MAMMOTH_TRAP_13 
GO_MAMMOTH_TRAP_14 
GO_MAMMOTH_TRAP_15 
GO_MAMMOTH_TRAP_16 
GO_MAMMOTH_TRAP_17 
GO_MAMMOTH_TRAP_18 
GO_MAMMOTH_TRAP_19 
GO_MAMMOTH_TRAP_20 
GO_MAMMOTH_TRAP_21 
GO_MAMMOTH_TRAP_22 
QUEST_CANNOT_HELP_THEMSELVES 
NPC_TRAPPED_MAMMOTH_CALF 
GO_MAMMOTH_TRAP_1 
GO_MAMMOTH_TRAP_2 
GO_MAMMOTH_TRAP_3 
GO_MAMMOTH_TRAP_4 
GO_MAMMOTH_TRAP_5 
GO_MAMMOTH_TRAP_6 
GO_MAMMOTH_TRAP_7 
GO_MAMMOTH_TRAP_8 
GO_MAMMOTH_TRAP_9 
GO_MAMMOTH_TRAP_10 
GO_MAMMOTH_TRAP_11 
GO_MAMMOTH_TRAP_12 
GO_MAMMOTH_TRAP_13 
GO_MAMMOTH_TRAP_14 
GO_MAMMOTH_TRAP_15 
GO_MAMMOTH_TRAP_16 
GO_MAMMOTH_TRAP_17 
GO_MAMMOTH_TRAP_18 
GO_MAMMOTH_TRAP_19 
GO_MAMMOTH_TRAP_20 
GO_MAMMOTH_TRAP_21 
GO_MAMMOTH_TRAP_22 
293 {
295  NPC_TRAPPED_MAMMOTH_CALF = 25850,
296  GO_MAMMOTH_TRAP_1 = 188022,
297  GO_MAMMOTH_TRAP_2 = 188024,
298  GO_MAMMOTH_TRAP_3 = 188025,
299  GO_MAMMOTH_TRAP_4 = 188026,
300  GO_MAMMOTH_TRAP_5 = 188027,
301  GO_MAMMOTH_TRAP_6 = 188028,
302  GO_MAMMOTH_TRAP_7 = 188029,
303  GO_MAMMOTH_TRAP_8 = 188030,
304  GO_MAMMOTH_TRAP_9 = 188031,
305  GO_MAMMOTH_TRAP_10 = 188032,
306  GO_MAMMOTH_TRAP_11 = 188033,
307  GO_MAMMOTH_TRAP_12 = 188034,
308  GO_MAMMOTH_TRAP_13 = 188035,
309  GO_MAMMOTH_TRAP_14 = 188036,
310  GO_MAMMOTH_TRAP_15 = 188037,
311  GO_MAMMOTH_TRAP_16 = 188038,
312  GO_MAMMOTH_TRAP_17 = 188039,
313  GO_MAMMOTH_TRAP_18 = 188040,
314  GO_MAMMOTH_TRAP_19 = 188041,
315  GO_MAMMOTH_TRAP_20 = 188042,
316  GO_MAMMOTH_TRAP_21 = 188043,
317  GO_MAMMOTH_TRAP_22 = 188044,
318 };
Definition: item_scripts.cpp:303
Definition: item_scripts.cpp:317
Definition: item_scripts.cpp:308
Definition: item_scripts.cpp:307
Definition: item_scripts.cpp:311
Definition: item_scripts.cpp:302
Definition: item_scripts.cpp:314
Definition: item_scripts.cpp:301
Definition: item_scripts.cpp:312
Definition: item_scripts.cpp:299
Definition: item_scripts.cpp:298
Definition: item_scripts.cpp:316
Definition: item_scripts.cpp:294
Definition: item_scripts.cpp:296
Definition: item_scripts.cpp:310
Definition: item_scripts.cpp:315
Definition: item_scripts.cpp:313
Definition: item_scripts.cpp:300
Definition: item_scripts.cpp:304
Definition: item_scripts.cpp:295
Definition: item_scripts.cpp:297
Definition: item_scripts.cpp:306
Definition: item_scripts.cpp:305
Definition: item_scripts.cpp:309
Enumerator
SPELL_ARCANE_CHARGES 
43 {
44  SPELL_ARCANE_CHARGES = 45072
45 };
Definition: item_scripts.cpp:44
Enumerator
SPELL_PETROV_BOMB 
AREA_ID_SHATTERED_STRAITS 
ZONE_ID_HOWLING 
260 {
261  SPELL_PETROV_BOMB = 42406,
263  ZONE_ID_HOWLING = 495
264 };
Definition: item_scripts.cpp:262
Definition: item_scripts.cpp:261
Definition: item_scripts.cpp:263
Enumerator
GO_CARIBOU_TRAP_1 
GO_CARIBOU_TRAP_2 
GO_CARIBOU_TRAP_3 
GO_CARIBOU_TRAP_4 
GO_CARIBOU_TRAP_5 
GO_CARIBOU_TRAP_6 
GO_CARIBOU_TRAP_7 
GO_CARIBOU_TRAP_8 
GO_CARIBOU_TRAP_9 
GO_CARIBOU_TRAP_10 
GO_CARIBOU_TRAP_11 
GO_CARIBOU_TRAP_12 
GO_CARIBOU_TRAP_13 
GO_CARIBOU_TRAP_14 
GO_CARIBOU_TRAP_15 
GO_HIGH_QUALITY_FUR 
NPC_NESINGWARY_TRAPPER 
193 {
194  GO_CARIBOU_TRAP_1 = 187982,
195  GO_CARIBOU_TRAP_2 = 187995,
196  GO_CARIBOU_TRAP_3 = 187996,
197  GO_CARIBOU_TRAP_4 = 187997,
198  GO_CARIBOU_TRAP_5 = 187998,
199  GO_CARIBOU_TRAP_6 = 187999,
200  GO_CARIBOU_TRAP_7 = 188000,
201  GO_CARIBOU_TRAP_8 = 188001,
202  GO_CARIBOU_TRAP_9 = 188002,
203  GO_CARIBOU_TRAP_10 = 188003,
204  GO_CARIBOU_TRAP_11 = 188004,
205  GO_CARIBOU_TRAP_12 = 188005,
206  GO_CARIBOU_TRAP_13 = 188006,
207  GO_CARIBOU_TRAP_14 = 188007,
208  GO_CARIBOU_TRAP_15 = 188008,
209  GO_HIGH_QUALITY_FUR = 187983,
210  NPC_NESINGWARY_TRAPPER = 25835
211 };
Definition: item_scripts.cpp:208
Definition: item_scripts.cpp:206
Definition: item_scripts.cpp:199
Definition: item_scripts.cpp:195
Definition: item_scripts.cpp:200
Definition: item_scripts.cpp:197
Definition: item_scripts.cpp:194
Definition: item_scripts.cpp:207
Definition: item_scripts.cpp:209
Definition: item_scripts.cpp:204
Definition: item_scripts.cpp:202
Definition: item_scripts.cpp:210
Definition: item_scripts.cpp:196
Definition: item_scripts.cpp:198
Definition: item_scripts.cpp:203
Definition: item_scripts.cpp:205
Definition: item_scripts.cpp:201
Enumerator
QUEST_THE_EMISSARY 
NPC_LEVIROTH 
361 {
362  QUEST_THE_EMISSARY = 11626,
363  NPC_LEVIROTH = 26452
364 };
Definition: item_scripts.cpp:363
Definition: item_scripts.cpp:362

Function Documentation

void AddSC_item_scripts ( )
414 {
415  new item_only_for_flight();
419  new item_mysterious_egg();
420  new item_disgusting_jar();
421  new item_pile_fake_furs();
425  new item_captured_frog();
426 }
Definition: item_scripts.cpp:131
Definition: item_scripts.cpp:111
Definition: item_scripts.cpp:330
Definition: item_scripts.cpp:172
Definition: item_scripts.cpp:221
Definition: item_scripts.cpp:47
Definition: item_scripts.cpp:393
Definition: item_scripts.cpp:366
Definition: item_scripts.cpp:88
Definition: item_scripts.cpp:266
Definition: item_scripts.cpp:152

+ Here is the caller graph for this function:

Variable Documentation

const uint32 CaribouTraps[CaribouTrapsNum]
Initial value:
=
{
}
Definition: item_scripts.cpp:208
Definition: item_scripts.cpp:206
Definition: item_scripts.cpp:199
Definition: item_scripts.cpp:195
Definition: item_scripts.cpp:200
Definition: item_scripts.cpp:197
Definition: item_scripts.cpp:194
Definition: item_scripts.cpp:207
Definition: item_scripts.cpp:204
Definition: item_scripts.cpp:202
Definition: item_scripts.cpp:196
Definition: item_scripts.cpp:198
Definition: item_scripts.cpp:203
Definition: item_scripts.cpp:205
Definition: item_scripts.cpp:201
const uint32 MammothTraps[MammothTrapsNum]
Initial value:
=
{
}
Definition: item_scripts.cpp:303
Definition: item_scripts.cpp:317
Definition: item_scripts.cpp:308
Definition: item_scripts.cpp:307
Definition: item_scripts.cpp:311
Definition: item_scripts.cpp:302
Definition: item_scripts.cpp:314
Definition: item_scripts.cpp:301
Definition: item_scripts.cpp:312
Definition: item_scripts.cpp:299
Definition: item_scripts.cpp:298
Definition: item_scripts.cpp:316
Definition: item_scripts.cpp:296
Definition: item_scripts.cpp:310
Definition: item_scripts.cpp:315
Definition: item_scripts.cpp:313
Definition: item_scripts.cpp:300
Definition: item_scripts.cpp:304
Definition: item_scripts.cpp:297
Definition: item_scripts.cpp:306
Definition: item_scripts.cpp:305
Definition: item_scripts.cpp:309