Page 1 of 1

Modify sell/buy price at runtime

Posted: Thu Dec 29, 2016 8:48 am
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?

Re: Modify sell/buy price at runtime

Posted: Sun Jan 01, 2017 5:27 am
by Turley
Item.buyprice/sellprice are members with write access, check: docs.polserver.com/pol099/objref.php#Item

Re: Modify sell/buy price at runtime

Posted: Mon Jan 02, 2017 12:41 am
by xeon
Aaaaaa thanks Turley!!!!!!!