Re: [Release Job Warp STARTER!]
Quote:
(cm.sendNext)("You will now be warped to Ellinia");
(cm.warp)(map2);
(cm.sendNext)("Have fun");
(cm.sendOk)("Please post on how you thought this was");
(cm.dispose)();
}
You can't use cm commands like that.
Quote:
cm.sendNext ("TEXT");
cm.warp (ID); < Or what ever you did in you script >
Go for the tutorials and you might learn something :) good luck!
Re: [Release Job Warp STARTER!]
Quote:
Originally Posted by
PurpleMadness
what the heck of a question is that? ofcourse I do.
Quote:
Originally Posted by
PurpleMadness
I fail to see what's NOT wrong about it..
I suggest you'd lookup on some javascript tutorials first.
Quote:
Originally Posted by
PurpleMadness
No. In fact, the only part that is correct is this:
Code:
/* Nancy = 9201007
Have fun editing.
*/
var map1 = 100000000;
var map2 = 101000000;
Like, I said, please look up some
javascript tutorials first.
Well you called it javascript, so yea
Re: [Release Job Warp STARTER!]
Uhhh epic failed...
I'll fix this. You'll see how much different it'll look
Re: [Release Job Warp STARTER!]
just looking at it.. it wunt work
Re: [Release Job Warp STARTER!]
Quote:
Originally Posted by
xblackcat
Well you called it javascript, so yea
So? He IS talking about javascript. NPCs are coded in javascript, you know.
Re: [Release Job Warp STARTER!]
This does not show any text, but does what you want it to do
Tell me if you want it to show text
PHP Code:
function start() {
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)){
cm.warp(101000000);
}
else cm.warp(100000000);
cm.dispose();
}
Re: [Release Job Warp STARTER!]
Quote:
Originally Posted by
Ike21
Hey. This is my first ever full JS Code. Please tell me if it is working because for some reason i can't get my test server up. Any help is appreciated
live_and_let_die@live.co.uk
Code:
// Made by Lee Robertson of TechnoMS!
/* Nancy = 9201007
Have fun editing.
*/
var map1 = 100000000;
var map2 = 101000000;
{
(cm.sendNext)("Hello. Welcome to TechnoMS. I am one of the edited NPC's. This was coded by Lee and was his first ever NEW Npc coding. Please congratulate him if it works.");
(cm.sendNext)("Thank you for playing #bTechnoMS#k");
(cm.sendOk)("Press okay to be warped. =]");
}{
if (cm.getJob)() = 0;
(cm.sendNext)("You will now be warped to Henesys");
(cm.warp)(map1);
(cm.sendNext)("Have fun")
(cm.sendOk)("Please post on how you thought this was")
(cm.dispose)();
}{
else (cm.getJob)() >= 1;
(cm.sendNext)("You will now be warped to Ellinia");
(cm.warp)(map2);
(cm.sendNext)("Have fun");
(cm.sendOk)("Please post on how you thought this was");
(cm.dispose)();
}
I can fix that for yo, but what do you mean by job 1?! There is no job 1.
Re: [Release Job Warp STARTER!]
No, there is no job 0 either.
It's supposed to be:
cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)
Re: [Release Job Warp STARTER!]
Quote:
Originally Posted by
Moogra
No, there is no job 0 either.
It's supposed to be:
cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)
I know but maybe he meant like beginner.
Re: [Release Job Warp STARTER!]
Heres one that I edited from you.
Code:
// Made by Lee Robertson of TechnoMS!
/* Nancy = 9201007
Have fun editing.
*/
var map1 = 100000000;
var map2 = 101000000;
{
(cm.sendNext)("Hello. Welcome to ServerName. I am one of the edited NPC's. I can warp you to your Job Adv. town..");
(cm.sendNext)("Thank you for playing #bServerName#k");
(cm.sendOk)("Thank you again and press okay to be warped. =]");
}{
if (cm.getJob)() = 0;
(cm.sendNext)("I am warping you to Henesys");
(cm.warp)(map1);
(cm.sendNext)("Have fun")
(cm.sendOk)("Have a great time at #bServerName#k! This NPC release was created by Lee Robertson of TechnoMS")
(cm.dispose)();
}{
else (cm.getJob)() >= 1;
(cm.sendNext)("I am warping you to Ellinia");
(cm.warp)(map2);
(cm.sendNext)("Have fun");
(cm.sendOk)("Have a great time at #bServerName#k! This NPC release was created by Lee Robertson of TechnoMS");
(cm.dispose)();
}
Re: [Release Job Warp STARTER!]
Re: [Release Job Warp STARTER!]
Quote:
Originally Posted by
maplefreak26
Heres one that I edited from you.
Code:
// Made by Lee Robertson of TechnoMS!
/* Nancy = 9201007
Have fun editing.
*/
var map1 = 100000000;
var map2 = 101000000;
{
(cm.sendNext)("Hello. Welcome to ServerName. I am one of the edited NPC's. I can warp you to your Job Adv. town..");
(cm.sendNext)("Thank you for playing #bServerName#k");
(cm.sendOk)("Thank you again and press okay to be warped. =]");
}{
if (cm.getJob)() = 0;
(cm.sendNext)("I am warping you to Henesys");
(cm.warp)(map1);
(cm.sendNext)("Have fun")
(cm.sendOk)("Have a great time at #bServerName#k! This NPC release was created by Lee Robertson of TechnoMS")
(cm.dispose)();
}{
else (cm.getJob)() >= 1;
(cm.sendNext)("I am warping you to Ellinia");
(cm.warp)(map2);
(cm.sendNext)("Have fun");
(cm.sendOk)("Have a great time at #bServerName#k! This NPC release was created by Lee Robertson of TechnoMS");
(cm.dispose)();
}
And what good does this do? It doesn't fix anything. This isn't lisp... no ( ) around each function.
Re: [Release Job Warp STARTER!]
Shouldn't you change it into [Release] Job Warp STARTER!?
Re: [Release Job Warp STARTER!]
No, It's not exactly a release if it doesnt work. Oh and the (cm<Code>) i originally had it as cm.getJob () == 0 But i got told that was wrong.
So i then thaught about
(cm.getJob)
Which is also wrong. It's quite confusing if you're a beginner.
So would this be right?
Code:
var map1 = 0;
cm.sendNext("Hi");
cm.warp(map1);
cm.sendOk(Seeya");
cm.dispose();
Re: [Release Job Warp STARTER!]
PHP Code:
/* Nancy = 9201007
Have fun editing.
*/
var map1 = 100000000;
var map2 = 101000000;
function start(){
cm.sendOk("Hello. Welcome to TechnoMS. I am one of the edited NPC's. This was coded by Lee and was his first ever NEW Npc coding. Please congratulate him if it works which where bugged.\r\nThank you for playing #bTechnoMS#k\r\nPress okay to be warped. =]");
}
function action(mode,type,selection){
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER))
cm.warp(map1);
else
cm.warp(map2);
cm.dispose();
}