Thread: Tiles??
View Single Post
  #4  
Old 03-19-2004, 08:44 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by WanDaMan
I think it would be good if
Stefan made a onwall command and offwall
Like
onwall=0-345,0-346; and such and
offwall=0-342,0-343; If you get me,Would be easier and understandable i beleve.
I agree (partly). If there was a file stored on the server named, lets say tiles.ini, then you could store on/offwall tile indeces like so:

NPC Code:

;Sections:
; onwall - tiles that are onwall
; water - tiles that are water
;
;all other tiles are considered regular walkable tiles
[onwall]
87,1023,154,674

[water]
67,98,1006,442



Then to expand it even more you could set sections that set a flag to true for custom ingame settings, such as:

NPC Code:

in tiles.ini
[tileFlag1]
34,82,10,67

in a gani script
if (tileFlag1)
// do special effect type things



Of course there would be many more tile indeces under each section, but you get the idea.

This is for those that say just script a new movement system:
Lets face it, scripting a movement system is really really hard. Although scripting a movement system is the best approach, with all the new servers and seemingly lack of talent this seems to be the easiest approach for customizing the movement system.
__________________
new account: Trevor
Reply With Quote