|
| item_only_for_flight () |
|
bool | OnUse (Player *player, Item *item, SpellCastTargets const &) override |
|
bool | IsDatabaseBound () const override |
|
virtual bool | OnQuestAccept (Player *, Item *, Quest const *) |
|
virtual bool | OnRemove (Player *, Item *) |
|
virtual bool | OnCastItemCombatSpell (Player *, Unit *, SpellInfo const *, Item *) |
|
virtual bool | OnExpire (Player *, ItemTemplate const *) |
|
virtual void | OnGossipSelect (Player *, Item *, uint32, uint32) |
|
virtual void | OnGossipSelectCode (Player *, Item *, uint32, uint32, const char *) |
|
virtual bool | isAfterLoadScript () const |
|
virtual void | checkValidity () |
|
const std::string & | GetName () const |
|
uint16 | GetTotalAvailableHooks () |
|
◆ item_only_for_flight()
item_only_for_flight::item_only_for_flight |
( |
| ) |
|
|
inline |
Definition ItemScript.h:24
◆ OnUse()
Reimplemented from ItemScript.
40 {
42 bool disabled = false;
43
44
45 switch (itemId)
46 {
47 case 24538:
49 disabled = true;
50 break;
51 case 34489:
53 disabled = true;
54 break;
55 case 34475:
58 break;
59 }
60
61
63 return false;
64
65
67 return true;
68 }
std::uint32_t uint32
Definition Define.h:107
@ EQUIP_ERR_CANT_DO_RIGHT_NOW
Definition Item.h:86
@ SPELL_FAILED_NOT_ON_GROUND
Definition SharedDefines.h:1120
#define sSpellMgr
Definition SpellMgr.h:825
uint32 GetEntry() const
Definition Object.h:115
void SendEquipError(InventoryResult msg, Item *pItem, Item *pItem2=nullptr, uint32 itemid=0)
Definition PlayerStorage.cpp:4021
Definition SpellInfo.h:316
static void SendCastResult(Player *caster, SpellInfo const *spellInfo, uint8 castCount, SpellCastResult result, SpellCustomErrors customError=SPELL_CUSTOM_ERROR_NONE)
Definition Spell.cpp:4685
bool IsInFlight() const
Definition Unit.h:1625
uint32 GetAreaId() const
Definition Object.cpp:3156
uint32 GetZoneId() const
Definition Object.cpp:3148
@ SPELL_ARCANE_CHARGES
Definition item_scripts.cpp:31
References EQUIP_ERR_CANT_DO_RIGHT_NOW, WorldObject::GetAreaId(), Object::GetEntry(), WorldObject::GetZoneId(), Unit::IsInFlight(), Spell::SendCastResult(), Player::SendEquipError(), SPELL_ARCANE_CHARGES, SPELL_FAILED_NOT_ON_GROUND, and sSpellMgr.
The documentation for this class was generated from the following file: