Jump to content
  • 0

@go command


iPrez

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  78
  • Reputation:   3
  • Joined:  12/06/11
  • Last Seen:  

Hi there , i have a server which is PK Server . i just want to know how to disable @go command when you're dead ? and when they use @go they will respawn in random coordinate . its like someone using a skill . you won't get hit or kill . thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

find:

if( map[sd->bl.m].flag.nogo && battle_config.any_warp_GM_min_level > pc_isGM(sd) ) {
	clif_displaymessage(sd->fd,"You can not use @go on this map.");
	return 0;
}

Add below:


if( pc_isdead(sd) )
{
	clif_displaymessage(fd, "You cannot use this command when you are dead.");
	return 0;
}

About the respawning in random coordinates I have no idea.

Link to comment
Share on other sites


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

for Random Spot....

i not sure will this be the correct way...

x = y = 0;
pc_setpos(sd, sd->mapindex, x, y, CLR_TELEPORT);
sprintf(atcmd_output, msg_txt(5), sd->bl.x, sd->bl.y);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

I thought this was fixed a long time ago.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  78
  • Reputation:   3
  • Joined:  12/06/11
  • Last Seen:  

Thanks slim..

@emistry i have no clue either.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

I thought this was fixed a long time ago.

I thought too. Even in the recent revs. it's been like this, whenever you're dead you can simply @warp, or use @go and you'll ress.

That

and been able to use @warp/@go whenever the user is in a battle.

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