Jump to content
  • 0

Random map


nelax

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  41
  • Reputation:   0
  • Joined:  08/16/13
  • Last Seen:  

Hello! I would ask your help to create an automatic event of 6 in 6 hours 1 thanatos is invoked in random map

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1282
  • Reputation:   393
  • Joined:  02/03/12
  • Last Seen:  

 6 in 6 hours

 

Not sure what you mean anyways this will spawn Thanatos the 6th hour of every day.

-	script	Thanatos_Event	-1,{

OnHour06:
	killmonster .maps$[.rand],"Thanatos_Event::OnMobDead";
	set .rand, rand(getarraysize(.maps$));
	announce "Thanatos has appeared in "+setchar(.maps$[.rand], strtoupper(charat(.maps$[.rand],0)), 0)+"!",bc_all,0x0000FF;
	monster .maps$[.rand],0,0,"Thanatos",1708,1,"Thanatos_Event::OnMobDead";
	end;
	
OnMobDead:
    announce strcharinfo(0)+" has killed Thanatos!",bc_all,0xFF0000;
    end;
	
OnInit:
	setarray .maps$, "prontera", "payon", "geffen", "morocc",
                     "alberta", "izlude", "aldebaran", "comodo",
                     "yuno", "amatsu", "gonryun", "umbala", "louyang";
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  41
  • Reputation:   0
  • Joined:  08/16/13
  • Last Seen:  

 

 6 in 6 hours

 

Not sure what you mean anyways this will spawn Thanatos the 6th hour of every day.

-	script	Thanatos_Event	-1,{

OnHour06:
	killmonster .maps$[.rand],"Thanatos_Event::OnMobDead";
	set .rand, rand(getarraysize(.maps$));
	announce "Thanatos has appeared in "+setchar(.maps$[.rand], strtoupper(charat(.maps$[.rand],0)), 0)+"!",bc_all,0x5AFD4D;
	monster .maps$[.rand],0,0,"Thanatos",1708,1,"Thanatos_Event::OnMobDead";
	end;
	
OnMobDead: end;
	
OnInit:
	setarray .maps$, "prontera", "payon", "geffen", "morocc",
                     "alberta", "izlude", "aldebaran", "comodo",
                     "yuno", "amatsu", "gonryun", "umbala", "louyang";
}

 

Nice and announce when someone kill thanatos

 

 

@Edit

 

else the mvp is not being invoked on the map

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1282
  • Reputation:   393
  • Joined:  02/03/12
  • Last Seen:  

Nice and announce when someone kill thanatos

 

@Edit

 

else the mvp is not being invoked on the map

 

 

Ok updated previous post.

Link to comment
Share on other sites

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.

×
×
  • Create New...