The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vendor double click
Author Message
eddiedean
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #1
Brick Vendor double click
Hi,

I want all my vendors to open its 'buy' menu when I double click them, not when I say 'buy'.

Is there anyway to get this?

Thanks.
02-12-2014 02:37 AM
Find all posts by this user Like Post Quote this message in a reply
Shidhun
Journeyman
*

Posts: 59
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Jul 2012
Reputation: 1



Post: #2
RE: Vendor double click
[events e_vendor_buy]
on=@dclick
IF (<DISTANCE>>4)
RETURN 1
ENDIF
buy


// Put this on every Vendor-Chardef
TEVENTS=e_vendor_buy
02-12-2014 02:53 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Shidhun's post
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #3
RE: Vendor double click
dialog d_buy maybe, after IF (<DISTANCE>>4)
02-12-2014 05:56 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes mrkarlo's post
eddiedean
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #4
RE: Vendor double click
Thanks!
02-19-2014 05:38 AM
Find all posts by this user Like Post Quote this message in a reply
JohnVeritas
Apprentice
*

Posts: 49
Likes Given: 0
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 2



Post: #5
RE: Vendor double click
Code:
[events e_vendor_buy]
on=@dclick
if (<src.hits> <= 0)
src.sysmessage You can't do it while you're dead.
return 1
elseif (<DISTANCE><4)
src.sdialog d_blahblah // try sdialog
src.ctag.shoppernpc <uid>
return 1
ENDIF


[dialog d_blahblah button]

on=1//buy button
ref1 = <src.ctag.shoppernpc>
if (<ref1.distance> > 4)
src.sysmessage You're too far away from the vendor.
else
blah
blah
buy
endif

If vendor sell things via custom dialogs you must check player lives or dead, how far away from vendor and how many dialogs that player opened. They can buy items while dead, or far far away from vendor. GRTS
02-19-2014 09:48 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)