Jump to content
  • 0

@go command


Question

Posted

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

5 answers to this question

Recommended Posts

Posted

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.

Posted

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

Posted

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.

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