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
NPC Rates
Author Message
Abuelox
Journeyman
*

Posts: 64
Likes Given: 0
Likes Received: 7 in 7 posts
Joined: Apr 2010
Reputation: 0

Alteria Games

Post: #1
NPC Rates
I'm looking for a system which applies a percentage rate to get the money from the sales of each NPC (of each individual purchase by region) need help with this and do not know where to start, if someone is kind enough to help me .. . thank you very much

I worth a little explanation of how to get a certain percentage of the total sale of an NPC, is what I'm stuck, thanks.
(This post was last modified: 10-08-2012 08:30 PM by Abuelox.)
10-08-2012 08:29 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: NPC Rates
You'll be wanting the region tag:

TAG.VENDORMARKUP - This value is added to the markup percentage that vendors apply to their buy and sell prices. Since the default markup is 15%, this means that a vendor will sell something worth 100gp at 115gp and buy it back for 85gp. If you set this tag to -15 the markup will be cancelled out to 0%, or you can raise/lower it if you want your vendor to sell things at a higher/lower price. If the vendor has this tag set directly on them then this region TAG will not be used.

[Image: 2nis46r.jpg]
10-09-2012 01:48 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Abuelox
Journeyman
*

Posts: 64
Likes Given: 0
Likes Received: 7 in 7 posts
Joined: Apr 2010
Reputation: 0

Alteria Games

Post: #3
RE: NPC Rates
Very thanks for that function, but does this money to where it goes remain in the seller?

I am trying to mount a system of taxes, and the truth not like to begin it, neither I am an expert in scripts.

Thanks again Mordaunt!
10-09-2012 06:14 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #4
RE: NPC Rates
.... I'm not sure. I have an idea of how to do taxes but I wrote completely new buy / sell menus for the entire system. I'm not sure you can do this with default system.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
10-09-2012 06:38 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #5
RE: NPC Rates
(10-09-2012 06:38 AM)Anarch Cassius Wrote:  .... I'm not sure. I have an idea of how to do taxes but I wrote completely new buy / sell menus for the entire system. I'm not sure you can do this with default system.
Pictures?! Big Grin

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-09-2012 06:52 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)