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 11-14-2005, 12:06 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
You want it so when you click on someone an action occurs, so you probably want to start with the mouse action, there are several mouse flags that detect mouse action such as
NPC Code:
mousedown


as Lance mentioned, then you probably want it to detect if a player is there so the final action doesnt just pop up out of nowhere even when there's no player there, so you can use
NPC Code:
testplayer(x,y)


that'll return the index of the player at x,y.
now depending on what you want the final action to be, you can use different commands, you can use say2 as you mentioned.

p.s. soo many run-ons
__________________
Reply With Quote
  #2  
Old 11-14-2005, 12:28 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by ZeLpH_MyStiK
NPC Code:
testplayer(x,y)


that'll return the index of the player at x,y.
Is it not testplayer[x,y]?
__________________
Skyld
Reply With Quote
  #3  
Old 11-14-2005, 01:21 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by Skyld
Is it not testplayer[x,y]?
Nope.
Quote:
Originally Posted by commands.rtf
testplayer( x, y ) the index of the player on position (x,y)
Quote:
Originally Posted by scriptfunctions_client.txt
testplayer(float, float) - returns integer
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:36 AM.


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