Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Mouse clicks not detected (https://forums.graalonline.com/forums/showthread.php?t=80897)

coreys 07-27-2008 10:19 PM

Mouse clicks not detected
 
For some strange reason on Maloria I can't find any way to detect mouse clicks. These kinds of things aren't working.
PHP Code:

//#CLIENTSIDE
function onMouseDown()
  
player.chat "Test";

function 
GraalControl.onMouseDown()
  
player.chat "Super Test"

I can't seem to figure it out, is our NPC Server really that retarded and messed up?

Inverness 07-27-2008 10:22 PM

Quote:

Originally Posted by coreys (Post 1409136)
I can't seem to figure it out, is our NPC Server really that retarded and messed up?

Don't blame the NPC-Server for your own state of retardation.

The GraalControl.onMouseDown() should work fine provided you're clicking on the control and not another Gui Control.

coreys 07-27-2008 10:39 PM

Quote:

Originally Posted by Inverness (Post 1409137)
Don't blame the NPC-Server for your own state of retardation.

Way to be an nonconstructive *******! ::thumbs up::

Quote:

Originally Posted by Inverness (Post 1409137)
The GraalControl.onMouseDown() should work fine provided you're clicking on the control and not another Gui Control.

No **** sherlock. And it's not working.

Loriel 07-27-2008 10:43 PM

Quote:

Originally Posted by coreys (Post 1409151)
Way to be an nonconstructive *******! ::thumbs up::

No **** sherlock. And it's not working.

This is not how you motivate people to help you.

coreys 07-27-2008 10:44 PM

Quote:

Originally Posted by Loriel (Post 1409155)
This is not how you motivate people to help you.

I know, he didn't need to do that, though. He wasn't helping whatsoever.

LoneAngelIbesu 07-27-2008 10:48 PM

It works fine for me. ^^ Chat is set properly and everything is echoed properly. Without braces, chat is set properly, but it does not echo properly.

You're sure there isn't something conflicting with it on your server?
PHP Code:

//#CLIENTSIDE
function onMouseDown() {
  
player.chat "Test";
  echo(
"onMouseDown()");
}
function 
GraalControl.onMouseDown() {
  
player.chat "Super Test";  
  echo(
"GraalControl.onMouseDown()");



Loriel 07-27-2008 10:56 PM

Quote:

Originally Posted by coreys (Post 1409156)
I know, he didn't need to do that, though. He wasn't helping whatsoever.

Yeah but now you can be sure that he is not going try to actually help you either.

The_Kez 07-27-2008 11:07 PM

Quote:

Originally Posted by Loriel (Post 1409165)
Yeah but now you can be sure that he is not going try to actually help you either.

I doubt someone who calls you a retard before they even get to understanding the content of your post is likely to want to help you either way.

Anyways, yeah, like I said yesterday in PM it does sound like some sort of server issue =(
Hopefully someone can proove me wrong about that though.

coreys 07-27-2008 11:19 PM

I figured the problem out. There was a GuiControl covering the entirety of the screen.


All times are GMT +2. The time now is 01:20 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.