Jump to content
  • 0

variable if: all mob kill in current map


Question

Posted

hi, I need the "variable if":
if all the mobs on the current map are dead.
ex:

----------------------------------------------------------------

mes: now I evoke the first 3 mobs:
atcommand "@monster xxxx 3";
if (all mobs killed in current map)
mes: now I evoke 4 more mobs:
atcommand "@monster xxxx 4";

----------------------------------------------------------------

thanks.

1 answer to this question

Recommended Posts

  • 0
Posted

here is the example

areamonster "ordeal_1-1",183,182,246,244,"[DS] BYORGUE",1839,10,"DS_HiddenNpc::Ondevildead";

Ondevildead:
    set $@mob,$@mob - 1;
    if($@mob == 15) mapannounce "ordeal_1-1","Guardian : 10 mobs to enter the 2nd round",0;
    if($@mob == 5) mapannounce "ordeal_1-1","Guardian : 5 mobs to enter 2nd round",0;
    if($@mob == 0) { 
        mapannounce "ordeal_1-1",Guardian will enter to 2nd round",0;
        goto Ondevil2;
    }
    end;

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