-
[Release Job Warp STARTER!]
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)();
}
-
Re: [Release Job Warp STARTER!]
already releases many times..
-
Re: [Release Job Warp STARTER!]
Sorry never knew. But could you tell me if it would work or not? etc the standard and quality of it?
If it's all typed correctly?
-
Re: [Release Job Warp STARTER!]
won't works see the scripts you will know -,-
-
Re: [Release Job Warp STARTER!]
Lol. Could you explain to me why it wont work? What i did wrong? and how do i improve and make it work?
Because i only started 2-3 days ago and it would help an extreme lot if you explained why and how and such.
-
Re: [Release Job Warp STARTER!]
I fail to see what's NOT wrong about it..
I suggest you'd lookup on some javascript tutorials first.
-
Re: [Release Job Warp STARTER!]
Basically the purpose of the code is to warp Beginners to Henesys and Thiefs Mage's Bowmans and Thief all job advancements to Ellinia.
But is it correct and Will it work?
-
Re: [Release Job Warp STARTER!]
Quote:
Originally Posted by
Ike21
Basically the purpose of the code is to warp Beginners to Henesys and Thiefs Mage's Bowmans and Thief all job advancements to Ellinia.
But is it correct and Will it work?
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.
-
Re: [Release Job Warp STARTER!]
Okay thanks anyways. I'll have another look around. =] Thank for your help.
Also. Could you recommend any? Links etc.
-
Re: [Release Job Warp STARTER!]
Quote:
Originally Posted by
Ike21
Okay thanks anyways. I'll have another look around. =] Thank for your help.
Also. Could you recommend any? Links etc.
Nope. I haven't used any javascript tutorials so I don't know which to recommend. I guess you learn the most from just editing other NPCs. I must say, the NPCs aren't exactly easy to code and I struggle sometimes too.
-
Re: [Release Job Warp STARTER!]
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.
You do know that javascript and java are completely different right?
-
Re: [Release Job Warp STARTER!]
Quote:
Originally Posted by
xblackcat
You do know that javascript and java are completely different right?
what the heck of a question is that? ofcourse I do.
-
Re: [Release Job Warp STARTER!]
Can anyone give me some tutorials. I also found out an error i made. I'll edit it now!
-
Re: [Release Job Warp STARTER!]
Here you will find some nice tutorials...just type
-
Re: [Release Job Warp STARTER!]
Quote:
Originally Posted by
Ike21
Can anyone give me some tutorials. I also found out an error i made. I'll edit it now!
http://forum.ragezone.com/f428/guide...cratch-492748/
-
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)();
}