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 03-13-2005, 05:36 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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.
Reply With Quote
  #2  
Old 03-13-2005, 05:55 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
onwall2(x,y,width,height)
__________________

Reply With Quote
  #3  
Old 03-13-2005, 09:22 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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)
Reply With Quote
  #4  
Old 03-13-2005, 10:40 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
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.
__________________
Reply With Quote
  #5  
Old 03-13-2005, 10:56 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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
Reply With Quote
  #6  
Old 03-13-2005, 10:58 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
You ignored all three of my recommendations and did the opposite of my last suggestion. I'm outta here.
__________________
Reply With Quote
  #7  
Old 03-13-2005, 11:13 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Kaimetsu
I'm outta here.
What do you mean by "I'm outta here."

Where are you going?
Reply With Quote
  #8  
Old 03-13-2005, 11:17 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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. ^_^
__________________
Liek omigosh.

Reply With Quote
  #9  
Old 03-13-2005, 11:25 PM
Alexander Alexander is offline
Registered User
Join Date: Apr 2003
Location: California
Posts: 246
Alexander is on a distinguished road
Send a message via AIM to Alexander
>.> onwall2 was always serverside, it is now clientside as well
Reply With Quote
  #10  
Old 03-13-2005, 11:32 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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.
Reply With Quote
  #11  
Old 03-14-2005, 03:50 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
You have Gscript2 enabled, but you're still using gs1 serverside?
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #12  
Old 03-14-2005, 04:19 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Err, Gscript2 works for graal3 only.
Reply With Quote
  #13  
Old 03-14-2005, 04:21 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by KuJi
Err, Gscript2 works for graal3 only.
How is that relevant to scripts that are processed on the serverside?
__________________
Reply With Quote
  #14  
Old 03-14-2005, 05:13 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
I don't even know gscript2, didn't you say you were leaving? Why are you back here?
Reply With Quote
  #15  
Old 03-14-2005, 06:10 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
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.
__________________
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 11:35 PM.


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