• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Npcsystem Error

zayat

New Member
Joined
May 12, 2009
Messages
347
Reaction score
2
Code:
Npc System: subtype missing for parameter items: vial of oil,2006,100
How to fix that??
 
You have to say that there is oil in the vial :P
XML:
<parameter key="shop_buyable" value="vial of oil,2006,100,11"/>
If you need more liquids, look in your LIQUIDS in your doc folder, or here:

LIQUIDS
Code:
[ FLUIDTYPE     NAME            COLOR
        2       blood           RED
        10      lifefluid       RED
        18      lava            RED

        3       beer            BROWN
        11      oil             BROWN
        19      mud             BROWN
        27      rum             BROWN
	35	tea		BROWN

        4       slime           GREEN

        5       lemonade        YELLOW
        13      urine           YELLOW
        21      fruit juice     YELLOW

        6       milk            WHITE
        14      coconut milk    WHITE

        7       manafluid       PURPLE
        15      wine            PURPLE

        9       water           BLUE
]
 
You have to say that there is oil in the vial :P
XML:
<parameter key="shop_buyable" value="vial of oil,2006,100,11"/>
If you need more liquids, look in your LIQUIDS in your doc folder, or here:

LIQUIDS
Code:
[ FLUIDTYPE     NAME            COLOR
        2       blood           RED
        10      lifefluid       RED
        18      lava            RED

        3       beer            BROWN
        11      oil             BROWN
        19      mud             BROWN
        27      rum             BROWN
	35	tea		BROWN

        4       slime           GREEN

        5       lemonade        YELLOW
        13      urine           YELLOW
        21      fruit juice     YELLOW

        6       milk            WHITE
        14      coconut milk    WHITE

        7       manafluid       PURPLE
        15      wine            PURPLE

        9       water           BLUE
]

Where should I add these?
 
If have just done it, for example
XML:
<parameter key="shop_buyable" value="name of the item	,Itemid	,Price	,Subtype(for example oil is 11)"/>
<parameter key="shop_buyable" value="vial of oil	,2006 	,100	,11"/>
 
Yes, and there you have all the npcs, as XML datas (like Sam.xml). You have to search for the NPC, that's selling vial of oil (should be More than One, but Ahmet is One of them).
There you have a line shop_buyable. Put 11 After vial of oil. Hope ist Works now :)
 

Similar threads

Back
Top