Modify sell/buy price at runtime

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am
Location: Italy

Modify sell/buy price at runtime

Post by xeon »

Suppose I want to modify on the fly, without changing itemdesc.cfg and rebooting, buy/sell price for an item. I could save the value somewhere, but how I make POL use them? Should I packethook packet 0x74 (Open Buy Window)? Reading its description, seems quite complicated to packethook, as there are related packets before
Anyone did something similar before?
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: Modify sell/buy price at runtime

Post by Turley »

Item.buyprice/sellprice are members with write access, check: docs.polserver.com/pol099/objref.php#Item
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am
Location: Italy

Re: Modify sell/buy price at runtime

Post by xeon »

Aaaaaa thanks Turley!!!!!!!
Post Reply