There fixed. That who the function inside the module should be. So replace. I've included the whole function. Also
override built-in inventory window click handling on General Settings should be set to true.
However, if you enable this option, then clicking on an inventory item in an Inventory Window will call your on_mouse_click function with eMouseLeftInv, eMouseMiddleInv or eMouseRightInv
That means because you had it the false, the code wasn't even being runned as i checked. But regardless it needed a fix.
[code]
static function BASSFunctions::mouse_click(MouseButton click, bool reverse){
//handle true
Hotspot*htsp=Hotspot.GetAtScreenXY(mouse.x, mouse.y);
InventoryItem*invitem=InventoryItem.GetAtScreenXY(mouse.x, mouse.y);
if (InventoryItem.GetAtScreenXY(mouse.x, mouse.y) != null) {
if ((reverse==false) && (click==eMouseLeftInv) || (reverse==true) && (click==eMouseRightInv)){
invitem.RunInteraction (eModeLookat);
}
if ((reverse==false) && (click==eMouseRightInv) || (reverse==true) && (click==eMouseLeftInv)){
if (player.ActiveInventory!=null) {
invitem.RunInteraction(eModeUseinv);
}
mouse.Mode=eModeUseinv;
player.ActiveInventory=invitem;
}
return;
}
if ((reverse==false) && (click==eMouseRight)|| (reverse==true) && (click==eMouseLeft)) {
if (player.ActiveInventory != null) {
ProcessClick(mouse.x, mouse.y, eModeUseinv);
return;
}
if (Character.GetAtScreenXY(mouse.x, mouse.y) != null) {
ProcessClick(mouse.x,mouse.y,eModeTalkto);
return;
}
if ((htsp!=null) && (htsp.ID>0) || (Object.GetAtScreenXY(mouse.x, mouse.y)!=null)) {
ProcessClick(mouse.x,mouse.y,eModeInteract);
return;
}
ProcessClick(mouse.x,mouse.y,eModeWalkto);
}
if ((reverse==false) && (click==eMouseLeft) || (reverse==true) && (click==eMouseRight)) {
if (player.ActiveInventory != null) {
player.ActiveInventory=null;
mouse.Mode = eModeInteract;
return;
}
ProcessClick(mouse.x, mouse.y, eModeLookat);
}
}
[/code]