2010 {
2013 bool doSwitch = false;
2015
2016 switch (action)
2017 {
2019 {
2020 if (!noXPGain)
2021 doSwitch = true;
2022 }
2023 break;
2025 {
2026 if (noXPGain)
2027 doSwitch = true;
2028 }
2029 break;
2030 }
2031 if (doSwitch)
2032 {
2034 {
2036 }
2037 else if (noXPGain)
2038 {
2041 }
2042 else if (!noXPGain)
2043 {
2046 }
2047 }
2049 return true;
2050 }
void ClearGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:22
@ BUY_ERR_NOT_ENOUGHT_MONEY
Definition: Item.h:137
@ PLAYER_FLAGS_NO_XP_GAIN
Definition: Player.h:500
@ CONFIG_TOGGLE_XP_COST
Definition: IWorld.h:406
#define sWorld
Definition: World.h:451
void SendCloseGossip()
Definition: GossipDef.cpp:240
void SetPlayerFlag(PlayerFlags flags)
Definition: Player.h:1091
void RemovePlayerFlag(PlayerFlags flags)
Definition: Player.h:1092
bool ModifyMoney(int32 amount, bool sendError=true)
Definition: Player.cpp:11409
bool HasEnoughMoney(uint32 amount) const
Definition: Player.h:1569
void SendBuyError(BuyResult msg, Creature *creature, uint32 item, uint32 param)
Definition: PlayerStorage.cpp:4092
bool HasPlayerFlag(PlayerFlags flags) const
Definition: Player.h:1090
PlayerMenu * PlayerTalkClass
Definition: Player.h:2188