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
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...
Add this to the static voids.
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)
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: