Jump to content
  • 0

Question

Posted (edited)

Hello help me please...

          This script BossMVP random every at OnMinute10

if want not spawn Boss again if old boss not dead..

 

Thank you so much

Edited by saovarott159

2 answers to this question

Recommended Posts

  • 0
Posted

check how lhz_dun03 and lhz_dun04 bosses are spawned.

well, base on your script, looks like you kill the mvp every 10mins?
i have two solutions for you, coz im not sure if you want to retain that every 10 mins of spawn.
first solution would be, make an npc variable that will be set to "true" when is spawned and set to "false" when mvp died.
 

OnInit:
set .isMonAlive, 0; // not alive
...
OnMinute00:
OnMinute10:
OnMinute20:
OnMinute30:
OnMinute40:
OnMinute50:
if(.isMonAlive) end; // checks if monster still alive, do not run the script.
... //after calling monster
.isMonAlive = 1; // set to 1 because monster spawned

...
OnBossMvPKilled:
.isMonAlive = 0; // after mvp died, set 0, means its dead.


then, 2nd solution would be, spawn a random monster every 10 mins, this works like lhz_dun03/04
 

OnInit: // spawn monster on init
OnTimer60000: //not sure if 10mins or 1hr, check docu
//call random monster with ::OnBossMvpDead
...
end;

OnBossMvpDead:
initnpctimer;
end;

 

  • Upvote 1

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