Jump to content
  • 0

request Random spawn Monster Event


Question

Posted

may someone help me for auto event npc spawn Random monster on Random map ?

exampel like :

i want spawn mob with number 1001,1002,1003,1005 random on a random map prontera,morocc,izlude every 30minute.

sorry for my bad english :D

4 answers to this question

Recommended Posts

  • 1
Posted

Like that ?

-	script	spawn_woe	-1,{
OnInit:
	setarray .mob_ID, 1001, 1002, 1003, 1005; // add more mob id
	setarray .map_event$, "prontera", "geffen"; // yours woe map
	.size_mob = getarraysize( .mob_ID );
	.size_map = getarraysize( .map_event$ );
	end;

OnMinute00:
OnMinute30:
	.@r = rand( .size_mob );
	.@m = rand( .size_map );
	monster .map_event$[.@m],0,0,"--ja--", .mob_ID[.@r],1,"";
	announce "a "+ strmobinfo( 1,.mob_ID[.@r] ) +" is spawn in "+ .map_event$[.@m] +" !",0;
	end;
}
  • Upvote 2
  • Love 1
  • 0
Posted
On 3/24/2013 at 2:00 PM, croxinuz said:

 

thank you sir.. i will try this :D

is this work? i try this but no treasure apear on map only announced !!  wwhy i put many treasure chest id mobs but no treasure apeared!! on town!!

  • 0
Posted
-	script	spawn_woe	-1,{
OnInit:
	setarray .mob_ID, 1001, 1002, 1003, 1005; // add more mob id
	setarray .map_event$, "prontera", "geffen"; // yours woe map
	.size_mob = getarraysize( .mob_ID );
	.size_map = getarraysize( .map_event$ );
	end;

OnMinute00:
OnMinute30:
	.@r = rand( .size_mob );
	.@m = rand( .size_map );
	monster .map_event$[.@m],0,0,"--ja--", .mob_ID[.@r],1,"";
	announce "a "+ strmobinfo( 1,.mob_ID[.@r] ) +" is spawn in "+ .map_event$[.@m] +" !",0;
	end;
}

1. How to put a NPC to warp into the spawning site of the Boss and it will dissappear if the event and the boss already summoned into that map?

setarray .map_event$, "Custom Map"; // yours woe map

2. How to announce the killer of the boss?

how to set onBossKill function

Posted

Like that ?

-	script	spawn_woe	-1,{
OnInit:
	setarray .mob_ID, 1001, 1002, 1003, 1005; // add more mob id
	setarray .map_event$, "prontera", "geffen"; // yours woe map
	.size_mob = getarraysize( .mob_ID );
	.size_map = getarraysize( .map_event$ );
	end;

OnMinute00:
OnMinute30:
	.@r = rand( .size_mob );
	.@m = rand( .size_map );
	monster .map_event$[.@m],0,0,"--ja--", .mob_ID[.@r],1,"";
	announce "a "+ strmobinfo( 1,.mob_ID[.@r] ) +" is spawn in "+ .map_event$[.@m] +" !",0;
	end;
}

 

thank you sir.. i will try this :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...