Brudny
New Member
Hello. I would be nice if someone helped me add a new type of ammunition.
Currently I have added M4A1 and M4A1 Ammo to spirte, tibia.dat, items.otb and
items.xml
<item id="10546" article="an" name="M4A1 Ammo" plural="M4A1 Ammo">
<attribute key="weight" value="90"/>
<attribute key="attack" value="43"/>
<attribute key="weaponType" value="ammunition"/>
<attribute key="ammoType" value="m4a1ammo"/>
<attribute key="shootType" value="infernalbolt"/>
<attribute key="ammoAction" value="removecount"/>
<attribute key="range" value="7"/>
</item>
<item id="10545" article="the" name="M4A1">
<attribute key="weight" value="12000"/>
<attribute key="slotType" value="two-handed"/>
<attribute key="weaponType" value="distance"/>
<attribute key="ammoType" value="m4a1ammo"/>
<attribute key="range" value="7"/>
<attribute key="hitChance" value="20"/>
<attribute key="attack" value="350"/>
</item>
but server says of course "Warning: [Items::loadFromXml] Unknown ammoType m4a1ammo
Warning: [Items::loadFromXml] Unknown ammoType m4a1ammo"
so how i can create new type of ammo?
Currently I have added M4A1 and M4A1 Ammo to spirte, tibia.dat, items.otb and
items.xml
<item id="10546" article="an" name="M4A1 Ammo" plural="M4A1 Ammo">
<attribute key="weight" value="90"/>
<attribute key="attack" value="43"/>
<attribute key="weaponType" value="ammunition"/>
<attribute key="ammoType" value="m4a1ammo"/>
<attribute key="shootType" value="infernalbolt"/>
<attribute key="ammoAction" value="removecount"/>
<attribute key="range" value="7"/>
</item>
<item id="10545" article="the" name="M4A1">
<attribute key="weight" value="12000"/>
<attribute key="slotType" value="two-handed"/>
<attribute key="weaponType" value="distance"/>
<attribute key="ammoType" value="m4a1ammo"/>
<attribute key="range" value="7"/>
<attribute key="hitChance" value="20"/>
<attribute key="attack" value="350"/>
</item>
but server says of course "Warning: [Items::loadFromXml] Unknown ammoType m4a1ammo
Warning: [Items::loadFromXml] Unknown ammoType m4a1ammo"
so how i can create new type of ammo?