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 05-10-2003, 09:59 AM
Onijustin_P2P Onijustin_P2P is offline
Registered User
Join Date: Mar 2003
Location: The Netherlands
Posts: 64
Onijustin_P2P is on a distinguished road
Send a message via AIM to Onijustin_P2P Send a message via Yahoo to Onijustin_P2P
dx,dy

how i get the DX and DY position from the playerx / playery
to a X or Y position ?

*im not good in maths ;x*
__________________
you dont get money for being an ****.....
Reply With Quote
  #2  
Old 05-10-2003, 03:31 PM
Onijustin_P2P Onijustin_P2P is offline
Registered User
Join Date: Mar 2003
Location: The Netherlands
Posts: 64
Onijustin_P2P is on a distinguished road
Send a message via AIM to Onijustin_P2P Send a message via Yahoo to Onijustin_P2P
kai can you post an example plz ?
i dont really get it.... deduct ?
__________________
you dont get money for being an ****.....
Reply With Quote
  #3  
Old 05-10-2003, 04:17 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
how can you expect to script if you dont know what a deduction is x__x
Reply With Quote
  #4  
Old 05-11-2003, 01:43 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Re: dx,dy

Quote:
Originally posted by Onijustin_P2P
how i get the DX and DY position from the playerx / playery
to a X or Y position ?

*im not good in maths ;x*
You probably want this:

NPC Code:

( (x1 - x2)^2 + (y1 - y2)^2 )^.5

__________________
new account: Trevor
Reply With Quote
  #5  
Old 05-11-2003, 10:44 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan is on a distinguished road
Re: Re: dx,dy

Quote:
Originally posted by tlf288


You probably want this:

NPC Code:

( (x1 - x2)^2 + (y1 - y2)^2 )^.5

Hint for Onijustin: That's the distance formula
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #6  
Old 05-11-2003, 02:36 PM
Onijustin_P2P Onijustin_P2P is offline
Registered User
Join Date: Mar 2003
Location: The Netherlands
Posts: 64
Onijustin_P2P is on a distinguished road
Send a message via AIM to Onijustin_P2P Send a message via Yahoo to Onijustin_P2P
lol.... kk ill try it out
thnx all !
__________________
you dont get money for being an ****.....
Reply With Quote
  #7  
Old 05-11-2003, 03:06 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Kaimetsu
Deduction: a-b
There ya go again, trying to use big words to confuse people.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #8  
Old 05-11-2003, 05:32 PM
Jeff Jeff is offline
Registered User
Join Date: Oct 2002
Location: Nebraska, USA
Posts: 707
Jeff is on a distinguished road
Quote:
Originally posted by adam


There ya go again, trying to use big words to confuse people.

Deduction's hardly sesquipedalian!
__________________
Jeff, the Archduke of Dustari
Member of the LAT on Graal The Adventure
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d+ s++:+ !a C++ UL+(UL+++)@ P+ L+(++)>+++ E---- W++@ N- !o ?K w(w--) !O !M@ !V PS- PE+ Y PGP t+ 5 X R tv(tv+) b++(b+)>b++++ DI(DI+) D-- G e->e++++ h! !r y
------END GEEK CODE BLOCK------
Reply With Quote
  #9  
Old 05-11-2003, 06:59 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
Quote:
Originally posted by Jeff



Deduction's hardly sesquipedalian!
But sesquipedalian is sesquipedalian.
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 08:22 PM.


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