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 09-16-2001, 01:56 AM
Zesty_Taco Zesty_Taco is offline
Registered User
Join Date: Sep 2001
Posts: 16
Zesty_Taco is on a distinguished road
I need Help

ok, i was wondering how do u make it so a NPC only works on a certain tile? like in fishing, it HAS to be water in order for it to work! =\ (btw i'm tryingt o make my own fishing) THX
__________________
Visit my site
http://reddragon.mustbekilled.com
Visit my servers site
http://omegastar.netfirms.com
Reply With Quote
  #2  
Old 09-16-2001, 02:09 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Use the Board command

board[x+(y*16)]

So, if you want to check for a deep water tile:
NPC Code:

this.testx=int(playerx+1.5*2);
this.testy=int(playery+2*2);
if (board[this.testx+(this.testy*16)]==322) {
dostuff;
}

__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #3  
Old 09-16-2001, 02:14 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Oooooo. You beat me to the answer.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #4  
Old 09-16-2001, 03:34 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Please dont get into another argument.

-Rebel95
Reply With Quote
  #5  
Old 09-16-2001, 05:28 AM
Zesty_Taco Zesty_Taco is offline
Registered User
Join Date: Sep 2001
Posts: 16
Zesty_Taco is on a distinguished road
ok so what is it for the deep deep water u cannot go in, and the deep water u can swim in.. i need both
__________________
Visit my site
http://reddragon.mustbekilled.com
Visit my servers site
http://omegastar.netfirms.com
Reply With Quote
  #6  
Old 09-16-2001, 05:46 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm will become famous soon enough
Wouldn't the deep water you can't swim in just be considered WALL?
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #7  
Old 09-16-2001, 06:48 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
You Stole my Post! I was about to say that, but it takes me longer to type!!!!!
:grr::grrr: :grrr: :grrr: :grrr: :grrr: :grrr: :grrr: :grrr:
:grr:

-Rebel95
Reply With Quote
  #8  
Old 09-16-2001, 11:32 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Spaz
__________________

subliminal message: 1+1=3
Reply With Quote
  #9  
Old 09-16-2001, 01:45 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
shut up rebel, anyways, board is a very useful command but i cant figure it out.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #10  
Old 09-16-2001, 07:56 PM
Zesty_Taco Zesty_Taco is offline
Registered User
Join Date: Sep 2001
Posts: 16
Zesty_Taco is on a distinguished road
i still dont get how to make this fishing pole thingie.
like how would i make the first part?
if (???) {
this.testx=int(playerx+1.5*2);
this.testy=int(playery+2*2);
if (board[this.testx+(this.testy*16)]==322) {
dostuff;
}}
?? i just dont get it!! ahhhhhhhhhhh lol
__________________
Visit my site
http://reddragon.mustbekilled.com
Visit my servers site
http://omegastar.netfirms.com
Reply With Quote
  #11  
Old 09-16-2001, 11:52 PM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Quote:
Originally posted by Kaimetsu


Yeah, heaven forbid we could have a DISCUSSION on a DISCUSSION BOARD.
I said argument,
not discussion, I love discussions, but argumants are not the point of this forum.

-Rebel95
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 08:25 PM.


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