Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   accountname only script/guild only script (https://forums.graalonline.com/forums/showthread.php?t=46343)

deman1171 07-21-2003 12:00 AM

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.

protagonist 07-21-2003 12:09 AM

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.

tlf288 07-21-2003 12:14 AM

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 :) .

deman1171 07-21-2003 02:13 AM

I didnt understand ONE word you said....all i want is the script..

protagonist 07-21-2003 02:27 AM

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.

wonderboysp2p 07-21-2003 02:49 AM

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...

deman1171 07-21-2003 03:03 AM

Quote:

Originally posted by wonderboysp2p
lets give it to him!!

HER

wonderboysp2p 07-21-2003 03:20 AM

sorry im retarded sometimes :( very sorry...

Dude6252000 07-21-2003 03:37 AM

Yet another instance where someone doesn't read the rules before posting.

tlf288 07-21-2003 04:37 AM

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.

Falados 07-22-2003 02:19 AM

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.