Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 04-28-2007, 03:11 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Well, why do you have the onCreated event in there man you don't need that. Just use mouse down as well instead of on action mouse. Give me a few moments to fix that up for you.


PHP Code:
//#CLIENTSIDE
function onMouseDown(mousebutton){
  if ( 
mousebutton == "leftmousebutton" )
  {
    new 
GuiWindowCtrlshopwin ) {
      
profile GuiBlueWindowProfile;
      
10;
      
10;
      
destroyonhide=true;
      
width 160;
      
height 80;

             new 
GuiMLTextCtrlshopitem ) {
               
profile GuiBlueMLTextProfile;
               
10;
               
20;
               
width 160;
               
height 1;
               
text this.itemname;
             }
           }
         }
       } 
Also a suggestion would be to format your scripts with styling so they are more readable bro. Otherwise nice work.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:22 AM.


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