Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-21-2003, 12:00 AM
deman1171 deman1171 is offline
Registered User
Join Date: Mar 2003
Posts: 0
deman1171 is on a distinguished road
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.
  #2  
Old 07-21-2003, 12:09 AM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
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.
  #3  
Old 07-21-2003, 12:14 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by protagonist

Hope this helps, I think it's more useful to help teach you to fish rather than give you fish.
heh, not only that but it is against the rules to give someone a 'fish' at their request .
__________________
new account: Trevor
  #4  
Old 07-21-2003, 02:13 AM
deman1171 deman1171 is offline
Registered User
Join Date: Mar 2003
Posts: 0
deman1171 is on a distinguished road
I didnt understand ONE word you said....all i want is the script..
  #5  
Old 07-21-2003, 02:27 AM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally posted by deman1171
I didnt understand ONE word you said....all i want is the script..
Topics get closed usually if people post the full code in it.
  #6  
Old 07-21-2003, 02:49 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
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...
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
  #7  
Old 07-21-2003, 03:03 AM
deman1171 deman1171 is offline
Registered User
Join Date: Mar 2003
Posts: 0
deman1171 is on a distinguished road
Quote:
Originally posted by wonderboysp2p
lets give it to him!!
HER
  #8  
Old 07-21-2003, 03:20 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
sorry im retarded sometimes very sorry...
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
  #9  
Old 07-21-2003, 03:37 AM
Dude6252000 Dude6252000 is offline
More often known as Karsh
Dude6252000's Avatar
Join Date: May 2002
Location: USA.
Posts: 2,603
Dude6252000 is on a distinguished road
Send a message via AIM to Dude6252000
Yet another instance where someone doesn't read the rules before posting.
__________________
BEING AWAY FROM THE FORUMS RULES

http://www.livejournal.com/users/karsheth/
  #10  
Old 07-21-2003, 04:37 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by Dude6252000
Yet another instance where someone doesn't read the rules before posting.
The laziness is killing me . All a person has to do is read them once and they should be memorized. I mean the friggin rules are at the _TOP_ of the page.
__________________
new account: Trevor
  #11  
Old 07-22-2003, 02:19 AM
Falados Falados is offline
Cucumber NPC
Falados's Avatar
Join Date: Jan 2003
Posts: 141
Falados is on a distinguished road
Send a message via ICQ to Falados Send a message via AIM to Falados
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.
__________________

subliminal message: 1+1=3
Closed Thread


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 09:30 AM.


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