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=23065)

LiquidIce00 02-05-2002 03:11 AM

onwall2
 
why is it p2p only ?
I mean it only saves time and much ezier to use.

nyghtGT 02-05-2002 03:52 AM

Re: onwall2
 
Quote:

Originally posted by LiquidIce00

it saves time and much ezier to use.

thats why ...

LiquidIce00 02-05-2002 04:01 AM

Re: Re: onwall2
 
Quote:

Originally posted by nyghtGT

thats why ...

:D
but I mean .. its not a big advantage..
You can still get the same effects w/ onwall , its just 1 less function for me to make lol

nyghtGT 02-05-2002 04:08 AM

Re: Re: Re: onwall2
 
Quote:

Originally posted by LiquidIce00

:D
but I mean .. its not a big advantage..
You can still get the same effects w/ onwall , its just 1 less function for me to make lol

i know, its goofy ...
i want to personally be able to redefine the levels x and y co-ordinates, so i could make some sort of graphing calculator ..

TDK_RC6 02-05-2002 04:17 AM

what is onwall2 ??

LiquidIce00 02-05-2002 05:06 AM

Quote:

Originally posted by TDK_RC6
what is onwall2 ??
its like
onwall2 x,y,w,h
so it makes the rectangle for u ;X

lordhelmut 02-05-2002 07:45 AM

Quote:

Originally posted by LiquidIce00


its like
onwall2 x,y,w,h
so it makes the rectangle for u ;X

WOW! that would be really handy for like mining scripts that are confined to certain areas, how would u do it with onwall?

TDK_RC6 02-05-2002 07:57 AM

thats so cool, so you can use onwall2 to have better wall detection right??

LiquidIce00 02-05-2002 08:17 AM

ONWALL2 FOR NON P2P PLZ

Quote:

Originally posted by lordhelmut


WOW! that would be really handy for like mining scripts that are confined to certain areas, how would u do it with onwall?

usually for loop that goes by a certain ammt like .25 or whatever u use then check for each spot ..

nyghtGT 02-05-2002 04:03 PM

Quote:

Originally posted by LiquidIce00


its like
onwall2 x,y,w,h
so it makes the rectangle for u ;X

so:
NPC Code:

NPC Code:

if (created) {
onwall2 30,30,2,2;
timeout=1;
}
if (timeout) {
if (onwall(playerx,playery)) {
message Onwall.;
} else {
message Offwall;
}
timeout=1;
}




Would that be proper format?

OR

NPC Code:

NPC Code:

if (created) {
timeout=1;
}
if (timeout) {
if (onwall2(30,30,2,2)) {
message Onwall.;
} else {
message Offwall.;
}
timeout=1;
}




nyghtGT 02-06-2002 03:13 AM

Quote:

Originally posted by Kaimetsu


The latter was correct.

what do you mean ? 'latter' ?

nyghtGT 02-06-2002 03:20 AM

Quote:

Originally posted by Kaimetsu


I find dictionaries to be helpful in such times.

i'm poor, dun got one ... :D

nyghtGT 02-06-2002 03:24 AM


its 'something after another, towards the ends' erik !
god your stupid ...

LiquidIce00 02-06-2002 04:01 AM

lat·ter (ltr)
adj.
Being the second of two persons or things mentioned: Between captain and major, the latter is the higher rank. See Usage Note at former2.
Near or nearer to the end: the latter part of the book.
Further advanced in time or sequence; later: a style that has been revived in latter times.

btedji 02-06-2002 04:03 AM

Quote:

Originally posted by nyghtGT


OR

NPC Code:

NPC Code:

if (created) {
timeout=1;
}
if (timeout) {
if (onwall2(30,30,2,2)) {
message Onwall.;
} else {
message Offwall.;
}
timeout=1;
}




how would you do that with just onwall?

LiquidIce00 02-06-2002 04:45 AM

Quote:

Originally posted by Kaimetsu


By checking multiple places.

i dislike onwall.
Even when I do arrayed values like .25,.5 and so on and do loops checking it, it still doesnt work very well. Onwall2 saves that trouble.

nyghtGT 02-06-2002 04:50 AM

Quote:

Originally posted by Kaimetsu


By checking multiple places.

i think he may have been asking me what i need to do ...

TDK_RC6 02-06-2002 04:53 AM

Quote:

Originally posted by LiquidIce00


i dislike onwall.
Even when I do arrayed values like .25,.5 and so on and do loops checking it, it still doesnt work very well. Onwall2 saves that trouble.

then use this, this is real great onwall detection

NPC Code:

onwall(playerx+1.5+vecx(playerdir)*2,playery+2+vec y(playerdir)*2)


LiquidIce00 02-06-2002 04:54 AM

Quote:

Originally posted by TDK_RC6


then use this, this is real great onwall detection

NPC Code:

onwall(playerx+1.5+vecx(playerdir)*2,playery+2+vec y(playerdir)*2)


that would check 1 tile (16x16) the player is few tiles wide/high

Saga2001 02-06-2002 07:07 AM

i would love to have onwall2...cause everytime i use onwall...it gets all messed up and stuck in the wall, i understand it, but i hate doing it...lol. ;P

TDK_RC6 02-06-2002 07:38 AM

then try this
NPC Code:

onwall(playerx+1.5+vecx(playerdir)*2,playery+2+vec y(playerdir)*2)&&onwall(playerx+1.5+vecx(playerdir )*2,playery+3+vecy(playerdir)*2)


Saga2001 02-06-2002 11:36 AM

nice. ;)

TDK_RC6 02-06-2002 08:18 PM

Quote:

Originally posted by Kaimetsu
You people just need to think about it all logically and maybe do some sketches on paper. It all makes sense if you put enough thought to it.
who are you talking to??

LiquidIce00 02-07-2002 03:07 AM

Quote:

Originally posted by Kaimetsu
You people just need to think about it all logically and maybe do some sketches on paper. It all makes sense if you put enough thought to it.
yeah but onwall2 is still way better.
I also think that if you do like check by .1 space or something it just ignores it. and there are some other things u have to apply.

Saga2001 02-08-2002 02:25 AM

Quote:

Originally posted by Kaimetsu


If you check by 0.1 then it's just stupid anyway. I've made a system that replicates it just fine.

True you can test it easy, its not hard, but you know the people are (me included), if it takes less to do it, why can't we have it, I think that non-p2p should have it, but since we don't all we can do is hope maybe Stefan will take note of this annd make it non-p2p. Untill than all we have is onwall() so use the one that the TDK guy posted. ;).

LiquidIce00 02-08-2002 03:02 AM

Quote:

Originally posted by Kaimetsu


His is rather flawed. It only checks two tiles at most.

But did Stefan actually say it was P2P only? If so, where?

well .. its not supported for free (at least last time i checked)
only the npc server knows it


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

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