📄 actioncontractgnomeshorn.cpp
字号:
////////////////////////////////////////////////////////////////////////////////// Filename : ActionContractGnomesHorn.cpp// Written By : // Description : // NPC啊 酒捞袍阑 敲饭捞绢俊霸 颇绰 咀记捞促. 角力肺绰 芭贰甫 // 矫累窍霸 父靛绰 咀记捞哥, 窍绰 老篮 敲饭捞绢俊霸 泅犁 NPC狼// 惑痢 滚傈阑 菩哦栏肺 焊郴林绰 老 挥捞促.////////////////////////////////////////////////////////////////////////////////#include "ActionContractGnomesHorn.h"#include "Creature.h"#include "NPC.h"#include "Script.h"#include "Trigger.h"#include "GamePlayer.h"#include "PlayerCreature.h"#include "FlagSet.h"#include "Gpackets/GCNPCResponse.h"////////////////////////////////////////////////////////////////////////////////// ActionContractGnomesHorn 咀记篮 弊成 努扼捞攫飘俊霸 ShopVersion阑 焊郴林绰 巴捞骨肺,// 漂喊洒 佬绢甸咯具 且 颇扼固磐啊 绝促.////////////////////////////////////////////////////////////////////////////////void ActionContractGnomesHorn::read (PropertyBuffer & propertyBuffer) throw (Error){ __BEGIN_TRY __END_CATCH}////////////////////////////////////////////////////////////////////////////////// 咀记阑 角青茄促.////////////////////////////////////////////////////////////////////////////////void ActionContractGnomesHorn::execute (Creature * pCreature1 , Creature * pCreature2) throw (Error){ __BEGIN_TRY Assert(pCreature1 != NULL); Assert(pCreature2 != NULL); Assert(pCreature1->isNPC()); Assert(pCreature2->isPC()); NPC* pNPC = dynamic_cast<NPC*>(pCreature1); Player* pPlayer = pCreature2->getPlayer(); Assert(pPlayer != NULL); PlayerCreature* pPC = dynamic_cast<PlayerCreature*>(pCreature2); Assert(pPC != NULL); FlagSet* pFlagSet = pPC->getFlagSet(); Assert(pFlagSet != NULL); pFlagSet->turnOn( FLAGSET_GNOMES_HORN ); pFlagSet->save( pPC->getName() ); GCNPCResponse gcNPCResponse; gcNPCResponse.setCode( NPC_RESPONSE_GNOME_CONTRACT_OK ); pPC->getPlayer()->sendPacket(&gcNPCResponse); __END_CATCH}////////////////////////////////////////////////////////////////////////////////// get debug string////////////////////////////////////////////////////////////////////////////////string ActionContractGnomesHorn::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "ActionContractGnomesHorn(" << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -