Jump to content
  • 0

About @warp & @go abuse


Gidz Cross

Question


  • Group:  Members
  • Topic Count:  128
  • Topics Per Day:  0.03
  • Content Count:  659
  • Reputation:   84
  • Joined:  04/07/14
  • Last Seen:  

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!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  128
  • Topics Per Day:  0.03
  • Content Count:  659
  • Reputation:   84
  • Joined:  04/07/14
  • Last Seen:  

I hope that mod will be push to the latest git. Will be trying that some other time.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   345
  • Joined:  02/26/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  128
  • Topics Per Day:  0.03
  • Content Count:  659
  • Reputation:   84
  • Joined:  04/07/14
  • Last Seen:  

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   345
  • Joined:  02/26/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  128
  • Topics Per Day:  0.03
  • Content Count:  659
  • Reputation:   84
  • Joined:  04/07/14
  • Last Seen:  

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

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