RaGEZONE sponsored advertisment:
| | The free 3D side scrolling MMORPG. | |
09-17-2008
|
#1 (permalink)
| | Alpha
Rank: Member
Join Date: Jul 2008 Location: Toronto, Canada
Posts: 139
Thanked 0 Times in 0 Posts
| [Release] Tombstone - Crack Seller/warper
Tested and works fully.
Based off of Adobis NPC (2030013).
Sells Piece of Cracked Dimensions for 25,000,000 mesos and has a warp feature. Also won't allow if not over a certain level. You can edit these anytime you want..
Save it as "2041024.js" and put it into your Server>Scripts>NPC folder. Code: /*
NPC script made by GM Retro of EverlongMS
*/
importPackage(net.sf.odinms.tools);
importPackage(net.sf.odinms.client);
/* Tombstone
Ludibrium: Deep Inside the Clocktower (220080000)
*/
var status = 0;
var price = 25000000;
var map = Array(220080000);
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("Welcome to Deep Inside the Clocktower ! Would you like to go inside and fight #bPapu#k ? If you want to fight him you need #b#t4031179##k so you can summon Papu! \r\n#L1#I would like to buy #b#t4031179##k for 25,000,000 Mesos!#l\r\n\#L2#I already have a #b#t4031179##k , Thanks anyways. #l");
} else if (status == 1) {
if (selection == 1) {
if(cm.getMeso() >= 25000000) {
cm.gainMeso(-25000000);
cm.gainItem(4031179, 1);
cm.sendOk("Enjoy!");
} else {
cm.sendOk("You don't have enough mesos to buy Piece of Cracked Dimension");
}
cm.dispose();
} else if (status == 2) {
} else if (selection == 2) {
cm.getLevel() >= 105
cm.warp(220080000, 0);
cm.dispose();
}
else{
cm.sendOk("You are not in the right levels to get inside. Come back when you're level 105+ (Level 105+) !");
}
}
}
}
Enjoy.
|
| |
RaGEZONE sponsored advertisment:
09-17-2008
|
#2 (permalink)
| | The Master
Rank: Omega Join Date: Apr 2008 Location: Soccer Stadium
Posts: 5,299
Thanked 104 Times in 81 Posts
| Re: [Release] Tombstone - Crack Seller/warper
doesnt this come with every server/repack o.o
__________________
|
Originally Posted by Akaruz | |
RZ is a community , it isnt a group of friends who gather around and make chauvinist or sexist remarks toward other members gender or "ways of life"
| Learning GFX~ 11/29/08 |
| | 
Endorsement
09-17-2008
|
#3 (permalink)
| | Alpha
Rank: Member
Join Date: Jul 2008 Location: Toronto, Canada
Posts: 139
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
|
Originally Posted by ihatehaxor | |
doesnt this come with every server/repack o.o
| Err no, The Tombstone npc doesn't have any functions/scripts.
Like I said, based off another NPC.
|
| | 
Endorsement
09-17-2008
|
#4 (permalink)
| | =)
Rank: Member + Join Date: Apr 2008 Location: Far, far away
Posts: 1,387
Thanked 1 Time in 1 Post
| Re: [Release] Tombstone - Crack Seller/warper
I'm sorry but this fails and doesn't work.
|
| |
09-17-2008
|
#5 (permalink)
| | Alpha
Rank: Member
Join Date: Jul 2008 Location: Toronto, Canada
Posts: 139
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
|
Originally Posted by RMZero213 | |
I'm sorry but this fails and doesn't work.
| Actually, yes, it does work.
Have you even tested it? I have.
|
| |
09-17-2008
|
#6 (permalink)
| | Ownage
Rank: Member + Join Date: May 2008 Location: IgnitionMs.tk / Saphms.tk
Posts: 480
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
this does come wit every repack prob just took it straight from his repack
__________________ Check out our youtube page when we playthrough / commentate on video games
Youtube.com/kingdomcommentary |
| |
09-17-2008
|
#7 (permalink)
| | Owner of HitsuMs <3
Rank: Alpha Member Join Date: Dec 2007 Location: Downtown ^.^
Posts: 1,693
Thanked 10 Times in 5 Posts
| Re: [Release] Tombstone - Crack Seller/warper
how old is this o.o lol
|
| |
09-18-2008
|
#8 (permalink)
| | Alpha
Rank: Member
Join Date: Jul 2008 Location: Toronto, Canada
Posts: 139
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
|
Originally Posted by brianobb | |
this does come wit every repack prob just took it straight from his repack
| Again no.
It's something like this for ZAKUM, aka Adobis..
God, read please.
|
| |
09-18-2008
|
#9 (permalink)
| | =)
Rank: Member + Join Date: Apr 2008 Location: Far, far away
Posts: 1,387
Thanked 1 Time in 1 Post
| Re: [Release] Tombstone - Crack Seller/warper Code: } else if (status == 1) {
if (selection == 1) {
if(cm.getMeso() >= 25000000) {
cm.gainMeso(-25000000);
cm.gainItem(4031179, 1);
cm.sendOk("Enjoy!");
} else {
cm.sendOk("You don't have enough mesos to buy Piece of Cracked Dimension");
}
cm.dispose();
} else if (status == 2) {
} else if (selection == 2) {
cm.getLevel() >= 105
Just. No.
|
| |
09-18-2008
|
#10 (permalink)
| | Kuchiki Byakuya
Rank: Alpha Member Join Date: Jul 2008 Location: Singapore
Posts: 1,517
Thanked 1 Time in 1 Post
| Re: [Release] Tombstone - Crack Seller/warper
Thanks, I will test it.
|
| |
09-18-2008
|
#11 (permalink)
| | Infraction Banned
Rank: Alpha Member Join Date: Jul 2008
Posts: 2,677
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
I remember now, i saw this NPC in a "default" NPC, the one that takes you to Horntail.. well it was added by the server owner.. but anyhow.. it's pretty bad made as RMZero just said.
cm.getLevel() >= 105 is not over a condition for check this level, plus have no ;, it will ever works like that.
I trough Release section have a rule "Test Before Release".
|
| |
09-18-2008
|
#12 (permalink)
| | i Quit :) On to C++
Rank: Member + Join Date: Jul 2008 Location: SiNGaPoRe
Posts: 736
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
Shouldn't this Code: importPackage(net.sf.odinms.tools);
importPackage(net.sf.odinms.client);
Be this? Code: package net.sf.odinms.tools;
package net.sf.odinms.client;
Anyways, you didn't need it. And yeah the level check doesn't work that way.
__________________ 
Blader's pwnzor gfx. Thanks Blader. |
| |
09-21-2008
|
#13 (permalink)
| | Account Upgraded | Title Enabled!
Rank: Member + Join Date: Aug 2008 Location: In a box
Posts: 845
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
|
Originally Posted by RMZero213 | |
I'm sorry but this fails and doesn't work.
| yes this does work, i have a similar function on mine except its a plain shop.
~NICE RELEASE~
__________________ Code: Sheen says:
omg msn porn
Sheen says:
making me hawneeey
Sheen says:
everytime i go to ragezone i get a boner
|
| |
09-21-2008
|
#14 (permalink)
| | Rest In Peace, Igor
Rank: Alpha Member Join Date: Aug 2008 Location: Wherever you ar
Posts: 2,675
Thanked 4 Times in 4 Posts
| Re: [Release] Tombstone - Crack Seller/warper
Oh my god...when I first read the title I was like
"Wth a crack seller who probably warps to Crack Island? ZOMG!"
Then I read the thread. lolz Dx
|
| |
09-21-2008
|
#15 (permalink)
| | YouFail.org
Rank: Member + Join Date: Aug 2008
Posts: 302
Thanked 1 Time in 1 Post
| Re: [Release] Tombstone - Crack Seller/warper
Tyvm
|
| |
09-21-2008
|
#16 (permalink)
| | Kuchiki Byakuya
Rank: Alpha Member Join Date: Jul 2008 Location: Singapore
Posts: 1,517
Thanked 1 Time in 1 Post
| Re: [Release] Tombstone - Crack Seller/warper
It does work but it doesn't check for lvl.
|
| |
09-21-2008
|
#17 (permalink)
| | YouFail.org
Rank: Member + Join Date: Aug 2008
Posts: 302
Thanked 1 Time in 1 Post
| Re: [Release] Tombstone - Crack Seller/warper
|
Originally Posted by RMZero213 | |
I'm sorry but this fails and doesn't work.
| it doesent fail ur not smart is the thing
|
| |
09-21-2008
|
#18 (permalink)
| | ~Tex~
Rank: Member + Join Date: Sep 2008 Location: Planet Eaaaaarth
Posts: 203
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
Basic , easy to add
|
| |
09-21-2008
|
#19 (permalink)
| | Alpha Member
Rank: Alpha Member Join Date: Jul 2008 Location: Palo Alto, CA
Posts: 2,605
Thanked 628 Times in 223 Posts
| Re: [Release] Tombstone - Crack Seller/warper
|
Originally Posted by alan4241 | |
it doesent fail ur not smart is the thing
| Dude he's a beast. You don't know what you're talking about or talking to. PHP Code: else if (selection == 2) { cm.getLevel() >= 105
Does this look like this will work? NO SEMICOLON? I'm guessing it doesn't work as you want it to work. It'll just skip that step where it checks level.
What is PHP Code: else if (status == 2) { }
Test this one. If you define a variable, it only makes sense to use them. PHP Code: /* NPC script made by GM Retro of EverlongMS Edited by Moogra */
importPackage (net.sf.odinms.tools); importPackage(net.sf.odinms.client);
/* Tombstone Ludibrium: Deep Inside the Clocktower (220080000) */ var status = 0; var price = 25000000; var map = Array(220080000);
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("Welcome to Deep Inside the Clocktower! Would you like to go inside and fight #bPapulatus#k? If you want to fight him you need #b#t4031179##k so you can summon Papulatus! \r\n#L1#I would like to buy #b#t4031179##k for 25,000,000 Mesos!#l\r\n\#L2#I already have a #b#t4031179##k , Thanks anyways. #l"); } else if (status == 1) { if (selection == 1) { if(cm.getMeso() >= price) { cm.gainMeso(-price); cm.gainItem(4031179, 1); cm.sendOk("Enjoy!"); } else { cm.sendOk("You don't have enough mesos to buy Piece of Cracked Dimension"); } cm.dispose(); } else { if(cm.getLevel() >= 105){ cm.warp(map, 0); cm.dispose(); } else{ cm.sendOk("You are not in the right levels to get inside. Come back when you're level 105+ (Level 105+) !"); cm.dispose(); } } } } }
|
| |
09-21-2008
|
#20 (permalink)
| | Nuff Said
Rank: Alpha Member Join Date: Feb 2008
Posts: 2,882
Thanked 20 Times in 13 Posts
| Re: [Release] Tombstone - Crack Seller/warper
|
Originally Posted by Moogra |
Dude he's a beast. You don't know what you're talking about or talking to. PHP Code: else if (selection == 2) { cm.getLevel() >= 105
Does this look like this will work? NO SEMICOLON? I'm guessing it doesn't work as you want it to work. It'll just skip that step where it checks level.
What is PHP Code: else if (status == 2) { }
|
loool
this script is UBER FAIL!
__________________
Press the Thank Button :3 |
| |
09-21-2008
|
#21 (permalink)
| | Extreme Member
Rank: Member + Join Date: Aug 2008 Location: West Coast
Posts: 236
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
Here is a working npc with level check. Code: /*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
importPackage(net.sf.odinms.tools);
importPackage(net.sf.odinms.client);
/* Adobis
Zakum entrance
*/
var status = 0;
var price = 1500000000;
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("Welcome to Entracnce to Zakum Altar ! Would you like to go inside and fight #bZakum#k ? If you want to fight him you need #b#t4001017##k, so you can summon Zakum .\r\n#L1#I would like to buy a #b#t4001017##k for 1,500,000,000 Mesos !#l\r\n\#L2#I already have a #b#t4001017##k , Let me in!#l");
} else if (status == 1) {
if (selection == 1) {
if(cm.getMeso() >= 1500000000) {
cm.gainMeso(-1500000000);
cm.gainItem(4001017, 1);
cm.sendOk("Enjoy!");
} else {
cm.sendOk("You don't have enough mesos to buy eye of fire!");
}
cm.dispose();
} else if (status == 2) {
} else if (selection == 2) {
if (cm.getLevel() >=150) {
cm.warp(280030000, 0);
cm.dispose();
} else {
cm.sendOk("You are not in the right level to go fight Zakum. Please come back when you are level 150 or higher");
cm.dispose();
}
}
}
}
}
Hope this helps.
__________________ [admin]Read our rules about signatures. Thanks[/admin] |
| |
09-21-2008
|
#22 (permalink)
| | Infraction Banned
Rank: Alpha Member Join Date: Jul 2008
Posts: 2,677
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
this actually have sintaxys error..
but yeah.. it always works, but never check for level.
|
| |
09-21-2008
|
#23 (permalink)
| | Moderator
Rank: Moderator Join Date: Apr 2008
Posts: 2,508
Thanked 24 Times in 13 Posts
| Re: [Release] Tombstone - Crack Seller/warper
uhh cool thanks lol.
|
| |
09-21-2008
|
#24 (permalink)
| | Ultimate Member
Rank: Member
Join Date: Sep 2008
Posts: 167
Thanked 0 Times in 0 Posts
| Re: [Release] Tombstone - Crack Seller/warper
Congratz on coping and pasting and releasing something that was released about 10 times now
|
| |
09-21-2008
|
#25 (permalink)
| | Nuff Said
Rank: Alpha Member Join Date: Feb 2008
Posts: 2,882
Thanked 20 Times in 13 Posts
| Re: [Release] Tombstone - Crack Seller/warper
|
Originally Posted by candyman3333 | |
Congratz on coping and pasting and releasing something that was released about 10 times now
| were u banned again?
and this is not the same as the rest, this one fails 10x more
__________________
Press the Thank Button :3 |
| | |