Por Diego767, 04 de mar. de 2020 em Scripts
info
Grupo: Campones
Registrado: 15/02/20
Posts: 7
Reputação: 0
Boa tarde galera,
Dupliquei um item com o intuito de editar o mesmo, com atributos melhores.
O item esta ok, criei id, editei items.xml e adicionei o mesmo em movements.
Consigo criar o item com o GOD e ao dar look eu enxergo exatamente o que eu editei, porem ao equipar o char com o item, o char nao ganha os atributos.
Alguem sabe o que pode ser?
items.xml
<item id="36759" name="frozen boots"> <attribute key="description" value="It can only be wielded properly by druids of level 500 or higher." /> <attribute key="weight" value="1500" /> <attribute key="armor" value="10" /> <attribute key="slotType" value="feet" /> <attribute key="magiclevelpoints" value="3" /> <attribute key="absorbPercentIce" value="7" /> <attribute key="imbuingSlots" value="1" />
movements.xml
<movevent event="Equip" itemid="36759" level="500" slot="feet" event="function" value="onEquipItem"> <!-- Frozen Boots --> <vocation id="1" /> <vocation id="5" showInDescription="0" /> <vocation id="2" /> <vocation id="6" showInDescription="0" /> </movevent> <movevent type="DeEquip" itemid="36759" level="500" slot="feet" event="function" value="onEquipItem">
Editado Março 4 por Diego767
Registrado: 05/05/15
Posts: 96
Reputação: +77
Ao invés de
event="function" value="onEquipItem"
tente
function="onEquipItem"
E no seu DeEquip você colocou a function como onEquipItem, deveria ser onDeEquipItem
info
Grupo: Campones
Registrado: 15/02/20
Posts: 7
Reputação: 0
Boa tarde galera,
Dupliquei um item com o intuito de editar o mesmo, com atributos melhores.
O item esta ok, criei id, editei items.xml e adicionei o mesmo em movements.
Consigo criar o item com o GOD e ao dar look eu enxergo exatamente o que eu editei, porem ao equipar o char com o item, o char nao ganha os atributos.
Alguem sabe o que pode ser?
items.xml
<item id="36759" name="frozen boots">
<attribute key="description" value="It can only be wielded properly by druids of level 500 or higher." />
<attribute key="weight" value="1500" />
<attribute key="armor" value="10" />
<attribute key="slotType" value="feet" />
<attribute key="magiclevelpoints" value="3" />
<attribute key="absorbPercentIce" value="7" />
<attribute key="imbuingSlots" value="1" />
movements.xml
<movevent event="Equip" itemid="36759" level="500" slot="feet" event="function" value="onEquipItem"> <!-- Frozen Boots -->
<vocation id="1" />
<vocation id="5" showInDescription="0" />
<vocation id="2" />
<vocation id="6" showInDescription="0" />
</movevent>
<movevent type="DeEquip" itemid="36759" level="500" slot="feet" event="function" value="onEquipItem">
Editado Março 4 por Diego767