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

Lua Help me with the spear:P>?

Rossii

Member
Joined
Mar 27, 2012
Messages
366
Reaction score
6
Location
England
PHP:
	<item id="2389" article="a" name="spear" plural="spears">
		<attricute key="swing" value="true" />
		<attribute key="weight" value="2000" />
		<attribute key="attack" value="30" />
		<attribute key="weaponType" value="distance" />
		<attribute key="shootType" value="spear" />
		<attribute key="range" value="5" />
		<attribute key="breakChance" value="0" />
		<attribute key="ammoAction" value="moveback" />


PHP:
	<attricute key="swing" value="true" />

i tried to add it into items but ppl told me to add it into weapons where do i add it in weapons?!
 
You just need to add it to items.xml.

Like how i did it?


<item id="2389" article="a" name="spear" plural="spears">
<attricute key="swing" value="true" />
<attribute key="weight" value="2000" />
<attribute key="attack" value="30" />
<attribute key="weaponType" value="distance" />
<attribute key="shootType" value="spear" />
<attribute key="range" value="5" />
<attribute key="breakChance" value="0" />
<attribute key="ammoAction" value="moveback" />
 
Should be attribute... not attricute o.O
BUT I think that function goes into weapons.xml



so like this is weapons.xml

<distance id="2389" level="7" unproperly="1" event="function" value="default"> <!-- spear -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
<attribute key="swing" value="true" />
</distance>
 
XML:
<distance id="2389" level="7" unproperly="1" event="function" swing="true" value="default"> <!-- spear -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>
 
Back
Top