Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-01-2003, 04:41 AM
Kappa00p2p Kappa00p2p is offline
Registered theRapist
Kappa00p2p's Avatar
Join Date: Jul 2003
Posts: 198
Kappa00p2p is an unknown quantity at this point
Send a message via AIM to Kappa00p2p
mousex/mousey help

could anyone help me with a script im making? i made most of it but i cant figure out how to make the player face the mouse direction at all times. if anyone could help me it would be much help for my server. An similar script is on kingdoms,when u move a skill around the screen... i want somthing like that but without having the mouse to be held down for it to work. ty
__________________

-Kappa
  #2  
Old 11-01-2003, 05:07 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
getdir
  #3  
Old 11-01-2003, 05:16 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by Python523
getdir
(delta x,delta y)
  #4  
Old 11-01-2003, 06:37 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
getdir(x value of the mouse,y value of the mouse)

this will give you a number between 0 and 3
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
  #5  
Old 11-01-2003, 06:39 AM
Kappa00p2p Kappa00p2p is offline
Registered theRapist
Kappa00p2p's Avatar
Join Date: Jul 2003
Posts: 198
Kappa00p2p is an unknown quantity at this point
Send a message via AIM to Kappa00p2p
hey i also need to know when u use the shoot command... what part do u need to make mousex,and mousey to make it shoot where the mouse is?

[edit] i tried getdir(mouse x val,mouse y val) <useing mousex/y and it isnt working right. it only will make the direction right when the mouse is in the upper right hand corner and the rest of the time the player is facing down. [/edit]
__________________

-Kappa
  #6  
Old 11-01-2003, 07:02 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
getdir(delta x,delta y)

If means the spacial (x,y) difference between the object and the thing towards which it should point.

Shame on you, ForgottenLegacy. Feeding newbies scripts is bad enough, but you could at least use one that works.
__________________
  #7  
Old 11-01-2003, 07:10 AM
Kappa00p2p Kappa00p2p is offline
Registered theRapist
Kappa00p2p's Avatar
Join Date: Jul 2003
Posts: 198
Kappa00p2p is an unknown quantity at this point
Send a message via AIM to Kappa00p2p
lol!
i cant figure this out...
__________________

-Kappa
  #8  
Old 11-01-2003, 07:27 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
asking for full scripts... not making an effort to try to do the script even when the answer is right in front of you, closed, read the forum rules
Closed Thread


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 09:28 AM.


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