Jump to content
  • 0

Need help making monster spawn in 60min rotation


behelit

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  07/04/13
  • Last Seen:  

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

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.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   76
  • Joined:  06/13/13
  • Last Seen:  

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

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

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

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