Jump to content
  • 0

Need help with modifying this script


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted
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.

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