Jump to content

Locked Walk/Follow


GreenBox

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   101
  • Joined:  11/13/11
  • Last Seen:  

This snippet add some commands that will make the player follow/walk to somewhere and until he reach the destination he can't act(walk, attach, use skills, etc).

lockedwalk-r15938.diff

http://pastebin.com/Ef7ZRNjN

Added commands:

- pc_locked_walk(sd, x, y) [sRC]
- pc_locked_follow(sd, target) [sRC]
- lockedwalk <x> <y> [script]
- lockedfollow <target> [script]
- @lockedwalk <x> <y> [Atcommand]
- @lockedfollow <target> [Atcommand]

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   2
  • Joined:  04/16/12
  • Last Seen:  

Wow, thanks ^^

I'll try your commands now.

didn't thought that it would be so much work ^^''

thank you so much.

edit:

so, a lil bit tested.

@lockedwalk -> works perfect :)

@lockedfollow -> player are able to move again after the first following step (but it's not that big problem, because the player will be ported to the moving player if he'll come out of range)

lockedwalk x y -> dunno if this command worked or not... forgotten xD

lockedfollow -> didn't testet (but i think it will be the same problem like @lockedfollow)

pc_locked_walk -> gave me some errors 'pc'_locked_walk "unknown command" or something like that, didn't watch the problem intensive, sorry.

pc_locked_follow -> didn't tested (but i think it will be the same problem like pc_locked_walk)

it's just fine, @lockedwalk was exactly what i needed :)

so, thanks again for your great work! =)

sorry, my english isn't that well =D

Edited by Shikka
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   101
  • Joined:  11/13/11
  • Last Seen:  

pc_locked_follow and pc_locked_walk are commands to be used on the source

lockedwalk @lockedwalk are the same command, but one is to be used on scripts, lockedfollow and @lockedfollow is the same

i've made lockedfollow to remove the lock after the target stop walking for the first time

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   2
  • Joined:  04/16/12
  • Last Seen:  

ah, i see, okay, sorry, then nevermind =D all is going well :)

thanks for the update

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  175
  • Reputation:   8
  • Joined:  03/10/12
  • Last Seen:  

Thanks! However it doesnt stop following. it needs to logout when I use the @lockedfollow command.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   101
  • Joined:  11/13/11
  • Last Seen:  

actually, i created the atcommands for debugging. the correct way to use it is by scripts using pcstopfollow to remove the follow state

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  175
  • Reputation:   8
  • Joined:  03/10/12
  • Last Seen:  

Its alright. Because it might be abused during gvg or pvp.

Link to comment
Share on other sites

  • 9 months later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  251
  • Reputation:   20
  • Joined:  12/22/11
  • Last Seen:  

cant stop following before logout from server :D

 

suggest :

 

-add lockedfollow off >.<

-disable command at city, maybe put some mapflag for this command :)

Edited by java
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

+1 add please.:

 

-add lockedfollow off >.<


-disable command at city, maybe put some mapflag for this command :)

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
Reply to this topic...

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