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


Messages In This Thread
Vendor double click - eddiedean - 02-12-2014, 02:37 AM
RE: Vendor double click - Shidhun - 02-12-2014, 02:53 AM
RE: Vendor double click - mrkarlo - 02-12-2014, 05:56 AM
RE: Vendor double click - eddiedean - 02-19-2014, 05:38 AM
RE: Vendor double click - JohnVeritas - 02-19-2014 09:48 AM

Forum Jump:


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