• 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] sell/buy items if you have done quest

Borcel

New Member
Joined
Jan 22, 2009
Messages
8
Reaction score
0
Hello!

I have small problem.
Someone can do script something like that:

if getPlayerStorageValue(cid,2000) == 1 then
shopModule:addSellableItem({'snakebite rod', 'snakebite'}, 2182, 250,'snakebite rod')
shopModule:addSellableItem({'moonlight rod', 'moonlight'}, 2186, 500, 'moonlight rod')
shopModule:addSellableItem({'necrotic rod', 'necrotic'}, 2185, 2500, 'necrotic rod')
end

I know that its wrong so i looking for something like that but working ;)

Please help

ps. (shopModule:addSellableItem this function is important because it must shows in trade window ;) )

Sorry for language ;)
 
Hello!

I have small problem.
Someone can do script something like that:



I know that its wrong so i looking for something like that but working ;)

Please help

ps. (shopModule:addSellableItem this function is important because it must shows in trade window ;) )

Sorry for language ;)

just add something like this:

if getPlayerStorageValue(cid,2000) == 1 then
//add selling code here

else
doSendPlayerMsg('sorry you cant buy items from this shop yet');

somewhat like this...
 
Back
Top