Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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