Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Staff Block help! (https://forums.graalonline.com/forums/showthread.php?t=86762)

[email protected] 07-08-2009 08:07 AM

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!";



[email protected] 07-08-2009 09:29 AM

Nevermind guys, I got it.

Gambet 07-08-2009 03:59 PM

Well, in case anyone else wonders how you would do this in the future, you would use the putnpc2() command.

cbk1994 07-08-2009 05:17 PM

This might also help someone.

on3m4n 07-20-2009 07:06 AM

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.

cbk1994 07-20-2009 07:39 AM

Quote:

Originally Posted by on3m4n (Post 1508759)
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 (Post 1505201)
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.



All times are GMT +2. The time now is 11:32 PM.

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