• 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!

Patch 10 Bug With NPCs Selling Fluids

Commoner

New Member
Joined
Jul 8, 2008
Messages
3
Reaction score
0
Lines in an NPC Script similar to the ones below were working fine in previous versions of The Forgotten Server but seem to be out of whack in this distro (Patch 10: Rev. 1073).

shopModule:addBuyableItem({'beer','mug of beer'},2012,2,3,'mug of beer')
shopModule:addBuyableItem({'wine','cup of wine'},2013,3,15,'cup of wine')

Directly in the NPC.XML file I've also tried :

<parameter key="module_shop" value="1" />
<parameter key="shop_buyable" value="
beer,2012,2,3;
wine,2013,3,15/>

The above lines used to make the npc sell mugs of beer and cups of wine for 2 and 3 gold respectively.

At the moment, however, the behavior seems extremely erratic. First of all the items are listed simply as mug, cup, vial, jug, flask, etc under the trade menu. Normally mug of beer or cup of wine would show up. In addition, you can no longer sell more than one mug, cup, etc. of different subtypes on the same npc. Only the first one will be displayed. Thus you can not sell mugs of beer and mugs of milk on the same merchant.

When you right click on the item's icon in the trade menu or purchase the item in question it can apparently contain fluids. However, the fluids are also out of whack and do not follow the standards described in \doc\LIQUIDS

By experimenting, I found out the subtypes seem to work in this manner

0 = Empty (correct)
1 = Water (correct)
2 = Mana Fluid
3 = Beer (correct)
4 = Empty
5 = Blood
6 = Empty
7 = Slime
8 = Lemonade
9 = Milk
10 and above = Empty

I should note here that I only tested subtypes in stores up to 23. I was not able to identify any number associated fluids such as wine, rum, life fluid, fruit juice, etc. which effectively makes it impossible to sell them in NPC Shops.
 
Last edited:
Back
Top