• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Hana(H)-amoria teleporter

Status
Not open for further replies.
Experienced Elementalist
Joined
Apr 5, 2008
Messages
236
Reaction score
1
Create a new file-Nana(H).cpp
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;
before
Code:
            default: npc->end(); break;
        }
    }
and add
Code:
static void npc_9201001(NPC* npc);
before
Code:
};

#endif

Help me fix....
 
Status
Not open for further replies.
Back
Top