Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Broken Boat Warping (https://forums.graalonline.com/forums/showthread.php?t=35687)

MalakSylv 08-12-2002 03:56 PM

Broken Boat Warping
 
(Tyne)

I'm having a problem with the Providence ships. They seem to get stuck on levels ending with -10 such as Providence_A-10.nw, or B-10, C-10, etc. I've tried fooling with the warping part of the script but I haven't been able to get it to work. Can someone help me please?

if (levxmove!=0 || levymove!=0) {
// Level warp

if (startswith(providence,#L)) {
levx = indexof(#e(11,1,#L),#s(this.warp))+1;
levy = strtofloat(#e(14,2,#L));
if (levx>=1 && levy>=1 &&
(levx+levxmove in |1,16|) && (levy+levymove in |1,16|)) {
setstring this.dest,providence_#e(levx+levxmove-1,1,#s(this.warp))-;
setstring this.test,providence_#e(levx+levxmove-1,1,#s(this.warp))-;
if (levy+levymove<10) setstring this.dest,#s(this.dest)0;
setstring this.dest,#s(this.dest)#v(levy+levymove).nw;

warpto #s(this.dest),(levxmove<0? 54 : levxmove>0? -4 : x), (levymove<0? 52 : levymove>0? -4 : y);
warped = true;
}
}
}

.. Thanks!

SingleChance 08-12-2002 07:09 PM

:megaeek: To hard=/....

MalakSylv 08-13-2002 02:53 AM

It's actually Stefan code.

Python523 08-13-2002 03:32 AM

Quote:

Originally posted by MalakSylv
It's actually Stefan code.
actually I think giltwist scripted the walk on-off boats

Legondary_MyTH 08-13-2002 05:54 AM

...
 
thats Stefan for you....

MalakSylv 08-13-2002 07:00 AM

Aw, so nobody can help me? :(

zorakid2001 08-13-2002 09:49 AM

Shame and shame on stefans unreadable codes! but at least they work!!

Falcor 08-13-2002 10:11 AM

I don't blame him for making them unreadable. You should be scripting your own, instead of trying to figure out and edit his.

MalakSylv 08-13-2002 02:35 PM

Well if I made boats again they'd probably HAVE to use identicle code.

MalakSylv 08-15-2002 07:04 AM

Nope. As soon as you enter 10 you're stuck, and anything over seems to warp you up a couple set of levels.

MalakSylv 08-16-2002 11:16 AM

Right.


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

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