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 12-14-2004, 04:08 PM
p2p_Sir_Link p2p_Sir_Link is offline
Banned
p2p_Sir_Link's Avatar
Join Date: Nov 2004
Posts: 425
p2p_Sir_Link is an unknown quantity at this point
lay2???

PHP Code:
if (playerchats&&startswith(itemset,#c)) {tokenize #c;
if (rightmousebutton&&timeout&&this.active=1){lay2 
#t(1),mousex,mousey;}} 
Yea, so it's not working, the timeout and this.active are there because it's part of a left mouse button script. Some assitance in trying to figure out how to get lay to work?
Reply With Quote
  #2  
Old 12-14-2004, 05:20 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by p2p_Sir_Link
PHP Code:
if (playerchats&&startswith(itemset,#c)) {tokenize #c;
if (rightmousebutton&&timeout&&this.active=1){lay2 
#t(1),mousex,mousey;}} 
PHP Code:
if (playerchats&&startswith(itemset,#c)) {tokenize #c;
if(timeout){
 if (
rightmousebutton&&this.active=1){
   
lay2 #t(1),mousex,mousey;
  


__________________

Reply With Quote
  #3  
Old 12-14-2004, 05:26 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
I may be wrong but lay/lay2 are deprecated commands.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #4  
Old 12-14-2004, 06:32 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by osrs
I may be wrong but lay/lay2 are deprecated commands.
yea i think so too, better use putnpc2
__________________

Reply With Quote
  #5  
Old 12-14-2004, 07:01 PM
p2p_Sir_Link p2p_Sir_Link is offline
Banned
p2p_Sir_Link's Avatar
Join Date: Nov 2004
Posts: 425
p2p_Sir_Link is an unknown quantity at this point
would putnpc2 still work with the erm, items index?
Reply With Quote
  #6  
Old 12-14-2004, 07:21 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 p2p_Sir_Link
would putnpc2 still work with the erm, items index?
No.
__________________
Reply With Quote
  #7  
Old 12-14-2004, 07:36 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
you'd have to triggeraction to serverside and use putnpc2 as
PHP Code:
if(actionserverside){
   
putnpc2 strtofloat(#p(0)),strtofloat(#p(1)){
     
script;
   };
}
//#CLIENTSIDE
 
if(timeout){
  if(
leftmousebuttontriggeraction 0,0,serverside,weaponname,#v(mousex),#v(mousey);

__________________

Reply With Quote
  #8  
Old 12-15-2004, 05:26 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
lay2 is just fine - it's a clientside command, great for laying money (the npcserver requires that you actually have the money before laying it, it will be deducted from your rupees) or other stuff from the game engine

You will probably want two event blocks: one for playerchats which tokenizes the chat text and sets a string to #t(1), and a second which checks the mousedown event, checks the status of the rightmousebutton flag, and does your lay2.
Reply With Quote
  #9  
Old 12-15-2004, 06:43 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
which ever , they both work =p
__________________

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 09:06 PM.


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