Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Need help with a script.. (https://forums.graalonline.com/forums/showthread.php?t=27565)

ZeroFXSM 04-16-2002 05:32 AM

Need help with a script..
 
I am working on a whole new concept of a bow and arrow. But first. since I am a newbie scripter, I cannot get what I want done. I have made grahpics for each thing.

Those who are familiar with the old script called "JF Targeting" know that once you hit D a targeter thing comes up. I want something like that. Where when you hit D, a target (which I already made) comes up. and when you hit D. it fires whatever to that target... (That can be worked out later..)

So any helpers? Or explain some code that could help me?

(I want the target visiable only to the player)

I don't want anyone to give me a script and say here. I want some key pointers. And don't just tell me "use this" for I have no idea what you may be talking about.

ZeroFXSM 04-16-2002 06:41 AM

Help..?

Neonight 04-16-2002 07:18 AM

Well, first you may want to make a targetting system graphic...
Then you can use something like
if(weaponfired){setgif2;set this.type=1;} (this.type=1 is used for aiming this)
and such to set it, then use this.type=2 for firing the weapon..

That should work, but if you still have trouble, I'll give you another way to do it.

ZeroFXSM 04-17-2002 01:40 AM

Quote:

Originally posted by Neonight
Well, first you may want to make a targetting system graphic...
Then you can use something like
if(weaponfired){setgif2;set this.type=1;} (this.type=1 is used for aiming this)
and such to set it, then use this.type=2 for firing the weapon..

That should work, but if you still have trouble, I'll give you another way to do it.

:confused:

sorry its as if your speaking a whole new language.. :(

I have a targeter image, and a bow image completed: added:


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

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