![]() |
accountname only script/guild only script
Ok im making an ice-cream shop and i need a script for guild only so only guild members can open/close the counter and behind the counter i want it where only my account "deman1171" can open/close the door to my bedroom...so..can anyone help? Sorry for posting alot but i really need this.
|
Go to your Graal folder and open up commands.rtf. The things you will need are:
playerchats strequals show hide What these commands do: playerchats When the player chats, playerchats is true. It is what is called an event, meaning that when it is true anything in the following brackets, { } in the case of if(playerchats), will be "read" by the program and checked/performed. strequals(string, condition) Strequals checks if string (for example, #a, which is account name. See the bottom of commands.rtf for more info on built-in strings) is equal to condition. Conditionals, however, need to be included in an event or they are not read. show Show is what it sounds like. It makes the NPC visible. hide Hide is the opposite of show. Hope this helps, I think it's more useful to help teach you to fish rather than give you fish. |
Quote:
|
I didnt understand ONE word you said....all i want is the script..
|
Quote:
|
we arent gonna just say oh look a fool wants a script! lets give it to him!!
all you really need is BASIC knowledge of gscript and like he said the flags playerchats strequals and commands hide show now do with the knowledge what you will... |
Quote:
|
sorry im retarded sometimes :( very sorry...
|
Yet another instance where someone doesn't read the rules before posting.
|
Quote:
|
Before complying with the command, check if #g is equal to whatever your guild name is, using strequals(str1,str2);
The rules clearly state we should not give out scripts, only support. If all you want is the script, then this thread is a violation of the rules. |
| All times are GMT +2. The time now is 12:33 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.