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 08-06-2002, 02:10 PM
Darkspector Darkspector is offline
Registered User
Join Date: May 2001
Location: under the newjersey turnpike in a styrfoam box
Posts: 380
Darkspector is on a distinguished road
Send a message via ICQ to Darkspector
Shhhhhh

can some one help me with an npc that doesn't allow ppl to talk in a certain block of the level?
__________________
[img]ftp://dragonlance.keenspace.com/20020902.gif[/img]
Reply With Quote
  #2  
Old 08-06-2002, 02:17 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
use in, like playerx |1,10|
Reply With Quote
  #3  
Old 08-06-2002, 10:29 PM
Dark-Dragoon Dark-Dragoon is offline
Registered User
Dark-Dragoon's Avatar
Join Date: May 2002
Posts: 886
Dark-Dragoon is on a distinguished road
say.....
if playerx=whatever-watever, like 1-5,
if playery=whateva-wateva, im not sure if the number-number is how it should be tho.
but if blah-
just set thier #c to blank
__________________
R.I.P. 1999-2004 Graalian Year
The World Renown Nobody, Guy.
Reply With Quote
  #4  
Old 08-06-2002, 11:53 PM
SingleChance SingleChance is offline
Kill Pirates
Join Date: Apr 2002
Location: Canada
Posts: 1,296
SingleChance is on a distinguished road
lol

if (playerenters){
if (playerx=30){show;}
}
that im a nooby...
Reply With Quote
  #5  
Old 08-07-2002, 12:01 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
NPC Code:

if (playerx |x1,x2| && playery |y1,y2| ) {
setplayerprop #c,;
}


.... i think?
that would make a 10 square tile box with corners x1,y1 and x2,y2... i'm sure somebody in here will correct my syntax errors, i've never used "in"... the principle is the same though.
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #6  
Old 08-07-2002, 02:55 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by HoudiniMan
NPC Code:

if (playerx |x1,x2| && playery |y1,y2| ) {
setplayerprop #c,;
}


.... i think?
that would make a 10 square tile box with corners x1,y1 and x2,y2... i'm sure somebody in here will correct my syntax errors, i've never used "in"... the principle is the same though.
it would be |x+1,x+2|
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:52 PM.


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