• 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 Shop Helper

Ravauvial

Member
Joined
Mar 19, 2009
Messages
186
Reaction score
8
Location
Stanwood, Washington, USA
I buy a store, Shop.
Put an NPC Shop Helper in my shop
Trying to get the NPC to recieve Products and store in SQL database, then sell from the database and store gold in my bank accout.


NPC buys a dragon lance (2414) for 3500gp
Joe Smow comes in and says hi, trade, and a list with dragon lance for 4000gp
Joe buys dragon lance and the 4000gp goes into your bank account.

anyone care to give it a try?
 
Set depot ID#:100
The Action ID: looks for the inventory in it the depot ID#:100, and list all Items in that depot for sale. When you buy something from the Depot it removes it. and adds it to your inventory, and removes the amout of the cost.

Is their a way to look into a depot through an NPC?

if player_id==2 and depot_id==100 then list depot_items

Still thinking how to put in prices

maybe I should play around with NPChandler.lua and see if it can be workied in to do this. call it playershop.lua
 
Last edited:
Back
Top