Jump to content
  • 0

Randomize LHZ MVP spawns


rqueen

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

Onsummon:
	// Select Coordinates to summon a random MVP on
	switch(rand(1,6)) {
	case 1: set .@x,140;	set .@y,232;	break;
	case 2: set .@x,75;	set .@y,138;	break;
	case 3: set .@x,140;	set .@y,87;		break;
	case 4: set .@x,205;	set .@y,140;	break;
	case 5: set .@x,123;	set .@y,137;	break;
	case 6: set .@x,175;	set .@y,137;	break;
	}
	set .@mob,rand(1646,1651);
	monster "lhz_dun03",.@x,.@y,strmobinfo(1,.@mob),.@mob,1,"summon_boss_lt::OnMyMvPDead";

	// Select Coordinates to summon a random 99 on
	switch(rand(1,6)) {
	case 1: set .@x2,183;	set .@y2,97;	break;
	case 2: set .@x2,97;	set .@y2,96;	break;
	case 3: set .@x2,47;	set .@y2,139;	break;
	case 4: set .@x2,231;	set .@y2,140;	break;
	case 5: set .@x2,139;	set .@y2,211;	break;
	case 6: set .@x2,139;	set .@y2,259;	break;
	}
	set .@mob2,rand(1640,1645);
	monster "lhz_dun03",.@x2,.@y2,strmobinfo(1,.@mob2),.@mob2,1,"summon_boss_lt::OnMVP";
	end; 

 

I was thinking of setting the x,y,x2,y2 coordinates to 0. Would that work? I'm thinking the worst-case scenario would be that the MVPs wouldn't spawn at all.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you want random coordinate or random boss ???

 

if random coordinate...just set both xy coordinate to 0...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

you want random coordinate or random boss ???

 

if random coordinate...just set both xy coordinate to 0...

 

Yes, random coordinate.

 

So setting x,y,x2,y2 will do the trick? It won't bug the script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

you want random coordinate or random boss ???

 

if random coordinate...just set both xy coordinate to 0...

 

Yes, random coordinate.

 

So setting x,y,x2,y2 will do the trick? It won't bug the script?

Yes. Set them all to 0

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

Thanks!

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...