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-01-2001, 12:16 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
Help with onwall

can someone give me a working onwall script so you dont go through walls? if you do ill give you credit it my script and send you a copy
__________________
Justin
Reply With Quote
  #2  
Old 08-01-2001, 02:37 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
well if it's for an NPC, i THINK (key word=think) it would be like this:
NPC Code:

if (onwall(x,y-1.5)) {
y++;
}
if (onwall(x,y+1.5)) {
y--;
}
if (onwall(x+.5,y)) {
x--;
}
if (onwall(x-.5,y)) {
x++;
}

__________________

-=Shard IceFire=-
Reply With Quote
  #3  
Old 08-01-2001, 05:26 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
I dont know where I stuck mine at but the best way is to make an array with .25,.5,.75,1 ... blabla then u just run thru the array (and use vecx and vecy) to check the tiles infront of the player.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #4  
Old 08-01-2001, 05:50 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
uhhhh... okay
__________________
Justin
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 06:31 AM.


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