Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   onwall2() issue (https://forums.graalonline.com/forums/showthread.php?t=134266035)

Angel_Light 03-19-2012 06:12 AM

onwall2() issue
 
It's been awhile since I've used GS2, so I may just be missing something completely obvious. Any who, I'm getting into the swing of things and I start making an online baddie, when do movement checks onwall2() always returns true. I have set the shape and the checks are outside this. When I put the baddie on the clientside though, the onwall2() works properly.

Here's the script part :

PHP Code:

        this.dir getdirthis.nx this.xthis.ny this.y);
        
temp.cX this.dir in 13}? this.dir == 1this.1this.3.5this.0.5;
        
temp.cY this.dir in 02}? this.dir == 0this.1this.3.5this.1;
        
temp.cW absvecythis.dir)) + 1;
        
temp.cH absvecxthis.dir)) + 1;

        if ( !
onwall2temp.cXtemp.cYtemp.cWtemp.cH) && !onwater2temp.cXtemp.cYtemp.cWtemp.cH))
        { 


DustyPorViva 03-19-2012 06:16 AM

I think it's something about using a different tileset layout(type 1 instead of type 0[pics1]). There is some server option that lets you change this, I think.

Angel_Light 03-19-2012 06:18 AM

that may be it, I am using type 1, research time!

EDIT:

heh, it has been a long time, but my server opts needed 'newtilesets=true'


All times are GMT +2. The time now is 01:58 AM.

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