Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[release]Spawn NPC

Junior Spellweaver
Joined
Apr 29, 2008
Messages
199
Reaction score
0
for the script to make npc spawn mobs:

herehereherehereherehereherehere

^^^^^^^^^^^^^^^^^^
U need to be sure u got his script installed!!!


i made an npc spawn mobs on the second and 3rd floor in fm 13-19
the upper floor costs 1 mil and the middle floor 5 mil because u can kill them from above without beinig hit.
the npc script:

Code:
function start() {

	cm.sendSimple ("Hello, i can spawn bosses for you.\r\nplease choose your boss.\r\n\r\n1.000.000 Mesos spawn upper floor\r\n#L0#JR.Balrog#l\r\n#L1#Crimson Balrog#l\r\n#L2#Geist Balrog#l\r\n#L3#Male Boss#l\r\n#L4#Female Boss#l\r\n#L5#The Boss#l\r\n#L6#Headless Horseman#l\r\n#L7#Blue Wyvern#l\r\n#L8#Dark Wyvern#l\r\n#L9#Dark Cornian#l\r\n#L10#Griffey#l\r\n#L11#Manon#l\r\n#L12#Bodyguard A#l\r\n#L13#Bodyguard B#l\r\n#L14#Malady(boss)#l\r\n#L15#King Slime#l\r\n#L16#Mano#l\r\n#L17#Fake Balrog#l\r\n#L18#Fake Rombot#l\r\n#L19#Stumpy#l\r\n#L20#Snack Bar#l\r\n#L21#Fake Papa Pixie#l\r\n#L22#Rombot#l\r\n#L23#Giant Centipede#l\r\n#L24#Mt-09#l\r\n#L25#King Clang#l\r\n#L26#Angry Lord Pirate#l\r\n#L27#Mushmom#l\r\n#L28#Blue Mushmom#l\r\n#L29#Riche#l\r\n#L30#Enraged Lord Pirate#l\r\n#L31#Opachu#l\r\n#L32#Tae Roon#l\r\n#L33#Papa Pixie#l\r\n#L34#Angry Franken Lloyd#l\r\n#L35#Papulatus Clock#l\r\n#L36#Papulatus#l\r\n#L37#Fake Papulatus Clock#l\r\n#L38#Fake Papulatus#l\r\n#L39#Fake Alishar#l\r\n#L40#Alishar#l\r\n\r\n5.000.000 Mesos spawn middle floor\r\n#L41#JR.Balrog#l\r\n#L42#Crimson Balrog#l\r\n#L43#Geist Balrog#l\r\n#L44#Male Boss#l\r\n#L45#Female Boss#l\r\n#L46#The Boss#l\r\n#L47#Headless Horseman#l\r\n#L48#Blue Wyvern#l\r\n#L49#Dark Wyvern#l\r\n#L50#Dark Cornian#l\r\n#L51#Griffey#l\r\n#L52#Manon#l\r\n#L53#Bodyguard A#l\r\n#L54#Bodyguard B#l\r\n#L55#Malady(boss)#l\r\n#L56#King Slime#l\r\n#L57#Mano#l\r\n#L58#Fake Balrog#l\r\n#L59#Fake Rombot#l\r\n#L60#Stumpy#l\r\n#L61#Snack Bar#l\r\n#L62#Fake Papa Pixie#l\r\n#L63#Rombot#l\r\n#L64#Giant Centipede#l\r\n#L65#Mt-09#l\r\n#L66#King Clang#l\r\n#L67#Angry Lord Pirate#l\r\n#L68#Mushmom#l\r\n#L69#Blue Mushmom#l\r\n#L70#Riche#l\r\n#L71#Enraged Lord Pirate#l\r\n#L72#Opachu#l\r\n#L73#Tae Roon#l\r\n#L74#Papa Pixie#l\r\n#L75#Angry Franken Lloyd#l\r\n#L76#Papulatus Clock#l\r\n#L77#Papulatus#l\r\n#L78#Fake Papulatus Clock#l\r\n#L79#Fake Papulatus#l\r\n#L80#Fake Alishar#l\r\n#L81#Alishar#l");
}

function action(mode, type, selection) {
        cm.dispose();

	
	
if (cm.getMeso() > 999999) {

cm.dispose();
		
	if (selection == 0) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(8130100, 50000, 500, 80, 2000, 1, 0, 1, 60, 975);
	} else if (selection == 1) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(8150000, 18620, 500, 50, 1267, 1, 0, 1, 60, 975);
	} else if (selection == 2) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9400572, 7000, 1000, 60, 230, 1, 0, 1, 60, 975);
	} else if (selection == 3) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9400120, 85000, 350, 95, 5500, 1, 0, 1, 60, 975);
	} else if (selection == 4) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9400121, 75000000, 10000, 130, 3900000, 1, 0, 1, 60, 975);
	} else if (selection == 5) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9400300, 150000000, 100000, 175, 17500000, 1, 0, 1, 60, 975);
	} else if (selection == 6) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9400549, 3500000, 1000, 101, 300000, 1, 0, 1, 60, 975);
	} else if (selection == 7) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(8810020, 57000, 750, 101, 1000, 1, 0, 1, 60, 975);
	} else if (selection == 8) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(8810021, 80000, 1000, 103, 1050, 1, 0, 1, 60, 975);
	} else if (selection == 9) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(8810023, 67000, 200, 105, 1200, 1, 0, 1, 60, 975);
	} else if (selection == 10) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(8180001, 3700000, 1500, 105, 13500, 1, 0, 1, 60, 975);
	} else if (selection == 11) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(8180000, 3700000, 1500, 105, 13500, 1, 0, 1, 60, 975);
	} else if (selection == 12) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9400112, 400000000, 5000, 152, 13800000, 1, 0, 1, 60, 975);
	} else if (selection == 13) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9400113, 500000000, 50000, 155, 10500000, 1, 0, 1, 60, 975);
	} else if (selection == 14) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9400500, 4200, 90, 1, 0, 1, 0, 1, 60, 975);
	} else if (selection == 15) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9500168, 945, 30, 20, 182, 1, 0, 1, 60, 975);
	} else if (selection == 16) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(2220000, 1000, 30, 20, 65, 1, 0, 1, 60, 975);
	} else if (selection == 17) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9500169, 3094, 500, 30, 263, 1, 0, 1, 60, 975);
	} else if (selection == 18) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9300136, 6500, 220, 30, 450, 1, 0, 1, 60, 975);
	} else if (selection == 19) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(3220000, 3500, 120, 35, 205, 1, 0, 1, 60, 975);
	} else if (selection == 20) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9500179, 5810, 1000, 40, 532, 1, 0, 1, 60, 975);
	} else if (selection == 21) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9500170, 8925, 500, 45, 543, 1, 0, 1, 60, 975);
	} else if (selection == 22) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9300010, 33000, 220, 47, 850, 1, 0, 1, 60, 975);
	} else if (selection == 23) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9600009, 18000, 200, 50, 108, 1, 0, 1, 60, 975);
	} else if (selection == 24) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(5120100, 13500, 70, 54, 980, 1, 0, 1, 60, 975);
	} else if (selection == 25) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(5220000, 11000, 200, 55, 505, 1, 0, 1, 60, 975);
	} else if (selection == 26) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9500175, 54600, 300, 60, 2430, 1, 0, 1, 60, 975);
	} else if (selection == 27) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(6130101, 20000, 200, 60, 1200, 1, 0, 1, 60, 975);
	} else if (selection == 28) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9500176, 50400, 190, 60, 2260, 1, 0, 1, 60, 975);
	} else if (selection == 29) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(6090000, 11000, 500, 65, 255, 1, 0, 1, 60, 975);
	} else if (selection == 30) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9300106, 540000, 500, 76, 12000, 1, 0, 1, 60, 975);
	} else if (selection == 31) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(6400004, 80000, 1000, 70, 250, 1, 0, 1, 60, 975);
	} else if (selection == 32) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(7220000, 93000, 200, 71, 1580, 1, 0, 1, 60, 975);
	} else if (selection == 33) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9300039, 672000, 60000, 74, 17000, 1, 0, 1, 60, 975);
	} else if (selection == 34) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9300152, 850000, 2500, 84, 25000, 1, 0, 1, 60, 975);
	} else if (selection == 35) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(8500001, 23000000, 2000000, 125, 596000, 1, 0, 1, 60, 975);
	} else if (selection == 36) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(8500002, 1590000, 80, 125, 970000, 1, 0, 1, 60, 975);
	} else if (selection == 37) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9500180, 353500, 1000, 90, 18200, 1, 0, 1, 60, 975);
	} else if (selection == 38) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9500181, 211400, 500, 90, 24647, 1, 0, 1, 60, 975);
	} else if (selection == 39) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9500172, 20230, 500, 50, 1590, 1, 0, 1, 60, 975);
	} else if (selection == 40) {
		cm.gainMeso(-1000000);
		cm.spawnMonster(9300012, 125000, 2500, 56, 4800, 1, 0, 1, 60, 975);
	} 
}

if (cm.getMeso() > 4999999) {

cm.dispose();
		
	if (selection == 41) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(8130100, 50000, 500, 80, 2000, 1, 0, 1, 60, 1185);
	} else if (selection == 42) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(8150000, 18620, 500, 50, 1267, 1, 0, 1, 60, 1185);
	} else if (selection == 43) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9400572, 7000, 1000, 60, 230, 1, 0, 1, 60, 1185);
	} else if (selection == 44) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9400120, 85000, 350, 95, 5500, 1, 0, 1, 60, 1185);
	} else if (selection == 45) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9400121, 75000000, 10000, 130, 3900000, 1, 0, 1, 60, 1185);
	} else if (selection == 46) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9400300, 150000000, 100000, 175, 17500000, 1, 0, 1, 60, 1185);
	} else if (selection == 47) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9400549, 3500000, 1000, 101, 300000, 1, 0, 1, 60, 1185);
	} else if (selection == 48) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(8810020, 57000, 750, 101, 1000, 1, 0, 1, 60, 1185);
	} else if (selection == 49) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(8810021, 80000, 1000, 103, 1050, 1, 0, 1, 60, 1185);
	} else if (selection == 50) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(8810023, 67000, 200, 105, 1200, 1, 0, 1, 60, 1185);
	} else if (selection == 51) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(8180001, 3700000, 1500, 105, 13500, 1, 0, 1, 60, 1185);
	} else if (selection == 52) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(8180000, 3700000, 1500, 105, 13500, 1, 0, 1, 60, 1185);
	} else if (selection == 53) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9400112, 400000000, 5000, 152, 13800000, 1, 0, 1, 60, 1185);
	} else if (selection == 54) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9400113, 500000000, 50000, 155, 10500000, 1, 0, 1, 60, 1185);
	} else if (selection == 55) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9400500, 4200, 90, 1, 0, 1, 0, 1, 60, 1185);
	} else if (selection == 56) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9500168, 945, 30, 20, 182, 1, 0, 1, 60, 1185);
	} else if (selection == 57) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(2220000, 1000, 30, 20, 65, 1, 0, 1, 60, 1185);
	} else if (selection == 58) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9500169, 3094, 500, 30, 263, 1, 0, 1, 60, 1185);
	} else if (selection == 59) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9300136, 6500, 220, 30, 450, 1, 0, 1, 60, 1185);
	} else if (selection == 60) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(3220000, 3500, 120, 35, 205, 1, 0, 1, 60, 1185);
	} else if (selection == 61) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9500179, 5810, 1000, 40, 532, 1, 0, 1, 60, 1185);
	} else if (selection == 62) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9500170, 8925, 500, 45, 543, 1, 0, 1, 60, 1185);
	} else if (selection == 63) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9300010, 33000, 220, 47, 850, 1, 0, 1, 60, 1185);
	} else if (selection == 64) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9600009, 18000, 200, 50, 108, 1, 0, 1, 60, 1185);
	} else if (selection == 65) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(5120100, 13500, 70, 54, 980, 1, 0, 1, 60, 1185);
	} else if (selection == 66) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(5220000, 11000, 200, 55, 505, 1, 0, 1, 60, 1185);
	} else if (selection == 67) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9500175, 54600, 300, 60, 2430, 1, 0, 1, 60, 1185);
	} else if (selection == 68) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(6130101, 20000, 200, 60, 1200, 1, 0, 1, 60, 1185);
	} else if (selection == 69) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9500176, 50400, 190, 60, 2260, 1, 0, 1, 60, 1185);
	} else if (selection == 70) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(6090000, 11000, 500, 65, 255, 1, 0, 1, 60, 1185);
	} else if (selection == 71) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9300106, 540000, 500, 76, 12000, 1, 0, 1, 60, 1185);
	} else if (selection == 72) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(6400004, 80000, 1000, 70, 250, 1, 0, 1, 60, 1185);
	} else if (selection == 73) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(7220000, 93000, 200, 71, 1580, 1, 0, 1, 60, 1185);
	} else if (selection == 74) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9300039, 672000, 60000, 74, 17000, 1, 0, 1, 60, 1185);
	} else if (selection == 75) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9300152, 850000, 2500, 84, 25000, 1, 0, 1, 60, 1185);
	} else if (selection == 76) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(8500001, 23000000, 2000000, 125, 596000, 1, 0, 1, 60, 1185);
	} else if (selection == 77) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(8500002, 1590000, 80, 125, 970000, 1, 0, 1, 60, 1185);
	} else if (selection == 78) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9500180, 353500, 1000, 90, 18200, 1, 0, 1, 60, 1185);
	} else if (selection == 79) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9500181, 211400, 500, 90, 24647, 1, 0, 1, 60, 1185);
	} else if (selection == 80) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9500172, 20230, 500, 50, 1590, 1, 0, 1, 60, 1185);
	} else if (selection == 81) {
		cm.gainMeso(-5000000);
		cm.spawnMonster(9300012, 125000, 2500, 56, 4800, 1, 0, 1, 60, 1185);
	} 
}





else {
		cm.sendSimple ("You dont have enough money hobo.");
		cm.dispose();
		}



	
		cm.dispose();
		
	}
 
Last edited:
Custom Title Activated
Loyal Member
Joined
Apr 29, 2008
Messages
1,297
Reaction score
509
"Pro-est" script i ever saw in my whole 14 year old life
Nice
 
Experienced Elementalist
Joined
Jun 19, 2008
Messages
233
Reaction score
0
I Don't think Npc's can spawn monsters.
 
Master Summoner
Loyal Member
Joined
Jul 22, 2008
Messages
573
Reaction score
0
maybe NPC can really spawn mob, cause i saw a Donator Spawning npc in somewhere, but didn't try it yet
 
Junior Spellweaver
Joined
Apr 29, 2008
Messages
199
Reaction score
0
i putted on the start the forum with the code to make spawning work:p
this is just the npc becuz his npc sucs butt XD (no offence)
 
Banned
Banned
Joined
Jun 21, 2008
Messages
143
Reaction score
0
Doesn't work for me either.

I added the donator island boss spawner code. All it does now is take the mesos, but it wont spawn anything.
 
Junior Spellweaver
Joined
Apr 29, 2008
Messages
199
Reaction score
0
thats weird..
ow i know if u dont put it in fm 13-19 then u need to change the coords??
it works perfect for me
 
Banned
Banned
Joined
Jun 21, 2008
Messages
143
Reaction score
0
thats weird..
ow i know if u dont put it in fm 13-19 then u need to change the coords??
it works perfect for me

No where in the code does it define a map id, so it shouldn't matter where you place the npc.

But i'll try it later.
 
Junior Spellweaver
Joined
Apr 29, 2008
Messages
199
Reaction score
0
it define coords so if u put it somewere else it gets spawned in an wall so u dun see it?
 
Senior
Loyal Member
Joined
Feb 8, 2008
Messages
1,873
Reaction score
42
should have just postsed on nejevoli thread
 
The almighty chicken
Loyal Member
Joined
Apr 7, 2008
Messages
570
Reaction score
31
work with arrays for christ sake <.<
 
Back
Top