Jump to content
  • 0

Need help making monster spawn in 60min rotation


Question

Posted (edited)

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

3 answers to this question

Recommended Posts

  • 0
Posted

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.

 

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