Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Mousewheel (https://forums.graalonline.com/forums/showthread.php?t=65517)

KuJi 04-20-2006 06:34 AM

Mousewheel
 
Uhh, is their anything for mousewheeldelta in gs2?

VulcanP2P 04-20-2006 02:46 PM

Here:

Quote:

Originally Posted by http://wiki.graal.net/index.php/Creation/Dev/Script/Client
mousewheeldelta integer (read only)


KuJi 04-20-2006 03:31 PM

I know how to use in GS1.. was curious if their is anything for GUI controls w/ it.


Hey.. uhh.. whats up w/ this:
PHP Code:

function onActionItemInfo(action)
{
  switch (
action)
  {
    case 
"getiteminfo":
    {
      
player.chat "Test";
      break;
    }
  }
}
//#CLIENTSIDE
function onPlayerChats()
{
  if (
player.chat == "/products")
  {
    
triggeraction(xy"iteminfo""getiteminfo");
    
onCreateVars();
    
onDrawGui();
  }



Yen 04-20-2006 11:25 PM

You forgot a setshape() in there. It's needed to catch the trigger, in the serverside. It also helps to do x+1, y+1.

KuJi 04-20-2006 11:25 PM

setshape(1, 32, 32);

is in the actual script b4 it joins the class.


All times are GMT +2. The time now is 04:32 PM.

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