Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Basket Ball Goal (https://forums.graalonline.com/forums/showthread.php?t=15914)

Poogle 11-01-2001 06:59 AM

Basket Ball Goal
 
Why doesnt this work?

dontblock;
drawoverplayer;
if (peltwithnpc) {
message SCORE FOR BLUE TEAM!;
sleep 3;
message ;
}

TDO2000 11-01-2001 08:14 AM

it only works if the ball is an NPC using
canbecarried
and then it's trown at the goal
else you'll have to check the x and y positions of the ball

Poogle 11-01-2001 08:27 AM

Quote:

Originally posted by TDO2000
it only works if the ball is an NPC using
canbecarried
and then it's trown at the goal
else you'll have to check the x and y positions of the ball

I hit it with the ball npc and nothing happens

Poogle 11-01-2001 08:34 AM

Okay I made it work now I need help with the ball:canbecarried;
canbepulled;
canbepushed;
if (strequals(#l,libasketball_2.nw)&&strequals(#c,new ball)&&strequals(#g,Events Team)) {
x = -1;
y = 31;
}
if (strequals(#l,libasketball_1.nw)&&strequals(#c,new ball)&&strequals(#g,Events Team)) {
x = 62;
y = 31;
}

it dont warp the ball

TDO2000 11-01-2001 08:49 AM

have u ever thought about playerchats in this script?

Poogle 11-01-2001 08:52 AM

Quote:

Originally posted by TDO2000
have u ever thought about playerchats in this script?
Hrmm no im used to it working anyway but ill try that

Poogle 11-01-2001 08:53 AM

Quote:

Originally posted by Poogle
Hrmm no im used to it working anyway but ill try that
Doesnt work

TDO2000 11-01-2001 08:59 AM

yay and it needs to be #L not #l =)
so the next thing if u would say new Ball it would always apear at
x=62

so i would add something like

&& x >31

or something =)

Poogle 11-01-2001 09:03 AM

Quote:

Originally posted by TDO2000
yay and it needs to be #L not #l =)
so the next thing if u would say new Ball it would always apear at
x=62

so i would add something like

&& x >31

or something =)

Thank you I got it! =)

Faheria_GP2 11-01-2001 09:55 AM

this is where NATs come in handy, leave NPC-Scripting to the experts

nyghtGT 11-01-2001 04:31 PM

Quote:

Originally posted by Faheria_GP2
this is where NATs come in handy, leave NPC-Scripting to the experts
its not really that hard ... just sloppy scripting really ....


All times are GMT +2. The time now is 12:11 PM.

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