Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Flawless Following.. (https://forums.graalonline.com/forums/showthread.php?t=2638)

Cyboars 05-11-2001 01:45 PM

1 Attachment(s)
I've worked on this for human pets --almost done.here's the follow script

NPC Code:

// Graal NPC by Chris
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head1132.gif;
setcharprop #C0,black;
setcharprop #C1,black;
setcharprop #C2,black;
setcharprop #C3,black;
setcharprop #C4,black;
setcharprop #n,-=ÇÿÞh먯â€*h=- (Corrupted Angels);
setcharprop #2,no-shield.gif;
shieldpower = 1;
setcharprop #8,body2.png;
dir = 2;
ap = 0;
}
if (playerdir = 1){setdir = 1;}
if (playerdir = 2) {setdir = 2;}
if (playerdir = 3) {setdir = 3;}
if (playerdir = 4) {setdir = 4;}
if (playersays(Cool)){say2 Want Cyph to follow?;}
if (playersays(follow)){followplayer;}


I'm not including the pet part :-P
And I AM Including a Picture of me running around a Mithica Level (offline) with a crapload of followers...

Cyboars 05-11-2001 01:46 PM

1 Attachment(s)
heres a better one..i hope

Cyboars 05-12-2001 02:57 AM

lmao, i suck at scripting..ITS THE BEST I CAN DO!!!heh..

bb2k1 05-13-2001 05:50 AM

I could script that in 5 seconds.
Make it detect if the playerx is over x and if so make it move up and check
down, and left, and right.
It's easy.

bb2k1 05-13-2001 02:06 PM

No, if it's checking both it'll move diagonally.


All times are GMT +2. The time now is 10:06 AM.

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