|
| | npc_experience () |
| |
| bool | OnGossipHello (Player *player, Creature *creature) override |
| |
| bool | OnGossipSelect (Player *player, Creature *, uint32, uint32 action) override |
| |
| bool | IsDatabaseBound () const override |
| |
| virtual bool | OnGossipSelectCode (Player *, Creature *, uint32, uint32, const char *) |
| |
| virtual bool | OnQuestAccept (Player *, Creature *, Quest const *) |
| |
| virtual bool | OnQuestSelect (Player *, Creature *, Quest const *) |
| |
| virtual bool | OnQuestComplete (Player *, Creature *, Quest const *) |
| |
| virtual bool | OnQuestReward (Player *, Creature *, Quest const *, uint32) |
| |
| virtual uint32 | GetDialogStatus (Player *, Creature *) |
| |
| virtual CreatureAI * | GetAI (Creature *) const |
| |
| virtual void | OnFfaPvpStateUpdate (Creature *, bool) |
| |
| virtual bool | isAfterLoadScript () const |
| |
| virtual void | checkValidity () |
| |
| const std::string & | GetName () const |
| |
| uint16 | GetTotalAvailableHooks () |
| |
| virtual void | OnUpdate (Creature *, uint32) |
| |
◆ npc_experience()
| npc_experience::npc_experience |
( |
| ) |
|
|
inline |
Definition CreatureScript.h:25
◆ OnGossipHello()
| bool npc_experience::OnGossipHello |
( |
Player * |
player, |
|
|
Creature * |
creature |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from CreatureScript.
2013 {
2015
2017 {
2019 }
2020 else
2021 {
2023 }
2024
2026 return true;
2027 }
@ PLAYER_FLAGS_NO_XP_GAIN
Definition Player.h:493
void AddGossipItemFor(Player *player, uint32 icon, std::string const &text, uint32 sender, uint32 action)
Definition ScriptedGossip.cpp:28
void SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const &guid)
Definition ScriptedGossip.cpp:45
@ GOSSIP_SENDER_MAIN
Definition ScriptedGossip.h:70
@ GOSSIP_ACTION_INFO_DEF
Definition ScriptedGossip.h:68
@ CONFIG_TOGGLE_XP_COST
Definition WorldConfig.h:370
bool HasPlayerFlag(PlayerFlags flags) const
Definition Player.h:1110
uint32 GetGossipTextId(uint32 menuId, WorldObject *source)
Definition PlayerGossip.cpp:404
#define sWorld
Definition World.h:316
@ GOSSIP_MENU_EXP_NPC
Definition npcs_special.cpp:2004
References AddGossipItemFor(), CONFIG_TOGGLE_XP_COST, Player::GetGossipTextId(), GOSSIP_ACTION_INFO_DEF, GOSSIP_MENU_EXP_NPC, GOSSIP_SENDER_MAIN, Player::HasPlayerFlag(), PLAYER_FLAGS_NO_XP_GAIN, SendGossipMenuFor(), and sWorld.
◆ OnGossipSelect()
Reimplemented from CreatureScript.
2030 {
2032
2034
2036 {
2039 return true;
2040 }
2041
2043
2044 switch (action)
2045 {
2048 break;
2051 break;
2052 }
2053
2055 return true;
2056 }
@ BUY_ERR_NOT_ENOUGHT_MONEY
Definition Item.h:143
void ClearGossipMenuFor(Player *player)
Definition ScriptedGossip.cpp:22
void SetPlayerFlag(PlayerFlags flags)
Definition Player.h:1111
void RemovePlayerFlag(PlayerFlags flags)
Definition Player.h:1112
bool ModifyMoney(int32 amount, bool sendError=true)
Definition Player.cpp:11522
bool HasEnoughMoney(uint32 amount) const
Definition Player.h:1605
void SendBuyError(BuyResult msg, Creature *creature, uint32 item, uint32 param)
Definition PlayerStorage.cpp:4057
PlayerMenu * PlayerTalkClass
Definition Player.h:2243
References BUY_ERR_NOT_ENOUGHT_MONEY, ClearGossipMenuFor(), CONFIG_TOGGLE_XP_COST, GOSSIP_ACTION_INFO_DEF, Player::HasEnoughMoney(), Player::ModifyMoney(), PLAYER_FLAGS_NO_XP_GAIN, Player::PlayerTalkClass, Player::RemovePlayerFlag(), Player::SendBuyError(), PlayerMenu::SendCloseGossip(), Player::SetPlayerFlag(), and sWorld.
The documentation for this class was generated from the following file: