Jump to content
  • 0

@doom regardless GM Level


pojiejapan

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  126
  • Reputation:   6
  • Joined:  11/18/11
  • Last Seen:  

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;
}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  764
  • Reputation:   220
  • Joined:  11/14/11
  • Last Seen:  

Change

if (pl_sd->fd != fd && pc_isGM(sd) >= pc_isGM(pl_sd))

to:

if (pl_sd->fd != fd)

and recompile.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   285
  • Joined:  12/19/11
  • Last Seen:  

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 :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  126
  • Reputation:   6
  • Joined:  11/18/11
  • Last Seen:  

Thanks a lot u guys :( . Really help me

Link to comment
Share on other sites

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