View Single Post
  #1  
Old 03-19-2010, 12:51 AM
jkldogg jkldogg is offline
J.Rollin (killaz)
jkldogg's Avatar
Join Date: Feb 2010
Location: USA
Posts: 675
jkldogg can only hope to improve
Send a message via AIM to jkldogg Send a message via MSN to jkldogg
Red face Guild Locked Door

My First Post in the Code Gallery!

Very Simple Guild door script. Just Place it in an NPC on the GraalEditor, save it and upload it to your server.
You must also use an image and upload that as well. You must have your own clientr.gangname

This script is very useful for like gang locked doors or staff locked doors.
So like you must be wearing the guild tag in order to enter the door, if you're not wearing the tag, you'll be warped to the else location.

Forum PM me any questions you may have.

Helpful Comments:
NPC Code:
line 2, you need your own script for a clientr.gangname or something.  
You can easily find a stafftag script in the code gallery and edit it.
It won't work without the clientr. part in the server options and weapon for the player.

line 2, you can also use a guild setter script. like :guild account "guild name", that will also work

line 3, the level to warp the player to when door is grabbed when wearing guild tag specified in line 2

line 5, the level to warp the player to if they aren't in that guild specified in line 2



Here's the full code:
PHP Code:
function onActionGrab() {
  if (
clientr.SquadName == "Guild Name") {
    
setlevel2("levelnamehere.nw"xy);
  } else {
    
setlevel2("levelnamehere.nw"xy);
  }

If you can't click the attachment, or just don't want to(), here's the example:

Attached Thumbnails
Click image for larger version

Name:	script.PNG
Views:	1164
Size:	99.5 KB
ID:	50646  
__________________

PSN: jkldogg



The best post ever made on the graal forums.
After playing Graal Online for many years, JKL decides to make a forum account. Isn't life funny?

Last edited by jkldogg; 03-19-2010 at 12:52 AM.. Reason: Message width was insane.
Reply With Quote