• 0
behelit

Need help making monster spawn in 60min rotation

Question

So, I have this simple script that spawns a mob... Then re spawns that mob after 1 hour has passed if you kill it:
 

-       script  sample_npc_mob  -1,{
OnTimer3600000: // 1hour
OnInit:
	monster "prontera",78,95,"--ja--",1153,1,strnpcinfo(3)+"::OnKill";
	end;
OnKill:
	initnpctimer;
	end;
}

How would I modify it so that instead of OnKill, it loops based on the following criteria: Start timer -> Spawn mob after 30min -> Kill mob after 60min ?

I only want the mob to be alive for 30min during the second half of the 1 hour loop.

Edited by behelit
Clarification

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I think best way to keep it alive for 30min is don't spawn it.

But if you want to try, Look at this post: 

setunitdata UMOB_DMGIMMUNE.

Not sure skill can damaged mob or not but you can try.

 

Share this post


Link to post
Share on other sites
  • 0

why don't you make permanent spawn mob type? if you need a label, you can attach it on it too

 

  • Upvote 1

Share this post


Link to post
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.