• 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.

Cola Suprise KurtQuest!

Status
Not open for further replies.
Newbie Spellweaver
Joined
Aug 31, 2007
Messages
22
Reaction score
0
What is a KurtQuest?
KurtQuests are Party Quests on KurtStory, exept you don't need a party.
This KQ is the smallest one, I'm planning on releasing more. Finished Kerning KurtQuest and currently developing Orbis KQ, already has more then 8 stages.

-- Fixed a small error

Anyway enough of that, feel free to modify however you want!

** Please make sure you have summoning bags working. If you don't please change the reward you recieve. Simply change the following:

npc->giveItem(2101004, 50);
The bold text is what you will change, where you put the ID.

Make a new CPP called ColaSupriseKurtQuest.cpp

PHP:
#include "Skills.h" 
#include "SkillsPacket.h" 
#include "Player.h" 
#include "NPCs.h" 
#include "NPCsScripts.h" 
#include "Mobs.h" 
#include "Players.h" 
#include "PlayersPacket.h" 
#include "Drops.h" 
#include "Inventory.h" 
//Henesys (Cola Suprise) KurtQuest from KurtStory. Modify however you would like!
 
void NPCsScripts::npc_1012112(NPC* npc){//Tory KurtQuest 
Player* player = npc->getPlayer(); 
int state = npc->getState(); 
int type = npc->getSelected(); 
if(state == 0){ 
if(player->getLevel() <= 255 && player->getLevel() >= 15 ) 
{ 
npc->addText("Hi, we've got some trouble. Some strange man has created Cola and something has terribly gone wrong! Looks like we're in need of a #bKurtQuest#k. Well, #bWelcome to Cola Suprise KurtQuest!#k"); 
npc->sendNext(); 
} 
else 
{ 
npc->addText("Oh hello. I'm sorry, but this is only for level 15 and up. Perhaps you should level up some more."); 
npc->sendOK(); 
npc->end(); 
} 
} 

if(state == 1){ 
npc->addText("Perhaps you should help him. Are you ready for the #bCola Suprise KurtQuest#k?"); 
npc->sendYesNo(); 
} 
if(state == 2){ 
if(npc->getSelected() == YES){ 
npc->addText("Great! He will be so pleased! I heard he has a great prize too! So, ready to head over to him?"); 
npc->sendYesNo(); 
} 
}
if(state == 3 ){ 
if(npc->getSelected() == YES){ 
npc->end(); 
npc->teleport(910010000); 
} 
else{ 
npc->addText("Well.. okay. See ya."); 
npc->sendOK(); 
} 
npc->end(); 
} 
}
void NPCsScripts::npc_1012114(NPC* npc){ //Growlie! :o OOOOh, SCARRYY!! 
int type = npc->getSelected(); 
npc->setVariable("type", type); 
Player* player = npc->getPlayer(); 
int state = npc->getState(); 
if(state == 0){ 
npc->addText("Oh hi! I was making some Cola until these strange monsters appeared you're here to help right? I promise to give you a reward!"); 
npc->sendNext(); 
} 
else if(state == 1){ 
npc->addText("Will you help me? Please!\r\n"); 
npc->addText("#L0##bWhat? Monsters? Where!?k#l\r\n"); 
npc->addText("#L1##bHey, don't I get a reward or something?#k#l\r\n"); 
npc->addText("#L2##bI would like to leave now.#k#l"); 
npc->sendSimple(); 
} 
else if(state == 2){ 
if(type == 0){ 
npc->addText("Ah! Here they come!"); 
npc->sendOK(); 
npc->end(); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500143); 
Mobs::spawnMob(player, 9500154); 
Mobs::spawnMob(player, 9500154); 
Mobs::spawnMob(player, 9500154); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500143); 
Mobs::spawnMob(player, 9500143); 
Mobs::spawnMob(player, 9500154); 
Mobs::spawnMob(player, 9500154); 
Mobs::spawnMob(player, 9500154); 
Mobs::spawnMob(player, 9500154); 
Mobs::spawnMob(player, 9500154); 
Mobs::spawnMob(player, 9500154); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500144); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500151); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500152); 
Mobs::spawnMob(player, 9500153); 
Mobs::spawnMob(player, 9500153); 
 
} 
else if(type == 1){ 
npc->addText("Reward... uhm.. oh! I know! I noticed the monsters dropped Mini Cola. Well.. I was trying to make some for my daughter. So think we could trade? Ill give you 10 SuperSlime Sacks for 12 Mini Cokes!"); 
npc->addText("Really?");
npc->sendYesNo(); 
} 
else if(type == 2){ 
npc->addText("Alright then, good bye!"); 
npc->sendNext(); 
} 
} 
if(state == 3){ 
if(type == 1){ 
if(npc->getSelected() == YES){ 
if(player->inv->getItemAmount(2022075) == 12)
{ 
npc->giveItem(2022075, -12); 
npc->giveItem(2101004, 10);
npc->giveMesos(80000);
npc->giveEXP(8000);
npc->addText("Thank you, come back if you need more bags!"); 
npc->sendOK(); 
npc->end(); 
}
else { 
npc->addText("Sorry but you don't have #b12#k mini coke."); 
npc->sendOK(); 
npc->end(); 
} 
} 
else { 
npc->addText("Okay.. you can always come back and help me.");
npc->sendOK(); 
npc->end(); 
} 
} 
else if(type == 2){ 
npc->teleport(100000200); 
npc->end(); 
} 
}
}

This is only one stage by the way.
The item Growlie gives is 20 Super Slime summoning bags.
He will collect 12 Mini colas.

I've never actually released on this forum... so I guess I could say first release? o.o



Whoops! My bad, haha, I forgot to add the NPCScripts.h information.

Forgot to add, Tory the original Henesys Party Quest NPC on Global is the person to talk to to get into the KQ.


NPCScripts.h

Add this to the rest of the cases...
PHP:
		case 1012112: npc_1012112(npc); break; //Tory Cola Suprise KurtQuest
			case 1012114: npc_1012114(npc); break; //Growlie Cola Suprise KurtQuest

Add this to the static voids.
PHP:
static void npc_1012112(NPC* npc); //Tory Cola Suprise KurtQuest
	static void npc_1012114(NPC* npc); //Growlie Cola Suprise KurtQuest


Thank you, and enjoy.

If you don't have the NPC Growlie in the KQ then please put this in your xml:
(In the Maps folder: 910010000.xml)

PHP:
<NPC> 
<id>1012114</id> 
<x>429</x> 
<cy>93</cy> 
<fh>1</fh> 
<rx0>379</rx0> 
<rx1>479</rx1> 
</NPC>
 
Last edited:
Newbie Spellweaver
Joined
Apr 13, 2008
Messages
62
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

wow, i like this idea. Keep up the work! =D

Can't wait to see the OKQ with different stages!

Hey maybe you could create a SQL thing where it detects if anyone is in there. So like only 1 person could do it at a time, Maybe even make it so you can only do it once an hour?


----- Here are some things to check if you are getting errors -----
- Make sure its in the "MapleStoryServer" folder.
- Make sure you added the case/static void codes correctly.
- Make sure its Added into the server ( in Visual C++, you should see it listed on the left at the bottom )
Find
else {
npc->addText("Okay.. you can always come back and help me.);
npc->sendOK();
npc->end();
}
}
else if(type == 2){
npc->teleport(100000200);
npc->end();
}
}
}

and change it to
else {
npc->addText("Okay.. you can always come back and help me.");
npc->sendOK();
npc->end();
}
}
else if(type == 2){
npc->teleport(100000200);
npc->end();
}
}
}
 
Last edited:
Newbie Spellweaver
Joined
May 16, 2008
Messages
18
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

those this work on krytical? i tried and when i press on the bunny nothing happend T_T
 
Newbie Spellweaver
Joined
Apr 13, 2008
Messages
62
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

those this work on krytical? i tried and when i press on the bunny nothing happend T_T

i havent tested yet, but did you add the staticvoid codes?
Did you rebuild the server? O.O
Are you below lvl 255 and above lvl 15?

Did you get any errors? If so, post them.
 
Newbie Spellweaver
Joined
May 16, 2008
Messages
18
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

oh i didnt rebuild idiot me! thx alot! i shall try it now

edit:

I get this error:

3>MapleStoryServer.cpp
3>Linking...
3>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012114(class NPC *)" (?npc_1012114@NPCsScripts@@CAXPAVNPC@@@Z)
3>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012112(class NPC *)" (?npc_1012112@NPCsScripts@@CAXPAVNPC@@@Z)
3>C:\Documents and Settings\******\Krytical's RePack v11.4\Release\MapleStoryServer.exe : fatal error LNK1120: 2 unresolved externals
 
Newbie Spellweaver
Joined
Aug 31, 2007
Messages
22
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

oh i didnt rebuild idiot me! thx alot! i shall try it now

edit:

I get this error:

3>MapleStoryServer.cpp
3>Linking...
3>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012114(class NPC *)" (?npc_1012114@NPCsScripts@@CAXPAVNPC@@@Z)
3>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012112(class NPC *)" (?npc_1012112@NPCsScripts@@CAXPAVNPC@@@Z)
3>C:\Documents and Settings\******\Krytical's RePack v11.4\Release\MapleStoryServer.exe : fatal error LNK1120: 2 unresolved externals

Did you put the cases too?
 
Initiate Mage
Joined
May 17, 2008
Messages
4
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

Wow!
Mazey Idea.
you can do CokePq.
Ty.
 
Newbie Spellweaver
Joined
May 16, 2008
Messages
18
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

yes i did!


edit:
oh great! now i cant even start the server!
pls help/fix! ur pq idea is really good and original!
 
Newbie Spellweaver
Joined
Aug 31, 2007
Messages
22
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

yes i did!


edit:
oh great! now i cant even start the server!
pls help/fix! ur pq idea is really good and original!

What do you mean you can't start the server? What happens when you run it?
 
Newbie Spellweaver
Joined
May 16, 2008
Messages
18
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

Build Error:

1>Linking...
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012114(class NPC *)" (?npc_1012114@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012112(class NPC *)" (?npc_1012112@NPCsScripts@@CAXPAVNPC@@@Z)
1>C:\Documents and Settings\Moti\Desktop\MapleStory Private Server\Krytical's RePack v11.4\Release\MapleStoryServer.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Moti\Desktop\MapleStory Private Server\Krytical's RePack v11.4\MapleStoryServer\Release\BuildLog.htm"
1>MapleStoryServer - 3 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped =========




and then error pops up saying:

"Unable to start program c:\.....MapleStoryServer.exe
the system couldnt find the file sepicfied"

Btw! can u try it urself on Krytical's 11.4?
 
Newbie Spellweaver
Joined
Apr 13, 2008
Messages
62
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

Build Error:

1>Linking...
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012114(class NPC *)" (?npc_1012114@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012112(class NPC *)" (?npc_1012112@NPCsScripts@@CAXPAVNPC@@@Z)
1>C:\Documents and Settings\Moti\Desktop\MapleStory Private Server\Krytical's RePack v11.4\Release\MapleStoryServer.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Moti\Desktop\MapleStory Private Server\Krytical's RePack v11.4\MapleStoryServer\Release\BuildLog.htm"
1>MapleStoryServer - 3 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped =========




and then error pops up saying:

"Unable to start program c:\.....MapleStoryServer.exe
the system couldnt find the file sepicfied"

Btw! can u try it urself on Krytical's 11.4?

I think that last error means that you have the server up and its being used. So shutdown the server and try again...

And the first errors. Did you create a new .cpp file with his code in it? Did you place the codes in the right place? Is the new .cpp file in the same folder as the others?
 
Last edited:
Newbie Spellweaver
Joined
Aug 31, 2007
Messages
22
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

Hmm.. sorry I've never even heard of Krytical.

But I have a really strange urge for gummy bears all of a sudden...
 
Newbie Spellweaver
Joined
May 16, 2008
Messages
18
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

i tried this on empty titan ms rev008 and it does same error!!!
theres a problem witch the npcs is there a specific place in cases and static voids where i shuold put it?
 
Newbie Spellweaver
Joined
Aug 31, 2007
Messages
22
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

i tried this on empty titan ms rev008 and it does same error!!!
theres a problem witch the npcs is there a specific place in cases and static voids where i shuold put it?

Nope. As long as you put it where with the rest of the group. So like you'll see a bunch of cases like..


case <id>: npc_<id>(npc); break;
<

Add it under it

If you wanna see, I'll post my NPCScripts so you can take a look.


[COLOR=#008000
[/COLOR]
case 9201008: npc_9201008(npc); break; // Assistant Bonnie
case 9201010: npc_9201010(npc); break;// Assistant Travis
case 9201021: npc_9201021(npc); break;// Robin The Huntress
case 2030008: npc_2030008(npc); break; // Adobis - The Door To Zakum (801040000)
case 2030010: npc_2030010(npc); break; // Amon - Zakum's Altar (280030000)
case 2083002: npc_2083002(npc); break; //crystal of roots
case 2081005: npc_2081005(npc); break; //keroben
case 9000011: npc_9000011(npc); break;
case 9000000: npc_9000000(npc); break;
case 9000013: npc_9000013(npc); break;
case 9000001: npc_9000001(npc); break;
case 1052002: npc_1052002(npc); break;
case 2080005: npc_2080005(npc); break; //Skills seller
case 1052003: npc_1052003(npc); break;
case 1002003: npc_1002003(npc); break; // Olaf master teleport
case 1012002: npc_1012002(npc); break; //Vicious the item maker of Henesys
case 1061008: npc_1061008(npc); break; //GM's SkillAdder
case 9000019: npc_9000019(npc); break; //Rock PAPER SCISSORS
case 1012112: npc_1012112(npc); break; //Tory Cola Suprise KurtQ
case 1012114: npc_1012114(npc); break; //Growlie Cola Suprise KurtQuest
case 9020000: npc_9020000(npc); break; //KerningQuest
case 9020001: npc_9020001(npc); break;
case 9020002: npc_9020002(npc); break;
case 9310009: npc_9310009(npc); break; //HP and MP increaser
case 2013000: npc_2013000(npc); break; //OKQ
case 2013001: npc_2013001(npc); break; //OKQ
case 2040042: npc_2040042(npc); break; //OKQ
case 2013002: npc_2013002(npc); break; //OKQ
case 9201034: npc_9201034(npc); break; //OKQ
default: npc->end(); break;

I bolded the one you should use, you can either put it in the middle of the entire list or ontop of default: npc->end(); break; (The bottom line)
 
Newbie Spellweaver
Joined
May 16, 2008
Messages
18
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

case 1002000: npc_1002000(npc); break;
case 1012000: npc_1012000(npc); break;
case 1022001: npc_1022001(npc); break;
case 1032000: npc_1032000(npc); break;
case 1052016: npc_1052016(npc); break;
case 1002004: npc_1002004(npc); break;
case 1032005: npc_1032005(npc); break;
case 1081001: npc_1081001(npc); break;
case 1002002: npc_1002002(npc); break;
case 1012112: npc_1012112(npc); break; //Tory Cola Suprise KurtQuest
case 1012114: npc_1012114(npc); break; //Growlie Cola Suprise KurtQuest
case 9201056: npc_9201056(npc); break;
case 9000020: npc_9000020(npc); break;
case 2040019: npc_2040019(npc); break;
case 2093004: npc_2093004(npc); break;
case 2060009: npc_2060009(npc); break;
case 9201057: npc_9201057(npc); break;
case 2012000: npc_2012000(npc); break;
case 2082000: npc_2082000(npc); break;
case 2040000: npc_2040000(npc); break;
case 1032007: npc_1032007(npc); break;
case 2090005: npc_2090005(npc); break;


this where i put it
 
Newbie Spellweaver
Joined
Aug 31, 2007
Messages
22
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

case 1002000: npc_1002000(npc); break;
case 1012000: npc_1012000(npc); break;
case 1022001: npc_1022001(npc); break;
case 1032000: npc_1032000(npc); break;
case 1052016: npc_1052016(npc); break;
case 1002004: npc_1002004(npc); break;
case 1032005: npc_1032005(npc); break;
case 1081001: npc_1081001(npc); break;
case 1002002: npc_1002002(npc); break;
case 1012112: npc_1012112(npc); break; //Tory Cola Suprise KurtQuest
case 1012114: npc_1012114(npc); break; //Growlie Cola Suprise KurtQuest
case 9201056: npc_9201056(npc); break;
case 9000020: npc_9000020(npc); break;
case 2040019: npc_2040019(npc); break;
case 2093004: npc_2093004(npc); break;
case 2060009: npc_2060009(npc); break;
case 9201057: npc_9201057(npc); break;
case 2012000: npc_2012000(npc); break;
case 2082000: npc_2082000(npc); break;
case 2040000: npc_2040000(npc); break;
case 1032007: npc_1032007(npc); break;
case 2090005: npc_2090005(npc); break;


this where i put it


That's good. For static void you can also put it anywhere. See:

static void npc_1012112(NPC* npc); //Tory Cola Suprise KurtQuest
static void npc_1012114(NPC* npc); //Growlie Cola Suprise KurtQuest
static void npc_9020000(NPC* npc); //Kerning KurtQuest
static void npc_9020001(NPC* npc); //Kerning KurtQuest
static void npc_9020002(NPC* npc); //KurtQuest Kerning bla bla blaaaa~
static void npc_9310009(NPC* npc); //HP and MP increaser
static void npc_2013000(NPC* npc); //OKQ
static void npc_2040042(NPC* npc); //OKQ
static void npc_2013001(NPC* npc); //OKQ
static void npc_2013002(NPC* npc); //OKQ
static void npc_9201034(NPC* npc); //OKQ

It might be that on mine its (NPC* npc); but yours is set up like (NPC *npc); According to one of my users that was their problem.
 
Skilled Illusionist
Joined
Apr 11, 2008
Messages
302
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

I got it to work when I put it at TeleportNPCs.cpp when I make new cpp it gives me same error as the person above
 
Newbie Spellweaver
Joined
May 16, 2008
Messages
18
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

have u tried urself?
 
Newbie Spellweaver
Joined
Aug 31, 2007
Messages
22
Reaction score
0
Re: [RELEASE] Cola Suprise KurtQuest!

Seriously Sean? I have it in my own CPP. One minute I'm gonna check it.. perhaps I missed something when I posted it.

[Edit]
Okay, uhm... everything is there. So, post it in TeleportNPCs.cpp if you guys have it.
 
Status
Not open for further replies.
Back
Top