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!

Mr. Goldstein takes you to 1st Job Places

Status
Not open for further replies.
Newbie Spellweaver
Joined
Apr 13, 2008
Messages
48
Reaction score
0
It's kinda useless, but it's still kinda useful.

Make a new CPP and put in this code.
Code:
#include "NPCs.h"
#include "NPCsScripts.h"

void NPCsScripts::npc_1002003(NPC* npc){
int state = npc->getState();
int type = npc->getSelected();
if(state == 0){
npc->addText("Hello, I can teleport you to a job advancement area.");
npc->sendYesNo();
}
else if(state == 1){
if(npc->getSelected() == YES){
npc->addText("Okay.");
npc->sendNext();
}
else{
npc->addText("Where would you like to go?");
npc->sendOK();
}
}
else if(state == 2){
if(npc->getSelected() == YES){
npc->addText("#L0##bAthena Pierce's Office#k 1,000 Mesos#l\r\n#L1##bDances With Balrog's Chamber#k 1,000 Mesos#l\r\n#L2##bDark Lord's Lair#k 1,000 Mesos#l\r\n#L4##bGrendel the Really Old's Library#k 1,000 Mesos");
npc->sendSimple();
}
}
else if(state == 3){
npc->setVariable("type", type);
if(type == 0)
{
if(npc->getMesos() >= 1000)
{
npc->addText("Alright, I'll take you there.");
npc->teleport(100000201);
npc->giveMesos(-1000);
npc->sendNext();
npc->end();
}
else
{
npc->addText("You don't have enough mesos.");
npc->sendNext();
npc->end();
}
}
if(type == 1)
{
if(npc->getMesos() >= 1000)
{
npc->addText("Alright, I'll take you there.");
npc->teleport(102000003);
npc->giveMesos(-1000);
npc->sendNext();
npc->end();
}
else
{
npc->addText("You don't have enough mesos.");
npc->sendNext();
npc->end();
}
}
if(type == 2)
{
if(npc->getMesos() >= 1000)
{
npc->addText("Alright, I'll take you there.");
npc->teleport(103000003);
npc->giveMesos(-1000);
npc->sendNext();
npc->end();
}
else
{
npc->addText("You don't have enough mesos.");
npc->sendNext();
npc->end();
}
}
if(type == 3)
{
if(npc->getMesos() >= 1000)
{
npc->addText("Okay, I'll take you there.");
npc->teleport(101000003);
npc->giveMesos(-1000);
npc->sendNext();
npc->end();
}
else
{
npc->addText("You don't have enough mesos.");
npc->sendNext();
npc->end();
}
}
else if(type == 4){
npc->addText("Good Luck!");
npc->sendNext();
}
}
else if(state == 4){
npc->addText("Come back later!");
npc->sendOK();
} 
else
{
npc->end();
}
}

And don't forget to add the cases and static void thingies to NPCScripts.h~

Have fun.
 
Last edited:
Mother effin' clouds
Loyal Member
Joined
Apr 13, 2008
Messages
1,534
Reaction score
448
Re: [Release]Mr. Goldstein takes you to 1st Job Places

Thanks loads, i think i can try putting it on Mr Viking dude in LIth Harbour even though he has a minor quest. shouldn't matter really. Nice one though
 
Junior Spellweaver
Joined
Jul 22, 2005
Messages
100
Reaction score
0
Re: [Release]Mr. Goldstein takes you to 1st Job Places

Not bad not bad, thanks you. ;)
 
Newbie Spellweaver
Joined
Apr 13, 2008
Messages
48
Reaction score
0
Re: [Release]Mr. Goldstein takes you to 1st Job Places

I need suggestions for what to make an NPC do, anyone?
 
Elite Diviner
Joined
Jan 15, 2008
Messages
417
Reaction score
7
Re: [Release]Mr. Goldstein takes you to 1st Job Places

I don't have any suggestions. I know we are adding into our repack a bunch of npcs and stuff. You could always try to make one that files a ticket with support or a support npc for whenever a gm isn't there. ;)
 
Junior Spellweaver
Joined
Apr 20, 2008
Messages
139
Reaction score
0
Re: [Release]Mr. Goldstein takes you to 1st Job Places

Do i have to make an NPC or what? do i just add the script to a new .cpp and it automaticly knows to go onto Mr Goldstein or what? How do i make it go onto him...
Please help.

EDIT: Where is the static void and case? Someone please post the codes? I know where to put it. Thanks in advance~
JacobMarley
 
Status
Not open for further replies.
Back
Top