41 uint32 itemId = item->GetEntry();
42 bool disabled =
false;
48 if (player->GetAreaId() != 3628)
52 if (player->GetZoneId() != 4080)
62 if (player->IsInFlight() && !disabled)
85 nether->AI()->AttackStart(player);
88 nether->AI()->AttackStart(player);
105 if (targets.GetUnitTarget() && targets.GetUnitTarget()->GetTypeId() ==
TypeID::TYPEID_UNIT &&
106 targets.GetUnitTarget()->GetEntry() == 20748 && !targets.GetUnitTarget()->HasAura(32578))
125 if (player->FindNearestCreature(26248, 15) || player->FindNearestCreature(26249, 15))
200#define CaribouTrapsNum 15
234 summon->SetVisible(
false);
307#define MammothTrapsNum 22
364 pLeviroth->AI()->AttackStart(player);
408 switch (item->GetEntry())
@ EQUIP_ERR_CLIENT_LOCKED_OUT
@ TEMPSUMMON_TIMED_DESPAWN
@ TEMPSUMMON_DEAD_DESPAWN
std::vector< ItemPosCount > ItemPosCountVec
@ QUEST_STATUS_INCOMPLETE
@ SPELL_FAILED_NOT_ON_GROUND
void SetGoState(GOState state)
static int32 GenerateItemRandomPropertyId(uint32 item_id)
ItemScript(const char *name)
static void SendCastResult(Player *caster, SpellInfo const *spellInfo, uint8 cast_count, SpellCastResult result, SpellCustomErrors customError=SPELL_CUSTOM_ERROR_NONE, Opcodes opcode=SMSG_CAST_FAILED)
virtual void DoAction(int32)
GameObject * FindNearestGameObject(uint32 entry, float range) const
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
GameObject * SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime)
void GetClosePoint(float &x, float &y, float &z, float size, float distance2d=0, float angle=0) const
float GetObjectSize() const
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
bool OnUse(Player *player, Item *item, SpellCastTargets const &) OVERRIDE
item_dehta_trap_smasher()
bool OnUse(Player *player, Item *, const SpellCastTargets &) OVERRIDE
bool OnExpire(Player *player, ItemTemplate const *) OVERRIDE
item_eye_of_black_prince()
bool OnUse(Player *, Item *item, SpellCastTargets const &) OVERRIDE
bool OnUse(Player *player, Item *item, SpellCastTargets const &targets) OVERRIDE
item_gor_dreks_ointment()
item_incendiary_explosives()
bool OnUse(Player *player, Item *item, SpellCastTargets const &) OVERRIDE
bool OnExpire(Player *player, ItemTemplate const *) OVERRIDE
item_nether_wraith_beacon()
bool OnUse(Player *player, Item *, SpellCastTargets const &) OVERRIDE
bool OnUse(Player *player, Item *item, SpellCastTargets const &) OVERRIDE
item_petrov_cluster_bombs()
bool OnUse(Player *player, Item *, const SpellCastTargets &) OVERRIDE
bool OnUse(Player *player, Item *, SpellCastTargets const &) OVERRIDE
bool OnUse(Player *player, Item *item, const SpellCastTargets &) OVERRIDE
@ NPC_VANIRAS_SENTRY_TOTEM
@ QUEST_THE_PERFECT_SPIES
void AddSC_item_scripts()
@ AREA_ID_SHATTERED_STRAITS
const uint32 CaribouTraps[CaribouTrapsNum]
@ QUEST_CANNOT_HELP_THEMSELVES
@ NPC_TRAPPED_MAMMOTH_CALF
const uint32 MammothTraps[MammothTrapsNum]
float GetPositionZ() const
float GetOrientation() const
float GetPositionX() const
float GetPositionY() const
const uint32 CaribouTraps[CaribouTrapsNum]
@ QUEST_CANNOT_HELP_THEMSELVES
const uint32 MammothTraps[MammothTrapsNum]