Jump to content
  • 0

Need HELP !! - Force walking (override can_move)


SeaweedTH

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/16/17
  • Last Seen:  


Can anyone pls HELP me to make my server can keep walking & change direction at ONE Click.

According to this, In src/map/unit.c
/**
 * Begins the function of walking a unit to an x,y location
 * This is where the path searches and unit can_move checks are done
 * @param bl: Object to send to x,y coordinate
 * @param x: X coordinate where the object will be walking to
 * @param y: Y coordinate where the object will be walking to
 * @param flag: Parameter to decide how to walk
 *    &1: Easy walk (fail if CELL_CHKNOPASS is in direct path)
 *    &2: Force walking (override can_move)
 *    &4: Delay walking for can_move
 *    &8: Search for an unoccupied cell and cancel if none available
 * @return 1: Success 0: Fail or unit_walktoxy_sub()
 */
int unit_walktoxy( struct block_list *bl, short x, short y, unsigned char flag)

Does anyone have any idea to make my dream true ?,
Thank you so much for every reply.

Edited by SeaweedTH
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

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

it's changing direction in one click by default. The possible problems can be in area_size, and max_walk_path at server-side, and clickdelay at client side. Just increase area_size up to 20, and max_walk_path to 20, and disable in source code inside core.h next line:

// #define OFFICIAL_WALKPATH

Usually, it's enough to avoid breaking walking in less then 14 cells.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/16/17
  • Last Seen:  

50 minutes ago, Anacondaqq said:

it's changing direction in one click by default. The possible problems can be in area_size, and max_walk_path at server-side, and clickdelay at client side. Just increase area_size up to 20, and max_walk_path to 20, and disable in source code inside core.h next line:


// #define OFFICIAL_WALKPATH

Usually, it's enough to avoid breaking walking in less then 14 cells.

Actually i try to disable the OFFICIAL_WALKPATH, i'll try to follow your suggestions on adjusting sizes. Anyway , thank you so much for your help. If it works, i'll let you know asap :).

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/16/17
  • Last Seen:  

On 28/6/2560 at 3:20 PM, Anacondaqq said:

it's changing direction in one click by default. The possible problems can be in area_size, and max_walk_path at server-side, and clickdelay at client side. Just increase area_size up to 20, and max_walk_path to 20, and disable in source code inside core.h next line:


// #define OFFICIAL_WALKPATH

Usually, it's enough to avoid breaking walking in less then 14 cells.

it's solved now, since i can't diff my client bcuz of my client is already patched

Edited by SeaweedTH
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...