Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   blocks (https://forums.graalonline.com/forums/showthread.php?t=84885)

Schetti 03-29-2009 06:14 PM

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);



TSAdmin 03-29-2009 06:17 PM

If you place ANYTHING outside of a level's boundaries (Except NPCs within the level itself), the ONLY way to fix that is to go on RC and type in

PHP Code:

/clearnpcs levelname.nw 

Scripts will not reach beyond the limits of the level's edges.

Schetti 03-29-2009 06:20 PM

ohh thanks
just silly, thats the only way

Deas_Voice 03-29-2009 06:22 PM

Quote:

Originally Posted by TSAdmin (Post 1479160)
If you place ANYTHING outside of a level's boundaries (Except NPCs within the level itself), the ONLY way to fix that is to go on RC and type in

PHP Code:

/clearnpcs levelname.nw 

Scripts will not reach beyond the limits of the level's edges.

it's not the ONLY way :rolleyes:
you can go to npcs/ folder in filebrowser and find the level npc to delete that npc text file.. (not recommended anyway)
(i haven't tested it with a npc outside a level... so i could be wrong)

cbk1994 03-29-2009 06:22 PM

http://forums.graalonline.com/forums...34&postcount=5

There's one here.

My suggestion is to add this to the script (look for the top two lines, then replace those with this).

PHP Code:

    case "dropBlock":
    { 
      if (! (
dx in |064| && dy in |064|)) {
        break;
      } 


Schetti 03-29-2009 06:26 PM

^^
thanks

Angel_Light 03-30-2009 01:01 AM

Quote:

Originally Posted by Deas_Voice (Post 1479162)
it's not the ONLY way :rolleyes:
you can go to npcs/ folder in filebrowser and find the level npc to delete that npc text file.. (not recommended anyway)
(i haven't tested it with a npc outside a level... so i could be wrong)

Yes that works, I've have had to do that before


All times are GMT +2. The time now is 12:47 AM.

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