• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPC function - VIP Player buy item 20% OFF

Dankoo

Active Member
Joined
Sep 4, 2010
Messages
1,007
Reaction score
27
if getplayervipdays >= 1 then

selleable items = 1.2
buyable items = 0.8

--- normal price, for non vip-players = 1.0

*-*
 
hippo_bump.jpg
 
I've never messed with this kind of stuff, but I'll throw out a wild guess for you for something to try.

I was looking at ..\data\npc\lib\npcsystem\modules.lua and theres a function
function ShopModule:callbackOnBuy(cid, itemid, subType, amount, ignoreCap, inBackpacks)
I think it may be called when trying to purchase something through npc trade window, it handles the cost in there.. maybe this might be what you're looking for?
 
Back
Top