[Release] Custom Quest.

Newbie Spellweaver
Joined
Dec 29, 2008
Messages
9
Reaction score
1
Hey Ragezone :closedeyes:!

This is my first release.

-- Custom Quest --

It's a mini Quest, i will add more later on. You need to talk to Rock, Paper, Scissor Admin to begin the quest.

jewoenii - [Release] Custom Quest. - RaGEZONE Forums


She will warp you to a map in Happyville and will give you 4000 big snowballs and a Magical Kitten.

PHP:
/* 	
Rock, Paper, Scissor Admin - Warp to Custom Quest Place (from Free Market)
Credits to Admin of The 4 Story
*/

function start() {
    cm.sendSimple("Hey #h #, i can warp you to the custom quest of #r[B][Your Server Name][/B]#k! Do you want to go in or do you want some information?\r\n#L0##bI would like to do the custom quest.#k#l\r\n#L1##bIn want some information.#k#l");
}

function action(mode, type, selection) {
    switch (selection) {
        case 0:
            cm.warp(209080000, 0) break;
	case 1:
	    cm.sendOk("If you want to do the quest i will warp you to a map in Happyville to fight the big snowman! If you defeated him you need to pick up the presents to trade for an nice reward!")
	    cm.dispose();
    }
    cm.dispose();
}

When you are in the map talk to:
jewoenii - [Release] Custom Quest. - RaGEZONE Forums

He will warp the snowman.
jewoenii - [Release] Custom Quest. - RaGEZONE Forums


PHP:
//Credits: jewoenii of The 4 Story
var mob = Array(9400708);

function start() {
    cm.sendSimple("--------------------------#e Snowman Spawner --------------------------#n \r\n\r\nHey #h #, i'm can summon the Snowman for you!#b\r\n#L0#I'm ready!#l#k");
}

function action(mode, type, selection) {
        cm.summonMob(mob[selection]);
     
    } else {
        cm.sendOk("Ok tell me when you are ready.");
    }
    cm.dispose();
}

Once you did that he will summon the Snowman:
jewoenii - [Release] Custom Quest. - RaGEZONE Forums


If you killed him he will drop presents and you can exchange that with the reward NPC.
jewoenii - [Release] Custom Quest. - RaGEZONE Forums


jewoenii - [Release] Custom Quest. - RaGEZONE Forums


PHP:
// Credits to jewoenii of The 4 Story
var status = 0;
var map = Array(240010501);

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (mode == -1) {
        cm.dispose();
    } else {
        if (mode == 0 && status == 0) {
            cm.dispose();
            return;
        }
        if (mode == 1)
            status++;
        else
            status--;
        if (status == 0) {
            cm.sendSimple("#e-------------------------- Reward NPC --------------------------#n\r\n\r\nHey #h #, I can trade the presents you found for some nice rewards! Choose the reward that you want:\r\n\r\n#L1# 1x #b#v4000425##k for 4x #b#v2101024##k #l\r\n#L2# 10x #b#v4000425##k for 1x #b#v1082223##k #l");
        } else if (status == 1) {
            if (selection == 1) {
                if(cm.haveItem(4000425, 1)) {
		    cm.gainItem(4000425, -1); 
                    cm.gainItem(2101024, 4); 
                    cm.sendOk("Thank you for your Present!");
                } else {
                    cm.sendOk("Sorry, you don't have enough Presents!");
                }
                cm.dispose();
            } else if (status == 2) {
            } else if (selection == 2) {
                if(cm.haveItem(4000422, 10)) {
		    cm.gainItem(4000422, -10);
                    cm.gainItem(1082223, 1);
                    cm.sendOk("Thank you for your Presents!");
                } else {
                    cm.sendOk("Sorry, you don't have enough Presents!");
                }
                cm.dispose();
            }
        }
    }
}

I hope you like it :D:.​
 
Most likely, it's not set to Admin, it's set to the name you talk to the NPC with #n#? Idk the thing.

Nice and simple. You should add an SQL, I'll do it for you.

Edit: I think this SQL script should work

Code:
INSERT INTO monsterdrops VALUES(0, 9400710, 4000425, 100);
INSERT INTO monsterdrops VALUES(0, 9400710, 4000422, 100);

Edit2: Edit the 100 if you want to make the chance harder or easier.
 
I can't get this to work... I'm using ThePack revision 80. I've tried using the NPC named Vikin to do the first NPC's job, but it didn't work. EVERY NPC that I try to find to add this script to in the NPCs folder DOES NOT EXIST! I've looked in the MySQL and everything and I cannot figure out how to edit those NPCs and add this code in... Is there a certain way I have to get around to editing the Rock, Paper, Scissors NPC?
 
Back