Graal Forums

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

ZeroFXSM 02-08-2002 12:24 PM

Hello
 
I'll admit. I've never scripted in my whole life and I have no idea what I'm doing. But I do no something..

I was wondering how to script a basic bow. I know you theres several lines for each direction. and how do you set the bow to show a certain image.. so its not just your hands.

ZeroFXSM 02-08-2002 12:59 PM

oops my bad.

Shard_IceFire 02-08-2002 08:53 PM

NPC Code:

if (playertouchsme) {
toweapons Bow;
}
if (weaponfired) {
freezeplayer .5;
setani wbow,;//I think that's the animation
shootarrow playerdir;
playerdarts-=1;
}


lol half of it is just made up, it may not work.

Kadar 02-08-2002 10:04 PM

shootarrow playerdir-2 ;x

Slaktmaster 02-08-2002 10:14 PM

the animation is shoot

Kadar 02-08-2002 11:03 PM

Quote:

Originally posted by Slaktmaster
the animation is shoot
or u can just use the push sprite.

Saga2001 02-08-2002 11:37 PM

Quote:

Originally posted by Kaimetsu
NO PROFANITY PLEASE. This is scripting, there's no need to get sufficiently emotional about it to swear.
i was gonna say, he didn't cuss, but u probably edited it...so nm...

ZeroFXSM 02-09-2002 07:14 AM

I don't remember cussing.. but oh well, I think I said I don't know s*** about coding

ZeroFXSM 02-09-2002 07:17 AM

How do you set your own graphic.. like the fireball graphic when you fire.

How do you do that.

TDK_RC6 02-09-2002 10:00 AM

setani shoot,whatevernewfireballgraphicnamehere;

Lomgren 02-09-2002 10:09 AM

if you want to know how the bow is scripted in the game, get one from a chest offline, go into the debugger, find the bow in the drop down menu and viola! your script stares blankly at you...

TDK_RC6 02-09-2002 10:24 AM

:P


i remember there was a bug where you could get offline and use the debugger and steal all the NPCw scripts :P

ZeroFXSM 02-09-2002 10:36 AM

Is shoot like a Gani or a spirite?

Lomgren 02-09-2002 11:48 AM

Quote:

Is shoot like a Gani or a spirite?
It's both but the Gani is the only one that supports a bow image anymore.

Faheria_GP2 02-10-2002 09:26 AM

Quote:

Originally posted by Kadar
shootarrow playerdir-2 ;x
so if the player's dir was 0, you would wind up with -2? I think what you mean to say is (playerdir-2)%4


All times are GMT +2. The time now is 02:05 PM.

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