Graal Forums

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

niagra475 10-03-2003 01:06 AM

guild gate...
 
whats wrong with this script???...(apart from being basic :P)

//#CLIENTSIDE
if(created){
setstring this.guild,myguild;
}

if (playertouchesme&&strequals(#g,#s(this.guild))){
set guildon;
}

if (guildon&&strequals(#c,opengate1)) {
hide;
dontblock;
}

if (guildon&&strequals(#c,closegate1)) {
show;
blockagain;
}

Neoreno 10-03-2003 01:11 AM

Your setting the string "myguild". Unless your guild name is just that, I'd advise you use #g

niagra475 10-03-2003 01:15 AM

thats what i used until i found a little NPC database thingy from babylon... where i got this mind boggling stuff :/

when i use that it doesnt work very well though..

when testing i have to hit the npc while saying the words to (eg) open the gate and even then it doesn't work half the time:eek:

Neoreno 10-03-2003 01:21 AM

Also, you don't have conditionals inside an event check.

Kaimetsu 10-03-2003 01:26 AM

Also playertouchesme. But until you conform to KSI-GS, that's all you're getting out of me.

-Ramirez- 10-03-2003 01:32 AM

Quote:

Originally posted by Kaimetsu
Also playertouchesme.
That reminds me, has this been corrected in the new engine?

osrs 10-03-2003 05:54 PM

Also there is no need to use set. x.x'

Kaimetsu 10-03-2003 06:13 PM

Quote:

Originally posted by -Ramirez-
That reminds me, has this been corrected in the new engine?
No, it's just a part of the language now.

Loriel 10-03-2003 09:00 PM

We should at least get 'function onPlayerTouches()' or so.


All times are GMT +2. The time now is 11:10 PM.

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