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
  #1  
Old 08-19-2012, 01:59 AM
Bleachlover551 Bleachlover551 is offline
Soul Reaper
Bleachlover551's Avatar
Join Date: Jul 2012
Location: Brunswick
Posts: 34
Bleachlover551 is an unknown quantity at this point
AP Changer Script :)

Hope You Like

PHP Code:
//Script By Toshi!
//#CLIENTSIDE
function onCreated() {
  new 
GuiTextCtrl("MyGUI_TextEdit1") {
    
profile GuiBlueTextProfile;
    
81;
    
5;
    
height 20;
    
text "";
  }
}
function 
onMouseDown(mode) {
  if (
mode == "Left") {
    for (
plplayers) {
      if ( 
mousex in pl.0.5pl.2.5| && mousey in pl.ypl.3|) {
        if (
pl != NULL) {
           new 
GuiWindowCtrl("MyGUI_Window1") {
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
clientextent "115,126";

    
canmaximize false;
    
canminimize false;
    
canmove true;
    
canresize false;
    
closequery false;
    
destroyonhide true;
    
text "AP Changer";
    
100;

    new 
GuiButtonCtrl("MyGUI_Button1") {
      
profile GuiBlueButtonProfile;
      
text "Ap = 0";
      
width 115;
    }
    new 
GuiButtonCtrl("MyGUI_Button2") {
      
profile GuiBlueButtonProfile;
      
text "Ap = 50";
      
width 115;
      
29;
    }
    new 
GuiButtonCtrl("MyGUI_Button3") {
      
profile GuiBlueButtonProfile;
      
text "Ap = 100";
      
width 115;
      
58;
    }
    new 
GuiTextEditCtrl("MyGUI_TextEdit1") {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
width 115;
      
0;
      
106;
      
MyGUI_TextEdit1.text player.nick;
    }
      new 
GuiTextEditCtrl("MyGUI_TextEdit2") {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
width 115;
      
0;
      
88;
      
MyGUI_TextEdit2.text player.ap;
    }
  }
}
}
function 
MyGUI_Button1.onAction() {
player.ap "0";
}

function 
MyGUI_Button2.onAction() {
player.ap "50";
}

function 
MyGUI_Button3.onAction() {
player.ap "100";
}
        }
      }
    } 
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 09:53 PM.


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