Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I am afraid (https://forums.graalonline.com/forums/showthread.php?t=7664)

ownerofbabylon 07-20-2001 12:27 AM

I am afraid
 
I am afraid no one knows how to do what I ask. I am gonna see if anyone knows one more time. How do you make it so a weapon only fires on a certain block of x and y area. Like for fishing or Mining or Pearl Diving?

General 07-20-2001 12:37 AM

Trigger action?

SkooL 07-20-2001 12:46 AM

Re: I am afraid
 
Quote:

Originally posted by ownerofbabylon
I am afraid no one knows how to do what I ask. I am gonna see if anyone knows one more time. How do you make it so a weapon only fires on a certain block of x and y area. Like for fishing or Mining or Pearl Diving?
Mining and Fishing weapons can be fired anywhere...

Silver Knight 07-20-2001 01:44 AM

stuff like if(playerx=>something and player<=something) {level.fireok+=1}
I know I didn't use terms, and I know that isn't correct. But stuff like if(playerx)

grim_squeaker_x 07-20-2001 02:16 AM

NPC Code:
if (created) this.coords={x1,x2,y1,y2};
if (playerenters||timeout) {
if ((playerx in |this.coords[0],this.coords[1]|)&&(playery in |this.coords[2],this.coords[3]|)) set PlayerCanFish;
else unset PlayerCanFish;
timeout=0.05;
}

:rolleyes:

Silver Knight 07-20-2001 02:18 AM

LM ownz us all!

ownerofbabylon 07-20-2001 03:17 PM

damn right

07-20-2001 04:41 PM

I wish I could script. :( I have no Graal skillz. None.

Shard_IceFire 07-21-2001 07:23 AM

I'm a pretty decent scripter, but I'm like...stuck at the scripting ability right below LM's...I just can't frikkin figure out that
NPC Code:

I>=0=+cos=sin


stuff, I just dun get it...I'd ask someone to teach me but no one will.

07-21-2001 08:04 AM

I don't understand even a ( of scripting. :)

ownerofbabylon 07-21-2001 11:56 AM

=D


All times are GMT +2. The time now is 09:30 PM.

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