Jump to content
  • 0

Need help with modifying this script


Ruhn

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   1
  • Joined:  04/15/20
  • Last Seen:  


OnTimer10800000:
stopnpctimer;

		monster "prontera",98,186,"Gluttonous Plant",1750,1,"AntHellInvasion::OnInvasionAntHellPlant";
	end;

Im having a hard time getting this script to have a selection of its spawn time. Right now, it always spawn 3hours after server start and after kill. I want it to spawn randomly between 2.5 hours to 3hours.

Tried adding switch(rand(2)){
and put 2 cases but the script only summons the boss on the lowest OnTimer.

Also, if it is possible, make the Plant not killable during the event was on.  This plant serves as indicator that the mvp had been summoned. 
Some times players logged in after the announcement of the mvps arrival

Edited by Ruhn
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  249
  • Reputation:   114
  • Joined:  06/02/12
  • Last Seen:  

Hi. Find:

OnTimer10800000:

And replace:

OnTimer9000000: //trigger on the minimum time (2.5 hours)
	sleep rand(1800000); //Waits randomly until the max time (3 hours)

 

Find:

monster "prontera",98,186,"Gluttonous Plant",1750,1,"AntHellInvasion::OnInvasionAntHellPlant";

And add below it:

setunitdata($@mobid[0], UMOB_DMGIMMUNE, 1); //make Plant not killable

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   1
  • Joined:  04/15/20
  • Last Seen:  

On 4/17/2025 at 12:14 AM, Racaae said:

Hi. Find:

OnTimer10800000:

And replace:

OnTimer9000000: //trigger on the minimum time (2.5 hours)
	sleep rand(1800000); //Waits randomly until the max time (3 hours)

 

Find:

monster "prontera",98,186,"Gluttonous Plant",1750,1,"AntHellInvasion::OnInvasionAntHellPlant";

And add below it:

setunitdata($@mobid[0], UMOB_DMGIMMUNE, 1); //make Plant not killable

 

Thanks a lot bro! It worked.

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