Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   problem with the shop gui (https://forums.graalonline.com/forums/showthread.php?t=81490)

Rave_J 08-26-2008 08:50 PM

problem with the shop gui
 
http://i60.photobucket.com/albums/h2..._shop-menu.png

ok thats the gui
now im stuck on the part that is the mouse part
something like this
PHP Code:

if (leftmousebutton) {
      if (
mousescreenx in |this.xloc+92,this.xloc+92+49| && mousescreeny in |this.yloc+123,this.yloc+123+21|) {
        
this.on 0;
        
destory();
      } 

now how i find out what the numbers are where when u click it destory the gui ?

DustyPorViva 08-26-2008 08:55 PM

Wow, that looks familiar, heh.

Understood 08-26-2008 09:21 PM

PHP Code:

if (leftmousebutton) {
      if (
mousescreenx in |this.xloc+92,this.xloc+92+49| && mousescreeny in |this.yloc+123,this.yloc+123+21|) {
        
this.on 0;
        
//destory();
        
destroy();
      } 

?

TSAdmin 08-27-2008 01:16 PM

Quote:

Originally Posted by Understood (Post 1418043)
PHP Code:

if (leftmousebutton) {
      if (
mousescreenx in |this.xloc+92,this.xloc+92+49| && mousescreeny in |this.yloc+123,this.yloc+123+21|) {
        
this.on 0;
        
//destory();
        
destroy();
      } 

?

hehe :p Destory ^_^

xXziroXx 08-27-2008 02:14 PM

Quote:

Originally Posted by TSAdmin (Post 1418256)
hehe :p Destory ^_^

I've done that quite a lot of times in the past :D

Codein 08-27-2008 02:56 PM

Quote:

Originally Posted by DustyPorViva (Post 1418035)
Wow, that looks familiar, heh.

I know what you're talking about ;D


All times are GMT +2. The time now is 12:26 PM.

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