This was posted like months ago, ppl find it new here coz they arent old time ragezoner's, im sure some ppl who been here a while recognize this
Printable View
This was posted like months ago, ppl find it new here coz they arent old time ragezoner's, im sure some ppl who been here a while recognize this
Lols. Whad can you expect from noobs? Sera starterpack! :D lol .
Sorry didnt check it ytd.. in a rush.PHP Code:
/****************************************
Done by bendanx3
*****************************************/
var status = 0;
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;
} else if (mode == 1) {
status++;
} else {
status--;
} if (status == 0) {
cm.sendSimple ("hello im #bTommy#, And Im MyLoveStory GM event holder.\r\nTalk to me when you finish the Event to get your reward. \r\n#L0##bWhat is this event ?!#k#l \r\n#L1##bHmm, Ok i will start the event.#k#l\r\n#L2##bCan I have my reward?#k#l\r\n#L3##bNothing.#k#l ");
} else if (status == 1) {
if (selection == 0) {
cm.sendOk("This is an custom GM event event for MyLoveStory, All what you got to do is \r\ncollect 200 Box of Parts 1 and then talking to me to get your reward");
cm.dispose();
} else if (selection == 1) {
cm.sendOk("OK, Good luck");
cm.dispose();
} else if (selection == 2) {
if (cm.haveItem(4031095, 200)) {
cm.sendYesNo("So, I think you got the item, Do you want yo get your reward ?");
} else {
cm.sendOk(" You do not have the item. ");
cm.dispose();
}
} else if (selection == 3) {
cm.sendOk(" Dont waste my TIME ");
cm.dispose();
} else if (status == 2) {
cm.gainItem(4031095, -200);
cm.gainMeso(50000000);
cm.gainItem(1702119, 1);
cm.warp(100000000);
cm.dispose();
}
}
}
}
Thanx for that. with this i'm able to use the npc and the 1,2 and 4th selction, but nothing happen when I choose the Can I have My reward selection.
You dont have to fix this, I'm thankful for what you did already, you helped me a lot, I'll try to find other scripts and see what's wrong with this one.
Nvm, i'm bored ._.
Here it works now .PHP Code:/****************************************
Done by bendanx3
*****************************************/
var status = 0;
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;
} else if (mode == 1) {
status++;
} else {
status--;
} if (status == 0) {
cm.sendSimple ("hello im #bTommy#, And Im MyLoveStory GM event holder.\r\nTalk to me when you finish the Event to get your reward. \r\n#L0##bWhat is this event ?!#k#l \r\n#L1##bHmm, Ok i will start the event.#k#l\r\n#L2##bCan I have my reward?#k#l\r\n#L3##bNothing.#k#l ");
} else if (status == 1) {
if (selection == 0) {
cm.sendOk("This is an custom GM event event for MyLoveStory, All what you got to do is \r\ncollect 200 Box of Parts 1 and then talking to me to get your reward");
cm.dispose();
} else if (selection == 1) {
cm.sendOk("OK, Good luck");
cm.dispose();
} else if (selection == 2) {
if (cm.haveItem(4031095, 200)) {
cm.sendYesNo("So, I think you got the item, Do you want yo get your reward ?");
} else {
cm.sendOk(" You do not have the item. ");
cm.dispose();
}
} else if (selection == 3) {
cm.sendOk(" Dont waste my TIME ");
cm.dispose();
}
} else if (status == 2) {
cm.gainItem(4031095, -200);
cm.gainMeso(50000000);
cm.gainItem(1702119, 1);
cm.warp(100000000);
cm.dispose();
}
}
}
Thanx a lot for the help.
Why dont any one make a theard and esplain the important java codes like the
if and else if
and the var status and things ? and yea maybe the &&
and some base methods.
Jus wondring, because that would realy help new people that trying to learn how to code. like me :P
Thanks Useful
And me once more lol ><, Could any one tell me what i'm doing wrong so that i cant talk to the npcs ?
I was wroking on this code but now I cant talk to the npc >.>
Please you can just tell me what is wrong with it, you dont have to fix it.
PHP Code:/* Kerning city ticket gate npc
Warp you to jump quest
Made by MyLove [GM] of MyLoveStory (C)
*/
var status = 0;
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;
} else if (mode == 1) {
status++;
} else {
status--;
} if (status == 0) {
cm.sendSimple ("hello im #bJake#k, I can take you the consuraction sites like\r\n #pB1, B2 #kand B13.\r\nBut in order to enter those areas you will need a ticket #t4031037# . \r\nSo, Choose which stage you want to enter. \r\n#L0##bTicket to Construction Site B1#k#l \r\n#L1##bTicket to Construction Site B2#k#l\r\n#L2##bTicket to Construction Site B3#k#l ");
} else if (selection == 0) {
if (cm.haveItem(4031036, 1)) {
cm.sendYesNo("Are you sure that you want to enter Ticket to Construction Site B1? ");
} else {
cm.sendOk(" You do not have the ticket. ");
cm.dispose();
} else if (status == 2) {
cm.gainItem(4031036, -1);
cm.warp(103000900);
cm.dispose();
} else if (selection == 1) {
if (cm.haveItem(4031037, 1)) {
cm.sendYesNo("Are you sure that you want to enter Ticket to Construction Site B2? ");
} else {
cm.sendOk(" You do not have the ticket. ");
cm.dispose();
} else if (status == 2) {
cm.gainItem(4031037, -1);
cm.warp(103000903);
cm.dispose();
} else if (selection == 2) {
if (cm.haveItem(4031038, 1)) {
cm.sendYesNo("Are you sure that you want to enter Ticket to Construction Site B3? ");
} else {
cm.sendOk(" You do not have the ticket. ");
cm.dispose();
} else if (status == 2) {
cm.gainItem(4031038, -1);
cm.warp(103000906);
cm.dispose();
}
}
wow! excellent guide!
Is there a command for finding what map the player's in?
nice release
Guys you have bumped a very old thread. ProGamerForLife/xQuasa that was a pretty useless comment for the date when this guide was posted. Please read the rules here on addition bumping/spamming.
http://forum.ragezone.com/f427/stop-...hreads-492937/
If you continue to do so you maybe be given an infraction or at least a warning. Thank you