Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Fixed: use of the mouse


Giukko
 Share

Recommended Posts

`UPDATED`
Hi, mouse click on character and npcs now works properly, just do this:
- inside Client code, `HandleMouseMove` on this two lines:

`CurY = TileView.Top + (((Y + Camera.Top) * ((MAX_MAPY * PIC_Y) / screenY)) \ PIC_Y)`
`CurX = TileView.Left + (((X + Camera.Left) * ((MAX_MAPX * PIC_X) / screenX)) \ PIC_X)`

delete and paste this:

`CurX = TileView.Left + ((((X + 16) + Camera.Left) * ((MAX_MAPX * PIC_X) / screenX)) \ PIC_X)`
`CurY = TileView.Top + ((((Y + 16) + Camera.Top) * ((MAX_MAPY * PIC_Y) / screenY)) \ PIC_Y)`

Then if you find issues at inventory, spells etc..., to fix mouse movements and clicks do this steps:

- search `Call GuiDblClickSearch(X , Y)` and change it with `Call GuiDblClickSearch(X - 16, Y)`

- search `Call GuiUpSearch(Button, Shift, X , Y)` and change it with `Call GuiUpSearch(Button, Shift, X - 16, Y)`

- search `Call GuiMoveSearch(Button, X, Y)` and change it with `Call GuiUpSearch(Button, Shift, X - 16, Y)`

- search `Call GuiDownSearch(Button, X, Y)` and change it with `Call GuiDownSearch(Button, X - 16, Y)`
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...