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 07-08-2009, 08:07 AM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
Staff Block help!

Ok, so I have this new staffblock script. It's simple, and thats what I like.

Basically the script has a list of guilds that are allowed to actiongrab the block, and it will hide. Im using block.png by the way. And I have it set to if you don't have that guild, your chat says "I am not authorized to pass". It works perfectly.

The problem though is that for the block to get put in a level, you have to use offline editor, and put join("staffblock"); which is a big inconveinance. Who knows how I could make the script know that I am using join("staffblock"); without having to put it? I would like it to be a script that if you fire the weapon Staff/Block, it will drop at your coordinates, How could I do that as well?

I would appreciate the help.

Heres the script:

PHP Code:
//#CLIENTSIDE
function onActionGrab()
{
if ( 
player.guild in "Owner""Server Owner""Staff""LAT""Development""LAT""GFX""Gani""Administrator", } )
{
hide;
sleep 2;
show;
  }
else 
player.chat "I am not authorized to pass!";

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 01:51 PM.


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