Zoriath
New Member
- Joined
- Mar 26, 2008
- Messages
- 1,496
- Reaction score
- 4
First of all, we'll start off changing the item properties. So go to data/items/items.xml and search for "firewalker boots", you will go to itemid 9932.
Just remove <attribute key="absorbPercentFire" value="90"/> from both itemid 9932 as from 9933.
Okay, now go to itemid 1487 and remove <attribute key="damage" value="20"/>.
Then just go to the next itemid (1488) and remove <attribute key="damage" value="10"/>.
If you've done that, jump to itemid 1492 and remove <attribute key="damage" value="20"/>, just as you did twice before.
Go to the next itemid again, 1493 and remove <attribute key="damage" value="10"/>.
Now we've done that, open up data/movements/movements.xml.
Add this (doesn't really matter where you add it):
Then make a file called firewalker.lua in data/movements/scripts/.
Add this in that file:
Then you're done! Congratulations
Kind Regards,
Zoriath
Just remove <attribute key="absorbPercentFire" value="90"/> from both itemid 9932 as from 9933.
Okay, now go to itemid 1487 and remove <attribute key="damage" value="20"/>.
Then just go to the next itemid (1488) and remove <attribute key="damage" value="10"/>.
If you've done that, jump to itemid 1492 and remove <attribute key="damage" value="20"/>, just as you did twice before.
Go to the next itemid again, 1493 and remove <attribute key="damage" value="10"/>.
Now we've done that, open up data/movements/movements.xml.
Add this (doesn't really matter where you add it):
PHP:
<!-- Firewalker Boots -->
<movevent type="StepIn" fromid="1487" toid="1488" event="script" value="firewalker.lua"/>
<movevent type="StepIn" fromid="1492" toid="1493" event="script" value="firewalker.lua"/>
<movevent type="StepIn" fromid="1500" toid="1501" event="script" value="firewalker.lua"/>
Then make a file called firewalker.lua in data/movements/scripts/.
Add this in that file:
Lua:
function onStepIn(cid, item, position, fromPosition)
if(getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 or getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9933) then
if(item.itemid == 1487 or item.itemid == 1492 or item.itemid == 1500) then
doCreatureAddHealth(cid, -2, TRUE)
elseif(item.itemid == 1488 or item.itemid == 1493 or item.itemid == 1501) then
doCreatureAddHealth(cid, -1, TRUE)
end
elseif(item.itemid == 1487 or item.itemid == 1492 or item.itemid == 1500) then
doCreatureAddHealth(cid, -20, TRUE)
elseif(item.itemid == 1488 or item.itemid == 1493 or item.itemid == 1501) then
doCreatureAddHealth(cid, -10, TRUE)
end
end
Then you're done! Congratulations
Kind Regards,
Zoriath