BETA VERSION
Do not re-post on other forums as a 'ready script'!
To install it on your TFS 0.3.x (or newer) you need WinMerge or other program that can check difference between files or use TFS 0.3.6pl1
I tested it with few values and looks good (no bug).
Features:
* In NPC .lua file you can set:
.. function that check 'is player extra' (for X vocation/s, players with promotion, pacc... what you want)
.. change of sellable items prices (1000 = 100%, so 15% = 150), you can use values lower then 0
.. change of buyable items prices (1000 = 100%), you can use values lower then 0
Don't make items cheaper for more then 100% (I did not test, but maybe it can crash server) <_<
* Should work sell/buy with TALK and TRADE WINDOW
I don't know what values you must put where to change price + / -, you must test it. Higher value is always better for 'extra' player :thumbup:
Ideas:
-You can use 100% discount to make NPC with some free items for low levels or shop with cheaper runes for 1-40 lvl (check level)
-Shop with cheaper swords, axes, clubs for knights
-Shop with items 'for pacc only' (set NPC prices ~9999999 gp and discount 999 = 99.9%)
NPC FILE:
Under:
Paste:
Report bugs in this thread.
---------------------------------
Anyone need something like that for: travel, promotion, bless, outfit (if required money) ?
Do not re-post on other forums as a 'ready script'!
To install it on your TFS 0.3.x (or newer) you need WinMerge or other program that can check difference between files or use TFS 0.3.6pl1

I tested it with few values and looks good (no bug).
Features:
* In NPC .lua file you can set:
.. function that check 'is player extra' (for X vocation/s, players with promotion, pacc... what you want)
.. change of sellable items prices (1000 = 100%, so 15% = 150), you can use values lower then 0
.. change of buyable items prices (1000 = 100%), you can use values lower then 0
Don't make items cheaper for more then 100% (I did not test, but maybe it can crash server) <_<
* Should work sell/buy with TALK and TRADE WINDOW
I don't know what values you must put where to change price + / -, you must test it. Higher value is always better for 'extra' player :thumbup:
Ideas:
-You can use 100% discount to make NPC with some free items for low levels or shop with cheaper runes for 1-40 lvl (check level)
-Shop with cheaper swords, axes, clubs for knights
-Shop with items 'for pacc only' (set NPC prices ~9999999 gp and discount 999 = 99.9%)
NPC FILE:
Under:
PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
PHP:
npcHandler:setItemsExtraSell(0)
npcHandler:setItemsExtraBuy(150)
function isPlayerExtra(cid)
return getPlayerPremiumDays(cid) > 0
end
Report bugs in this thread.
---------------------------------
Anyone need something like that for: travel, promotion, bless, outfit (if required money) ?
Attachments
-
npc_lib_with_discount-orginal_and_modified-TFS036pl1.zip43.5 KB · Views: 32 · VirusTotal