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 Gold
Author Message
Lightsource
Apprentice
*

Posts: 9
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Dec 2013
Reputation: 0



Post: #3
RE: Vendor Gold
(02-14-2017 05:05 AM)Coruja Wrote:  m_itEqBankBox.m_Check_Restock is an alias for MORE2, so maybe you can use "RESTOCK + MORE2 = 123456789" on scripts

on source code you also must take care with variable types like char/short/int/long/etc. Each type have its signal or max limits, so if you use 'unsigned short' to store signed values this will return wrong value, or storing values like 160.000 on unsigned short (max value = 65.535) will also make it return wrong value, etc

Thanks for your reply! I have just found out that info about MORE2.

Now, about that gump price, at grayproto.h it says at ln 2754:
Code:
NWORD m_price;    // Hmm what if price is > 65K?

So this basically means that it is really a short and I can't by any means send prices over 65.535gp to the client at a Sell Operation?
02-14-2017 05:51 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Vendor Gold - Lightsource - 02-14-2017, 02:31 AM
RE: Vendor Gold - Coruja - 02-14-2017, 05:05 AM
RE: Vendor Gold - Lightsource - 02-14-2017 05:51 AM

Forum Jump:


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