Graal Forums  

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

 
 
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;
    
x = 81;
    
y = 5;
    
height = 20;
    
text = "";
  }
}
function 
onMouseDown(mode) {
  if (
mode == "Left") {
    for (
pl: players) {
      if ( 
mousex in | pl.x + 0.5, pl.x + 2.5| && mousey in | pl.y, pl.y + 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";
    
y = 100;

    new 
GuiButtonCtrl("MyGUI_Button1") {
      
profile = GuiBlueButtonProfile;
      
text = "Ap = 0";
      
width = 115;
    }
    new 
GuiButtonCtrl("MyGUI_Button2") {
      
profile = GuiBlueButtonProfile;
      
text = "Ap = 50";
      
width = 115;
      
y = 29;
    }
    new 
GuiButtonCtrl("MyGUI_Button3") {
      
profile = GuiBlueButtonProfile;
      
text = "Ap = 100";
      
width = 115;
      
y = 58;
    }
    new 
GuiTextEditCtrl("MyGUI_TextEdit1") {
      
profile = GuiBlueTextEditProfile;
      
height = 20;
      
width = 115;
      
x = 0;
      
y = 106;
      
MyGUI_TextEdit1.text = player.nick;
    }
      new 
GuiTextEditCtrl("MyGUI_TextEdit2") {
      
profile = GuiBlueTextEditProfile;
      
height = 20;
      
width = 115;
      
x = 0;
      
y = 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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:04 PM.


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