Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   onwall problems (https://forums.graalonline.com/forums/showthread.php?t=65362)

Moondeath_2 04-14-2006 03:00 AM

onwall problems
 
I noticed a while back there was a problem with onwall but I belived it was my script since then i've rescripted it at least 3-4 times any thing tring to check on wall thinks some carpet peices and grass are on wall.

NPC Code:
  if (!onwall(this.x+1.5+(vecx(this.dir)*0.1),this.y+2+  (vecy(this.dir)*0.1)))



An example of the onwall check in my baddy script it can't walk over any grass peices and alot of inside carpet peices for some odd reason even CheeToS tried helping me with it a while back and couldn't find a problem with the script so and I tested it on Zodiac and a couple other playerworlds it worked fine, i'm not sure what I should do about this. :frown:

The only world it doesn't work on is mine which is kudosai.

Moondeath_2 04-14-2006 03:15 AM

Aw, that's too bad onwalls really don't I tried using the graaleditor.exe's baddy character NPC even it can't walk it just spins it's direction around. :\

Riot 04-14-2006 03:16 AM

If this is serverside, and you are using new type tilesets, make sure you enable the server options for the new tileset type.

Moondeath_2 04-14-2006 03:22 AM

Hah thanks riot, It was newtilesets=true and we arent using it I disabled now it works perfectly fine.


All times are GMT +2. The time now is 06:48 PM.

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