Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-03-2003, 01:06 AM
niagra475 niagra475 is offline
Registered User
Join Date: Jan 2003
Posts: 12
niagra475 is on a distinguished road
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;
}
__________________
:/ :| :/ :|

(cant use img code X_X)
Reply With Quote
  #2  
Old 10-03-2003, 01:11 AM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Your setting the string "myguild". Unless your guild name is just that, I'd advise you use #g
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #3  
Old 10-03-2003, 01:15 AM
niagra475 niagra475 is offline
Registered User
Join Date: Jan 2003
Posts: 12
niagra475 is on a distinguished road
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
__________________
:/ :| :/ :|

(cant use img code X_X)
Reply With Quote
  #4  
Old 10-03-2003, 01:21 AM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Also, you don't have conditionals inside an event check.
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #5  
Old 10-03-2003, 01:26 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Also playertouchesme. But until you conform to KSI-GS, that's all you're getting out of me.
__________________
Reply With Quote
  #6  
Old 10-03-2003, 01:32 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by Kaimetsu
Also playertouchesme.
That reminds me, has this been corrected in the new engine?
__________________
Kat
Reply With Quote
  #7  
Old 10-03-2003, 05:54 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Also there is no need to use set. x.x'
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #8  
Old 10-03-2003, 06:13 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
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.
__________________
Reply With Quote
  #9  
Old 10-03-2003, 09:00 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
We should at least get 'function onPlayerTouches()' or so.
Reply With Quote
Reply


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:13 AM.


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