- Awards
- 38
Server That have Tag: 'Exodus' , 'Donation', are server by donating here.permission for download ?
All others ones are free to download.
Server That have Tag: 'Exodus' , 'Donation', are server by donating here.permission for download ?
Hello , I think is client but never I find how to fix this as is first time i work on otclient , so its mousegrab ? I Will Check it thanks you.Can't edit my post, but figured it out was the mousegrabberrelease.. I actually did make a change not knowing it messed with the use and trade actions.... lol
Hey Alex,Hello , I think is client but never I find how to fix this as is first time i work on otclient , so its mousegrab ? I Will Check it thanks you.
function onMouseGrabberRelease(self, mousePosition, mouseButton)
if mouseButton ~= MouseLeftButton then return false end
local clickedWidget = gameRootPanel:recursiveGetChildByPos(mousePosition, false)
if not clickedWidget then
resetInteraction() -- Resets any ongoing actions
return false
end
if selectedType == 'use' then
onUseWith(clickedWidget, mousePosition)
resetInteraction()
return true
end
if selectedType == 'trade' then
onTradeWith(clickedWidget, mousePosition)
resetInteraction()
return true
end
resetInteraction()
return false
end
function resetInteraction()
selectedThing = nil
selectedType = nil
selectedSubtype = nil
g_mouse.popCursor('target') -- Reverts any cursor changes made during interaction
mouseGrabberWidget:ungrabMouse() -- Ensures the mouse is not bound to any widget
gameMapPanel:blockNextMouseRelease(true) -- Prevents accidental clicks from carrying over
end
Hey Alex,
Hopefully this gives you some insight..
Código Lua:function onMouseGrabberRelease(self, mousePosition, mouseButton) if mouseButton ~= MouseLeftButton then return false end local clickedWidget = gameRootPanel:recursiveGetChildByPos(mousePosition, false) if not clickedWidget then resetInteraction() -- Resets any ongoing actions return false end if selectedType == 'use' then onUseWith(clickedWidget, mousePosition) resetInteraction() return true end if selectedType == 'trade' then onTradeWith(clickedWidget, mousePosition) resetInteraction() return true end resetInteraction() return false end function resetInteraction() selectedThing = nil selectedType = nil selectedSubtype = nil g_mouse.popCursor('target') -- Reverts any cursor changes made during interaction mouseGrabberWidget:ungrabMouse() -- Ensures the mouse is not bound to any widget gameMapPanel:blockNextMouseRelease(true) -- Prevents accidental clicks from carrying over end
I have not tested this exact code because I have some custom features in my mousegrabber but that should do the trick
I am not the best coder, could hopefully give you some information though
Hellgrave Exodus
[10.98] TFS 1.4 - Otcv8 Servidor Custom [Systems, Wings, Aura, Jobs, Dungeons, Tiers, etc]Click Aqui para ver mas.
Endless Server 13.11 Real map