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)
and the following to whatever .cpp file u want..im assuming u will know where :
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
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();
}
}