Graal Forums

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

nikoma5000 10-08-2002 12:29 AM

view
 
how can I make a script, which permits a player to follow a npc with its view? for example: i shoot a fireball and i want to see where the fireball is, even if i am frezzed or something.
thx for helping and sorry for my bad english ;)

R0b1n-NPC 10-08-2002 01:02 AM

setfocus x,y;

nikoma5000 10-08-2002 01:14 AM

please make an example.
(with the fireball)

R0b1n-NPC 10-08-2002 01:25 AM

eh?

ummm
well the fireball shoots 20 tiles a second...

so if you were shooting the fireball right....


if (created) {
shootfireball 3;
for (i=0;i<64;i++) {
setfocus x+i,y;
sleep 0.05;
}
}

dunno tho ;)

nikoma5000 10-08-2002 01:38 AM

That's ok :)
Thanks

R0b1n-NPC 10-08-2002 01:43 AM

np

MattMrHat 10-08-2002 01:43 AM

Quote:

Originally posted by R0b1n-NPC
eh?

ummm
well the fireball shoots 20 tiles a second...

so if you were shooting the fireball right....


if (created) {
shootfireball 3;
for (i=0;i<64;i++) {
setfocus x+i,y;
sleep 0.05;
}
}

dunno tho ;)

How come when I asked for help, you guys said
"Im not going to feed you a script you lazy ass"
:\

R0b1n-NPC 10-08-2002 01:46 AM

Because you wanted a whole script, and that is a code snippet.

Also im feeling extra non-lazy today.

MattMrHat 10-08-2002 01:48 AM

Quote:

Originally posted by R0b1n-NPC
Because you wanted a whole script, and that is a code snippet.

Also im feeling extra non-lazy today.

Ahhhh,
I didnt want a whole script! I asked how to use sin and cos so I could make the script myself! :(

Dach 10-08-2002 04:27 AM

If we could still download an old version of classic or whatever with graal, we wouldn't have to mess with all this handing out scripts crap. I mean everyone that wanted to script went offline, found some cool scripts and learned from them. Now you have to learn from scratch or have good scripters as friends.

Ohwell, I'd put a link to a zip of the old levels in my sig if I wasn't afeard of being persecuted...

R0b1n-NPC 10-08-2002 04:43 AM

ummm ya.. just download gserver 1.19 from the first website you find ;o


All times are GMT +2. The time now is 08:30 AM.

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