Jump to content
  • 0

@doom regardless GM Level


Question

Posted

Hello, as the title say, I have installed a Poring catcher event and when a winner pick a correct poring he/she will trigger this command all everybody dies. But in my server donaters GM level 1 (so they get extra buff) and normal player is Level 0.

The problem is when the event, when a normal player win, donaters will not die.

Can somebody alter this script so everbody dies regardless GM Level. or make a new src script. Like @hdoom (highess Doom)

This is the normal doom

ACMD_FUNC(doom)
{
struct map_session_data* pl_sd;
struct s_mapiterator* iter;
nullpo_retr(-1, sd);
iter = mapit_getallusers();
for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
{
 if (pl_sd->fd != fd && pc_isGM(sd) >= pc_isGM(pl_sd))
 {
  status_kill(&pl_sd->bl);
  clif_specialeffect(&pl_sd->bl,450,AREA);
  clif_displaymessage(pl_sd->fd, msg_txt(61)); // The holy messenger has given judgement.
 }
}
mapit_free(iter);
clif_displaymessage(fd, msg_txt(62)); // Judgement was made.
return 0;
}

3 answers to this question

Recommended Posts

Posted

ACMD_FUNC(doom)
{
struct map_session_data* pl_sd;
struct s_mapiterator* iter;
nullpo_retr(-1, sd);
iter = mapit_getallusers();
for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
{
 if (pl_sd->fd != fd /*&& pc_isGM(sd) >= pc_isGM(pl_sd)*/)
 {
  status_kill(&pl_sd->bl);
  clif_specialeffect(&pl_sd->bl,450,AREA);
  clif_displaymessage(pl_sd->fd, msg_txt(61)); // The holy messenger has given judgement.
 }
}
mapit_free(iter);
clif_displaymessage(fd, msg_txt(62)); // Judgement was made.
return 0;
}

Kenpachi was faster :(

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