Graal Forums

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

VeX_RaT_Boy 01-05-2004 08:19 PM

onwall2..
 
if (!onwall2(playerx,playery,playerx+12,playery+12)) {
//my script
}

It's not working....anyone know why?

Loriel 01-05-2004 08:50 PM

I think the last two parameters are width and height.

Thought 01-05-2004 09:02 PM

Quote:

Originally posted by Loriel
I think the last two parameters are width and height.
Yep.

VeX_RaT_Boy 01-05-2004 09:57 PM

Quote:

Originally posted by Loriel
I think the last two parameters are width and height.
Oh... So it would be playerx,playery,12,12 then?

Loriel 01-05-2004 10:06 PM

Assumably.

VeX_RaT_Boy 01-05-2004 10:17 PM

Quote:

Originally posted by Loriel
Assumably.
if (!onwall2(playerx,playery,12,12))

Still not working...:(

Hevaricubed 01-05-2004 10:21 PM

Its serverside only

VeX_RaT_Boy 01-05-2004 10:30 PM

Quote:

Originally posted by Hevaricubed
Its serverside only
I know. The script is serverside...

(It's clientside in V3 too)

Goboom 01-05-2004 10:30 PM

Quote:

Originally posted by VeX_RaT_Boy

if (!onwall2(playerx,playery,12,12))

Still not working...:(

Correct me if I am wrong but the format is onwall2 x,y,width,height, its for rectangles, and only works with an NPC Server.

VeX_RaT_Boy 01-05-2004 10:31 PM

Quote:

Originally posted by Goboom
Correct me if I am wrong but the format is onwall2 x,y,width,height, its for rectangles, and only works with an NPC Server.
Your correct. My script is on a NPC Server. It is serverside. I can't see anything wrong. Can you?

Hevaricubed 01-05-2004 11:01 PM

Is it seeing the player as a wall?

VeX_RaT_Boy 01-05-2004 11:09 PM

Quote:

Originally posted by Hevaricubed
Is it seeing the player as a wall?
<3 R0bin. That was the problem..Back to work :D

Loriel 01-05-2004 11:45 PM

noplayeronwall; ?

VeX_RaT_Boy 01-05-2004 11:58 PM

Quote:

Originally posted by Loriel
noplayeronwall; ?
:megaeek: Never knew that there was a command called that...Thanks :)


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

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