Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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:	1158
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
 


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 11:32 PM.


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