Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-29-2009, 06:14 PM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
blocks

at first, thats not mine but I dont want to play round with it and destroy

but this is just glitched like hell!
if I put the block out of the level(out of the 64x64, means in the black) I just cant delet I CANT, I cant by uploading level, I cant delet level and reupload, NOTHING WORKS!
maybe someone can give me a better working script?

thats the class:
PHP Code:
function onCreated()
{
  
setimg"block.png");
  
setshape13232);
}
function 
onPlayerChats()
{
  
this.freedom false// Everyone can kill blocks?
  
if ( player.chat == "/destroy")
  if ( 
clientr.isStaff || clientr.blockKiller || ( clientr.staff != NULL && clientr.staff != "") || this.freedomthis.destroy();
  
//If the player tries to clear, and is staff, or is block killer authorized, or has staff tag and is not blank, or is free server
}
//#CLIENTSIDE
function onCreated()
{
  
setimg"block.png");
  
setshape13232);
 
chat this.owner.chat;
  } 
thats the weapon:

PHP Code:
function onActionServerSide()
{
  switch (
params[0])
  {
    case 
"npc":
    {
      
temp.putnpc2intparams[1]), intparams[2]), "");
      
temp.n.join"shared_blocks");
      break;
    }
  }
}
//#CLIENTSIDE
function onKeyPressedcodekey)
{
  if ( 
key == "h")  triggerserver"gui"this.name"npc"mousexmousey);
}

function 
onTimeout()
{
  if ( 
keydown271true))
  {
    
temp.showimg500"block.png"00);
    
i.intmousex);
    
i.intmousey);
    
i.alpha .5;
    
timeout .05;
    
message player.account;
  }else 
hideimg500);

__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
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 03:36 AM.


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