Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 07-08-2009, 09:29 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
Nevermind guys, I got it.
Reply With Quote
  #3  
Old 07-08-2009, 03:59 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Well, in case anyone else wonders how you would do this in the future, you would use the putnpc2() command.
Reply With Quote
  #4  
Old 07-08-2009, 05:17 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
This might also help someone.
__________________
Reply With Quote
  #5  
Old 07-20-2009, 07:06 AM
on3m4n on3m4n is offline
Registered User
Join Date: Jun 2008
Posts: 3
on3m4n is on a distinguished road
Could you tell me the WHOLE script? i need a StaffBlock for my server.D;

Could you help me? i need a staffblock script.D;+class, something that makes it drop, i have the script.
Reply With Quote
  #6  
Old 07-20-2009, 07:39 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by on3m4n View Post
Could you help me? i need a staffblock script.D;+class, something that makes it drop, i have the script.
I posted one in this very thread. Please read before posting:
Quote:
Originally Posted by cbk1994 View Post
This might also help someone.


You may also want to read the scripting forum guidelines, particularly this part:
Quote:
Originally Posted by Scripting Forum Guidelines
1. Be clear on your ability level. In other words, do not post asking for scripts, or asking people to fix scripts that are above your ability level. If you are writing a script to aid learning, then try writing a simpler script. If you are looking for a script for a server, then the best solution is probably to hire a scripter.
__________________
Reply With Quote
Reply


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 02:58 AM.


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