Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-05-2002, 03:11 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
onwall2

why is it p2p only ?
I mean it only saves time and much ezier to use.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #2  
Old 02-05-2002, 03:52 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: onwall2

Quote:
Originally posted by LiquidIce00

it saves time and much ezier to use.
thats why ...
Reply With Quote
  #3  
Old 02-05-2002, 04:01 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Re: Re: onwall2

Quote:
Originally posted by nyghtGT

thats why ...

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
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #4  
Old 02-05-2002, 04:08 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Re: Re: onwall2

Quote:
Originally posted by LiquidIce00


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 ..
Reply With Quote
  #5  
Old 02-05-2002, 04:17 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
what is onwall2 ??
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #6  
Old 02-05-2002, 05:06 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by TDK_RC6
what is onwall2 ??
its like
onwall2 x,y,w,h
so it makes the rectangle for u ;X
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #7  
Old 02-05-2002, 07:45 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
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?
Reply With Quote
  #8  
Old 02-05-2002, 07:57 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
thats so cool, so you can use onwall2 to have better wall detection right??
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #9  
Old 02-05-2002, 08:17 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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 ..
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #10  
Old 02-05-2002, 04:03 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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;
}



Reply With Quote
  #11  
Old 02-06-2002, 03:13 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Kaimetsu


The latter was correct.
what do you mean ? 'latter' ?
Reply With Quote
  #12  
Old 02-06-2002, 03:20 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Kaimetsu


I find dictionaries to be helpful in such times.
i'm poor, dun got one ...
Reply With Quote
  #13  
Old 02-06-2002, 03:24 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT

its 'something after another, towards the ends' erik !
god your stupid ...
Reply With Quote
  #14  
Old 02-06-2002, 04:01 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #15  
Old 02-06-2002, 04:03 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
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?
Reply With Quote
  #16  
Old 02-06-2002, 04:45 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #17  
Old 02-06-2002, 04:50 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Kaimetsu


By checking multiple places.
i think he may have been asking me what i need to do ...
Reply With Quote
  #18  
Old 02-06-2002, 04:53 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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)

__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #19  
Old 02-06-2002, 04:54 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #20  
Old 02-06-2002, 07:07 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #21  
Old 02-06-2002, 07:38 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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)

__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #22  
Old 02-06-2002, 11:36 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
nice.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #23  
Old 02-06-2002, 08:18 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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??
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #24  
Old 02-07-2002, 03:07 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #25  
Old 02-08-2002, 02:25 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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. .
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #26  
Old 02-08-2002, 03:02 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:48 PM.


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