Jump to content
  • 0

About @warp & @go abuse


Question

Posted

Hello rathena. I do have a live high rate pk server and my players was abusing the @warp command. Here are some scenarios.

 

When a player died they can use @warp or @go with the same map and they will be instantly revive but will have 1~2 HP. The other server i played before when the player died they can still use the @warp or @go, they will warp of course but they will remain dead. So they have no choice to click the return to save point.

 

 

Another thing.

 

When a player hits another player, the player that got hit can still use the @warp & @go commands. So basically i want to add a delay for like 10 secs when they get hit before warping out again.

 

Is there a fix for this? Is there a chance push it to the git? So in the future we dont have to edit this settings again.

 

 

Thanks!

6 answers to this question

Recommended Posts

Posted

Hello rathena. I do have a live high rate pk server and my players was abusing the @warp command. Here are some scenarios.

 

When a player died they can use @warp or @go with the same map and they will be instantly revive but will have 1~2 HP. The other server i played before when the player died they can still use the @warp or @go, they will warp of course but they will remain dead. So they have no choice to click the return to save point.

 

 

 

Open atcommand.c

 

@warp/ @warpto

Before

	if (pc_setpos(sd, mapindex, x, y, CLR_TELEPORT) != 0) {
		clif_displaymessage(fd, msg_txt(sd,1)); // Map not found.
		return -1;
	}
 

Add:

	if( pc_isdead(sd) )
	{
		clif_displaymessage(fd, msg_txt(sd,664));
		return -1;
	}

@go

 

Before: 

		if (pc_setpos(sd, mapindex_name2id(data[town].map), data[town].x, data[town].y, CLR_TELEPORT) == 0) {
			clif_displaymessage(fd, msg_txt(sd,0)); // Warped.
		} else {
			clif_displaymessage(fd, msg_txt(sd,1)); // Map not found.
			return -1;
		}

Add:

	if( pc_isdead(sd) )
	{
		clif_displaymessage(fd, msg_txt(sd,664));
		return -1;
	}

It's extra rules to make failed usage this command while you dead.

The recompile your server.

Another thing.

 

When a player hits another player, the player that got hit can still use the @warp & @go commands. So basically i want to add a delay for like 10 secs when they get hit before warping out again.

 

Is there a fix for this? Is there a chance push it to the git? So in the future we dont have to edit this settings again.

 

 

Thanks!

 

http://rathena.org/board/topic/61836-warp-go-damage-delay/

  • Upvote 1
Posted

ACMD_FUNC()

 

 

 

I am using the latest pull from git i cant found this in atcommand.c

 

 

ACMD_FUNC(go)

ACMD_FUNC(mapmove)

in atcommands.c

Alright i found it. I dont know what im gonna do. Everything is fine now. You cannot warp when DEAD. But skill when you got hit or you hit someone you can still use @go and @warp

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