📄 actionsimplequestcomplete.cpp
字号:
////////////////////////////////////////////////////////////////////////////////// Filename : ActionSimpleQuestComplete.cpp// Written By : excel96// Description :////////////////////////////////////////////////////////////////////////////////#include "ActionSimpleQuestComplete.h"#include "Creature.h"#include "GamePlayer.h"#include "Script.h"#include "ScriptManager.h"#include "Gpackets/GCNPCAskDynamic.h"////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////void ActionSimpleQuestComplete::read (PropertyBuffer & propertyBuffer) throw (Error){ __BEGIN_TRY try { // read script id //m_ScriptID = propertyBuffer.getPropertyInt("ScriptID"); } catch (NoSuchElementException & nsee) { throw Error(nsee.toString()); } __END_CATCH}////////////////////////////////////////////////////////////////////////////////// 咀记阑 角青茄促.////////////////////////////////////////////////////////////////////////////////void ActionSimpleQuestComplete::execute (Creature * pCreature1 , Creature * pCreature2) throw (Error){ __BEGIN_TRY/* Assert(pCreature1 != NULL); Assert(pCreature2 != NULL); Assert(pCreature1->isNPC()); Assert(pCreature2->isPC()); const Script* pScript = g_pPublicScriptManager->getScript(m_ScriptID); GCNPCAskDynamic gcNPCAskDynamic; gcNPCAskDynamic.setObjectID(pCreature1->getObjectID()); gcNPCAskDynamic.setScriptID(m_ScriptID); gcNPCAskDynamic.setSubject(pScript->getSubject(0)); for (uint c=0; c<pScript->getContentCount(); c++) { gcNPCAskDynamic.addContent(pScript->getContent(c)); } Player* pPlayer = pCreature2->getPlayer(); pPlayer->sendPacket(&gcNPCAskDynamic);*/ __END_CATCH}////////////////////////////////////////////////////////////////////////////////// get debug string////////////////////////////////////////////////////////////////////////////////string ActionSimpleQuestComplete::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "ActionSimpleQuestComplete(" << ",ScriptID:" << (int)m_ScriptID << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -