Experienced Elementalist
- Joined
- Apr 5, 2008
- Messages
- 236
- Reaction score
- 1
Create a new file-Nana(H).cpp
and put it in NPC folder
In NPCsScripts.h
add
before
and add
before
Help me fix....
and put it in NPC folder
Code:
#include "NPCs.h"
#include "NPCsScripts.h"
void NPCsScripts::npc_9201001(NPC* npc){
int state = npc->getState();
if(state == 0){
npc->addText("Well,you make the right decision!");
npc->sendNext();
}
else if(state == 1){
npc->addText("Good luck and have fun!");
npc->sendBackNext();
}
else if(state == 2){
npc->teleport(680000000);
npc->end();
}
}
In NPCsScripts.h
add
Code:
case 9201001: npc_9201001(npc); break;
Code:
default: npc->end(); break;
}
}
Code:
static void npc_9201001(NPC* npc);
Code:
};
#endif
Help me fix....