Fixed: use of the mouse

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)

Thanks for the fix 🙂 I’ll give it a test when I have ER 1.9 stable lol (still breaking everything)

UPDATED see first post

@mohenjo-daro eheh 🙂 It ok, I would like to help improve your nice work 😉

Works fine for me 🙂

Log in to reply