Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   lay2??? (https://forums.graalonline.com/forums/showthread.php?t=56434)

p2p_Sir_Link 12-14-2004 04:08 PM

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?

ZeroTrack 12-14-2004 05:20 PM

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;
  




osrs 12-14-2004 05:26 PM

I may be wrong but lay/lay2 are deprecated commands.

ZeroTrack 12-14-2004 06:32 PM

Quote:

Originally Posted by osrs
I may be wrong but lay/lay2 are deprecated commands.

yea i think so too, better use putnpc2

p2p_Sir_Link 12-14-2004 07:01 PM

would putnpc2 still work with the erm, items index?

Kaimetsu 12-14-2004 07:21 PM

Quote:

Originally Posted by p2p_Sir_Link
would putnpc2 still work with the erm, items index?

No.

ZeroTrack 12-14-2004 07:36 PM

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);



Lance 12-15-2004 05:26 AM

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.

ZeroTrack 12-15-2004 06:43 PM

which ever , they both work =p


All times are GMT +2. The time now is 07:47 PM.

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