Graal Forums

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

KuJi 03-13-2005 05:36 PM

Onwall2 Syntax
 
Anyone have or can explain onwall2?

I know what it does, but I donno like the formula stuff. If possible, please post it here.

Note: I searched all the newfeatures and the npcserver guide and the forums before making this thread.

Evil_Trunks 03-13-2005 05:55 PM

onwall2(x,y,width,height)

KuJi 03-13-2005 09:22 PM

Thx

Err, why isn't this working?

noplayeronwall;
aimx = playerx+.5+vecx(playerdir)*1.75;
aimy = playery+1.5+vecy(playerdir)*1.2;
if (!onwall2(aimx,aimy,2,2)) say2 1;

(Yea, its serversided)

Kaimetsu 03-13-2005 10:40 PM

Quote:

Originally Posted by KuJi
Err, why isn't this working?

Very, very bad question. Specify:
  1. The relevant conditions under which it's running
  2. What you think it should do
  3. What it is doing instead.
Also, include only the significant parts of the script. Construct the smallest possible test case.

KuJi 03-13-2005 10:56 PM

NPC Code:
if (actionserverside) {
if (strequals(#p(0),drop)) {
noplayeronwall;
aimx = playerx+.5+vecx(playerdir)*2;
aimy = playery+1.5+vecy(playerdir)*1.75;
if (!onwall2(aimx,aimy,2,2)) {
// Drop stuff goes here
}
}
}



Not detecting anything, maybe it's gscript2's fault :O

And the thing is, gscript2 --> Graal (Reg) = Doesn't work

Kaimetsu 03-13-2005 10:58 PM

You ignored all three of my recommendations and did the opposite of my last suggestion. I'm outta here.

KuJi 03-13-2005 11:13 PM

Quote:

Originally Posted by Kaimetsu
I'm outta here.

What do you mean by "I'm outta here."

Where are you going?

Ajira 03-13-2005 11:17 PM

Quote:

Originally Posted by KuJi
What do you mean by "I'm outta here."

Where are you going?

He is no longer going to try and help you. ^_^

Alexander 03-13-2005 11:25 PM

>.> onwall2 was always serverside, it is now clientside as well

KuJi 03-13-2005 11:32 PM

I am using it as serverside, and I don't care if he doesn't help me.

I just think it's gscript2, before I had gscript2 enabled it worked.

xManiamaNx 03-14-2005 03:50 AM

You have Gscript2 enabled, but you're still using gs1 serverside? :(

KuJi 03-14-2005 04:19 AM

Err, Gscript2 works for graal3 only.

Kaimetsu 03-14-2005 04:21 AM

Quote:

Originally Posted by KuJi
Err, Gscript2 works for graal3 only.

How is that relevant to scripts that are processed on the serverside?

KuJi 03-14-2005 05:13 AM

I don't even know gscript2, didn't you say you were leaving? Why are you back here?

Kaimetsu 03-14-2005 06:10 AM

Quote:

Originally Posted by KuJi
I don't even know gscript2

Then why did you request that it be enabled on your server?

Quote:

didn't you say you were leaving?
I said that I was going to stop helping you. I am staying true to that declaration.

KuJi 03-14-2005 06:22 AM

Quote:

Originally Posted by Kaimetsu
Then why did you request that it be enabled on your server?

How do you learn something without having the ability to do so?

That's like trying to gani in graal with no gani prog or text editor.

Kaimetsu 03-14-2005 03:25 PM

Quote:

Originally Posted by KuJi
How do you learn something without having the ability to do so?

You don't seem to be attempting to learn.


All times are GMT +2. The time now is 01:18 AM.

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