You are Unregistered, please register to gain Full access.
    


RaGEZONE sponsored advertisment:

Dragonica Image
The free 3D side scrolling MMORPG.

 
 
LinkBack (7) Thread Tools
Old 09-15-2008   7 links from elsewhere to this Post. Click to view. #1 (permalink)
Alpha
 
Alex1333a789's Avatar
 
Rank: Member
Join Date: Jul 2008
Location: 4 By 4 Box, Noob Street West, Ontario
Posts: 127
Thanked 2 Times in 1 Post

[Release] Jail Npc

Your Ad Here
Code:
/* The Jail Npc
   Edited/Made By: Alex1333a789  cause i was bored and had nothing else to do
*/


var status = 0;

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

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
			cm.sendYesNo("Free items?");
		} else if (status == 1) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 2) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 3) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 4) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 5) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 6) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 7) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 8) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 9) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 10) {
			cm.sendYesNo("Free Eye Of Fire?");	
			cm.gainItem(4001017,10);
		} else if (status == 11) {
			cm.sendYesNo("Want to go out of jail?");	
		} else if (status == 12) {
			cm.warp(922020000, 0);
			}
	    }
}
This is a jail npc. Put this in your jail and see if people click it.
If your jail is forgotten darkness then :| too bad for you.
Errm? Have fun (woot 2nd release i'ma release more npc even though i know some are crapy :D probly like this one lol i don't care some ppl may use it)
and and you can use it to send people to jail ^.^
Alex1333a789 is offline   Reply With Quote

RaGEZONE sponsored advertisment:
Old 09-15-2008   #2 (permalink)
Λκαяυz føяeνeя
 
Roamer's Avatar
 
Rank: Moderator
Join Date: Jun 2008
Location: Philadelphia, U
Posts: 3,499
Blog Entries: 11
Thanked 81 Times in 13 Posts

Re: [Release] Jail Npc

Does it work 100%?
__________________
SteamID: elitegg_roamer ---- MSN: aista@live.com ---- AIM: hardcoreplox
Roamer is offline   Reply With Quote

Endorsement
Old 09-15-2008   #3 (permalink)
Alpha
 
Alex1333a789's Avatar
 
Rank: Member
Join Date: Jul 2008
Location: 4 By 4 Box, Noob Street West, Ontario
Posts: 127
Thanked 2 Times in 1 Post

Re: [Release] Jail Npc

yes i tested with ermm npc..
1063001
Alex1333a789 is offline   Reply With Quote

Endorsement

Old 09-15-2008   #4 (permalink)
~Angel~
 
get31720's Avatar
 
Rank: Member +
Join Date: Jul 2008
Posts: 1,012
Thanked 38 Times in 5 Posts

Re: [Release] Jail Npc

That's a good trick if somebody doesn't know what's going to happen and they spam Yes xD
__________________
The perfect guide on learning to code NPCs - [Guide] Learning NPC scripting(beginner's guide)
get31720 is offline   Reply With Quote
Old 09-15-2008   #5 (permalink)
i got raped
 
Rank: Member +
Join Date: Apr 2008
Location: Hayward The Bay TheStack
Posts: 659
Thanked 0 Times in 0 Posts

Re: [Release] Jail Npc

Lol oh wow. People who are going to click are going to complain.
__________________


GOdamn rOnald! It meanz i lOve yOu!
kojowolf510 is offline   Reply With Quote
Old 09-15-2008   #6 (permalink)
Account Upgraded | Title Enabled!
 
Supiangel's Avatar
 
Rank: Member +
Join Date: Feb 2008
Posts: 470
Thanked 1 Time in 1 Post

Re: [Release] Jail Npc

Lol , try changing the "sendYesNo" to "sendOk"

And after they Won ALLLLLLLLLLLLL Those items add a gainItem(itemid, -heregoesthequantityxD) Should be funny ^^
__________________
The Show Must Go On, or else, they would've wasted their money.
Supiangel is offline   Reply With Quote
Old 09-15-2008   #7 (permalink)
Λκαяυz føяeνeя
 
Roamer's Avatar
 
Rank: Moderator
Join Date: Jun 2008
Location: Philadelphia, U
Posts: 3,499
Blog Entries: 11
Thanked 81 Times in 13 Posts

Re: [Release] Jail Npc

Alright
- Added to library
__________________
SteamID: elitegg_roamer ---- MSN: aista@live.com ---- AIM: hardcoreplox
Roamer is offline   Reply With Quote
Old 09-15-2008   #8 (permalink)
Alpha
 
Alex1333a789's Avatar
 
Rank: Member
Join Date: Jul 2008
Location: 4 By 4 Box, Noob Street West, Ontario
Posts: 127
Thanked 2 Times in 1 Post

Re: [Release] Jail Npc

Originally Posted by Roamer View Post
Alright
- Added to library
Really omfg :D Ty (that was my first npc :D)
and
''Lol , try changing the "sendYesNo" to "sendOk"

And after they Won ALLLLLLLLLLLLL Those items add a gainItem(itemid, -heregoesthequantityxD) Should be funny ^^ ''
oh yea so true but i gtg sleep now D: lol i'll go make another random npc tommorow
Alex1333a789 is offline   Reply With Quote
Old 09-15-2008   #9 (permalink)
Love or Hate?
 
bittersweet's Avatar
 
Rank: Member +
Join Date: Aug 2008
Location: ღSღeღaღtღtღlღe
Posts: 483
Blog Entries: 1
Thanked 0 Times in 0 Posts

Re: [Release] Jail Npc

lol good job alex?
__________________
bittersweet is offline   Reply With Quote
Old 09-15-2008   #10 (permalink)
LaTale Section | Awesomer
 
Shagakrath's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Maplestory World
Posts: 1,101
Blog Entries: 2
Thanked 0 Times in 0 Posts

Re: [Release] Jail Npc

Nice.. did somebody test this NPC?
Shagakrath is offline   Reply With Quote
Old 09-15-2008   #11 (permalink)
Extreme Member
 
Rank: Member +
Join Date: Jun 2008
Posts: 228
Thanked 0 Times in 0 Posts

Re: [Release] Jail Npc

o_o"
They get free items for going into jail?
flyb0ixTZ is offline   Reply With Quote
Old 09-15-2008   #12 (permalink)
RaGEZONER
 
MSOlympics's Avatar
 
Rank: Hobbit
Join Date: Sep 2008
Location: Canada
Posts: 74
Thanked 0 Times in 0 Posts

I tested it it works, but you get the items.
MSOlympics is offline   Reply With Quote
Old 09-15-2008   #13 (permalink)
Alpha
 
Alex1333a789's Avatar
 
Rank: Member
Join Date: Jul 2008
Location: 4 By 4 Box, Noob Street West, Ontario
Posts: 127
Thanked 2 Times in 1 Post

Re: [Release] Jail Npc

Code:
/* The Jail Npc
   Edited/Made By: Alex1333a789  cause i was bored and had nothing else to do
*/


var status = 0;

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

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
			cm.sendYesNo("Free items?");
		} else if (status == 1) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 2) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 3) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 4) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 5) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 6) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 7) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 8) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 9) {
			cm.sendYesNo("Free items?");	
			cm.gainItem(2022179,1);
		} else if (status == 10) {
			cm.sendYesNo("Free Eye Of Fire?");	
			cm.gainItem(4001017,10);
		} else if (status == 11) {
			cm.sendYesNo("Want to go out of jail?");	
		} else if (status == 12) {
			cm.warp(922020000, 0);
			cm.gainItem(4001017,-10);
			cm.gainItem(2022179,-10);
			cm.dispose()
			}
	    }
}
Version two i coded this right on the spot but it still should work i'ma go test it right now...

Last edited by Alex1333a789; 09-16-2008 at 10:58 PM.
Alex1333a789 is offline   Reply With Quote
Old 09-15-2008   #14 (permalink)
Ultimate Member
 
Rank: Member
Join Date: Aug 2008
Location: Canada
Posts: 155
Thanked 0 Times in 0 Posts

Re: [Release] Jail Npc

lmfao! love it
__________________
EliteSquad is offline   Reply With Quote
Old 09-15-2008   #15 (permalink)
Alpha
 
Alex1333a789's Avatar
 
Rank: Member
Join Date: Jul 2008
Location: 4 By 4 Box, Noob Street West, Ontario
Posts: 127
Thanked 2 Times in 1 Post

Re: [Release] Jail Npc

Tested 2nd code and it worked
Edit: Releaseing another npc today ^.^
Alex1333a789 is offline   Reply With Quote
Old 09-15-2008   #16 (permalink)
Infraction Banned
 
XxOsirisxX's Avatar
 
Rank: Alpha Member
Join Date: Jul 2008
Posts: 2,677
Thanked 0 Times in 0 Posts

Re: [Release] Jail Npc

cm.dispose();?
XxOsirisxX is offline   Reply With Quote
Old 09-15-2008   #17 (permalink)
Account Upgraded | Title Enabled!
 
Supiangel's Avatar
 
Rank: Member +
Join Date: Feb 2008
Posts: 470
Thanked 1 Time in 1 Post

Re: [Release] Jail Npc

Originally Posted by XxOsirisxX View Post
cm.dispose();?
Lol , yeah , the cm.dispose() is missed xD
__________________
The Show Must Go On, or else, they would've wasted their money.
Supiangel is offline   Reply With Quote
Old 09-15-2008   #18 (permalink)
Alpha
 
Alex1333a789's Avatar
 
Rank: Member
Join Date: Jul 2008
Location: 4 By 4 Box, Noob Street West, Ontario
Posts: 127
Thanked 2 Times in 1 Post

Re: [Release] Jail Npc

O_o you really don't need cm.dispose it ends the convo with a npc when there is no more code to go on make it say or do anything else
Alex1333a789 is offline   Reply With Quote
Old 09-15-2008   #19 (permalink)
Infraction Banned
 
XxOsirisxX's Avatar
 
Rank: Alpha Member
Join Date: Jul 2008
Posts: 2,677
Thanked 0 Times in 0 Posts

Re: [Release] Jail Npc

Originally Posted by Alex1333a789 View Post
O_o you really don't need cm.dispose it ends the convo with a npc when there is no more code to go on make it say or do anything else
lol, yes it does..
but it's because it have nothing else to says, but the NPC remainds open.. so you can't talk to any NPC, till you CC or re-log.
XxOsirisxX is offline   Reply With Quote
Old 09-15-2008   #20 (permalink)
Account Upgraded | Title Enabled!
 
Supiangel's Avatar
 
Rank: Member +
Join Date: Feb 2008
Posts: 470
Thanked 1 Time in 1 Post

Re: [Release] Jail Npc

Originally Posted by XxOsirisxX View Post
lol, yes it does..
but it's because it have nothing else to says, but the NPC remainds open.. so you can't talk to any NPC, till you CC or re-log.
Finally , some drama :D I (L) Drama XP...

Dude , just add a cm.dispose() at the end xD
__________________
The Show Must Go On, or else, they would've wasted their money.
Supiangel is offline   Reply With Quote
Old 09-15-2008   #21 (permalink)
Ace
The Master
 
Ace's Avatar
 
Rank: Omega
Join Date: Apr 2008
Location: Soccer Stadium
Posts: 5,256
Blog Entries: 25
Thanked 104 Times in 81 Posts

Re: [Release] Jail Npc

a jail npc?
i thought someone released this a really long time ago
__________________

Originally Posted by Akaruz View Post
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
Ace is offline   Reply With Quote
Old 09-15-2008   #22 (permalink)
Love or Hate?
 
bittersweet's Avatar
 
Rank: Member +
Join Date: Aug 2008
Location: ღSღeღaღtღtღlღe
Posts: 483
Blog Entries: 1
Thanked 0 Times in 0 Posts

Re: [Release] Jail Npc

@offtopic Alex so what are we gonna do today?

Originally Posted by ihatehaxor View Post
a jail npc?
i thought someone released this a really long time ago
It is release but this is kinda different
__________________
bittersweet is offline   Reply With Quote
Old 09-15-2008   #23 (permalink)
Getting into Graphics
 
Mages4ever's Avatar
 
Rank: Member +
Join Date: Jun 2008
Location: Somewhere =D
Posts: 646
Thanked 1 Time in 1 Post

Re: [Release] Jail Npc

Originally Posted by ihatehaxor View Post
a jail npc?
i thought someone released this a really long time ago
They did, but that one had language, this one is funny.
Makes them think jail is good and take the items away.
Mages4ever is offline   Reply With Quote
Old 09-15-2008   #24 (permalink)
Ace
The Master
 
Ace's Avatar
 
Rank: Omega
Join Date: Apr 2008
Location: Soccer Stadium
Posts: 5,256
Blog Entries: 25
Thanked 104 Times in 81 Posts

Re: [Release] Jail Npc

oh thats cool
__________________

Originally Posted by Akaruz View Post
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
Ace is offline   Reply With Quote
Old 09-15-2008   #25 (permalink)
GFX artist
 
lws8's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Singapore
Posts: 450
Thanked 0 Times in 0 Posts

Re: [Release] Jail Npc

What if someone get the item & before they click the next ok, they use 'end task' to end maplestory?
Won't the items be at their inventory? :O
__________________
lws8 is offline   Reply With Quote
 

Bookmarks

Thread Tools


LinkBacks (?)
LinkBack to this Thread: http://forum.ragezone.com/f427/release-jail-npc-467493/
Posted By For Type Date
maplestory libary This thread Refback 07-20-2009 05:20 AM
Npcs - Downloads/Scripts This thread Refback 07-16-2009 02:36 AM
GamerzPlanet - For All Your Online Gaming Needs!! - View Single Post - [Release] [Library of Useful OdinMS Stuff] [Fixes] [Guides] [Registration Pages] This thread Refback 05-23-2009 05:02 AM
MapleStory Development Team: OdinMS Based: NPCs This thread Refback 04-12-2009 01:30 PM
MapleStory Development Team This thread Refback 04-03-2009 04:44 AM
[Release] [Library of Useful OdinMS Stuff] [Fixes] [Guides] [Registration Pages] - GameCheetah This thread Refback 03-31-2009 08:41 PM
MapleStory Private Server Libary :Npcs: - GameCheetah This thread Refback 03-26-2009 12:58 AM



Translated by Google
Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Maltese Norwegian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Taiwanese Thai Turkish Ukrainian Vietnamese
no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274