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!

Eos Teleport Rocks

Newbie Spellweaver
Joined
Jul 9, 2007
Messages
47
Reaction score
0
im assuming you all know where to add this ..

Add the following into NPCsScripts.h (im hoping u know where)

Code:
	static void npc_2040024(NPC* npc); // Eos Teleport Rocks 
	static void npc_2040025(NPC* npc);
	static void npc_2040026(NPC* npc);
	static void npc_2040027(NPC* npc);


Code:
case 2040024: npc_2040024(npc); break; // Eos 1st rock
case 2040025: npc_2040025(npc); break; // Eos 2nd rock
case 2040026: npc_2040026(npc); break; // Eos 3rd rock
case 2040027: npc_2040027(npc); break; // Eos 4th rock
and the following to whatever .cpp file u want..im assuming u will know where :

Code:
// Eos Tower First Rock
void NPCsScripts::npc_2040024(NPC* npc){
	int state = npc->getState();
	if(state == 0){
		npc->addText("Hi there! I am the first Eos Rock , I Can take you Down to #bEos Tower 71st Floor#k.");
		npc->sendNext();
	}
	else if(state == 1){
		npc->addText("Ok. I am sending you up to the #b71st Floor of the Eos Tower#k. Have fun!");
		npc->sendYesNo();
	}
	else if(state == 2){
		if(npc->getSelected() == YES){
			npc->end();
			npc->teleport(221022900);
		}
		else {
			npc->addText("Talk to me if you want to go to the #b71st Floor of the Eos Tower#k!");
			npc->sendOK();
		}
	}
	else if(state == 3){
		npc->end();
	}
}
//Eos Tower Second Rock
void NPCsScripts::npc_2040025(NPC* npc){
int state = npc->getState();
	if(state == 0){
		npc->addText("I am the Second Eos Rock. I can take you to the following places!");
		npc->sendNext();
	}
	if(state == 1){
		npc->addText("Please choose where you would like to go:\r\n#L0#Eos 100th Floor#k.l\r\n#L1#Eos 41st Floor#l");
		npc->sendSimple();
	}
	if(state == 2){
		type = npc->getSelected();
		npc->setVariable("type", type);
		if(type == 0){ // 71st
			npc->addText("Ok. I am sending you up to the #b100th Floor of the Eos Tower#k. Have fun!?");
			npc->sendYesNo();
		}
		else if(type == 1){ // 41st
			npc->addText("Ok. I am sending you up to the #b41st Floor of the Eos Tower#k. Have fun!?");
			npc->sendYesNo();			
		}
	}
	if(state == 3 && type == 0){
		if(npc->getSelected() == YES){
			npc->end();
			npc->teleport(221024400);
		}
		else{
			npc->addText("Talk to me if you want to go to the #b100th Floor of the Eos Tower#k.");
			npc->sendOK();
		}
		npc->end();
	}
	if(state == 3 && type == 1){
		if(npc->getSelected() == YES){
			npc->teleport(221021700);
		}
		else{
			npc->addText("Talk to me if you want to go to the #b71st Floor of the Eos Tower#k.");
			npc->sendOK();
		}
		npc->end();

	}
}
//Eos Tower Third Rock
void NPCsScripts::npc_2040026(NPC* npc){
int state = npc->getState();
	if(state == 0){
		npc->addText("I am the Third Eos Rock. I can take you to the following places!");
		npc->sendNext();
	}
	if(state == 1){
		npc->addText("Please choose where you would like to go:\r\n#L0#Eos 71st Floor#l\r\n#L1#Eos 1st Floor#l");
		npc->sendSimple();
	}
	if(state == 2){
		type = npc->getSelected();
		npc->setVariable("type", type);
		if(type == 0){ // 71st
			npc->addText("Ok. I am sending you up to the #b71st Floor of the Eos Tower#k. Have fun!?");
			npc->sendYesNo();
		}
		else if(type == 1){ // 41st
			npc->addText("Ok. I am sending you down to the #b1st Floor of the Eos Tower#k. Have fun!?");
			npc->sendYesNo();			
		}
	}
	if(state == 3 && type == 0){
		if(npc->getSelected() == YES){
			npc->end();
			npc->teleport(221022900);
		}
		else{
			npc->addText("Talk to me if you want to go to the #b71st Floor of the Eos Tower#k.");
			npc->sendOK();
		}
		npc->end();
	}
	if(state == 3 && type == 1){
		if(npc->getSelected() == YES){
			npc->teleport(221020000);
		}
		else{
			npc->addText("Talk to me if you want to go to the #b1st Floor of the Eos Tower#k.");
			npc->sendOK();
		}
		npc->end();

	}
}

//Eos Tower Fourth Rock
void NPCsScripts::npc_2040027(NPC* npc){
	int state = npc->getState();
	if(state == 0){
		npc->addText("Hi there! I am the Fourth Eos Rock , I Can take you up to #bEos Tower 41st Floor#k.");
		npc->sendNext();
	}
	else if(state == 1){
		npc->addText("Ok. I am sending you up to the #b41st Floor of the Eos Tower#k. Have fun!");
		npc->sendYesNo();
	}
	else if(state == 2){
		if(npc->getSelected() == YES){
			npc->end();
			npc->teleport(221021700);
		}
		else {
			npc->addText("Talk to me if you want to go to the #b41st Floor of the Eos Tower#k!");
			npc->sendOK();
		}
	}
	else if(state == 3){
		npc->end();
	}
}
 
Newbie Spellweaver
Joined
Feb 17, 2008
Messages
28
Reaction score
0
Before i start to implement this into my server shouldnt there be

case 2040025 blah?'s for them to? lol


edit: i added them anyways and this works

case 2040024: npc_2040024(npc); break;// Eos Rocks
case 2040025: npc_2040025(npc); break;
case 2040026: npc_2040026(npc); break;
case 2040027: npc_2040027(npc); break;
 
Last edited:
Newbie Spellweaver
Joined
Jul 9, 2007
Messages
47
Reaction score
0
Before i start to implement this into my server shouldnt there be

case 2040025 blah?'s for them to? lol


edit: i added them anyways and this works

case 2040024: npc_2040024(npc); break;// Eos Rocks
case 2040025: npc_2040025(npc); break;
case 2040026: npc_2040026(npc); break;
case 2040027: npc_2040027(npc); break;


oh yeah i 4got to post them :)

post is edited now
 
Newbie Spellweaver
Joined
Apr 2, 2008
Messages
83
Reaction score
0
Another awesome release bro, thanks.
 
Newbie Spellweaver
Joined
Jul 9, 2007
Messages
47
Reaction score
0
just add :

Code:
int type;

after this , in whatever .cpp file u added the eos rock scripts :

Code:
#include "NPCs.h"
#include "Player.h"
#include "NPCsScripts.h"
#include "Inventory.h"

in whatever .cpp file u added the eos rock scripts :

so it should be something like this :

Code:
#include "NPCs.h"
#include "Player.h"
#include "NPCsScripts.h"
#include "Inventory.h"


int type;
int ticket;
 
Newbie Spellweaver
Joined
Feb 1, 2007
Messages
32
Reaction score
0
Some of us dont know where so tell us where to put each and every codE!
 
Newbie Spellweaver
Joined
Apr 6, 2008
Messages
55
Reaction score
0
Some of us dont know where so tell us where to put each and every codE!


1)Don't demand it, he doesn't have to do it.
2)Pretty sure he said that to keep noobs out.
 
Junior Spellweaver
Joined
Dec 3, 2006
Messages
114
Reaction score
0
just add :

Code:
int type;
after this , in whatever .cpp file u added the eos rock scripts :

Code:
#include "NPCs.h"
#include "Player.h"
#include "NPCsScripts.h"
#include "Inventory.h"
in whatever .cpp file u added the eos rock scripts :

so it should be something like this :

Code:
#include "NPCs.h"
#include "Player.h"
#include "NPCsScripts.h"
#include "Inventory.h"


int type;
int ticket;

When I add the type identifier, it comes in conflict with my other file [TeleportNPCs] which also has a type identifier.
Oh course, I need them both to work but it seems either won't function fully without it.
Any solutions?
 
Newbie Spellweaver
Joined
Jul 9, 2007
Messages
47
Reaction score
0
When I add the type identifier, it comes in conflict with my other file [TeleportNPCs] which also has a type identifier.
Oh course, I need them both to work but it seems either won't function fully without it.
Any solutions?


add this script into ure TeleportNPCs ?
 
Junior Spellweaver
Joined
Dec 3, 2006
Messages
114
Reaction score
0
add this script into ure TeleportNPCs ?

Yeah, thanks, that should have been a mindless fix.
I dunno why, I'm kinda curious.
I use type functions in my 2nd job scripts because you know you have to choose the job, and they didn't conflict there.
o_O
 
Newbie Spellweaver
Joined
Apr 6, 2008
Messages
6
Reaction score
0
Don't change the text from other people's codes. This was released on OdinMS forums, same exact code with just different text, and was released before you released yours. Same with your Orbis rocks. If you are going to steal, at least give credit.
 
Newbie Spellweaver
Joined
Jul 9, 2007
Messages
47
Reaction score
0
Don't change the text from other people's codes. This was released on OdinMS forums, same exact code with just different text, and was released before you released yours. Same with your Orbis rocks. If you are going to steal, at least give credit.


... i didnt steal anything , i dont go to odin forum so please gtfo and next time u accuse some1 of poop like this post some proof ?
 
Last edited:
Back
Top