• 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 Firewalker boots bug

bybbzan

mapper
Joined
Aug 4, 2012
Messages
809
Solutions
2
Reaction score
136
Location
Sweden
Hello guys!

I have some problems with firewalker boots Firewalker_Boots.gif
When you use them and a player attacks you with example "exevo gran mas flam", he hits like 40-50hp..
It should be like real tibia, it should just be protection against fire fields etc.

I followed this but it didnt make any difference?
http://otland.net/f81/firewalker-boots-61140/
Please help me..

Thanks in advance.
 
open items.xml, and replace your firewalking boots with this:
XML:
    <item id="9932" article="a" name="firewalker boots">
        <attribute key="description" value="Wearing these boots reduces the damage gotten from fiery ground." />
        <attribute key="weight" value="950" />
        <attribute key="armor" value="2" />
        <attribute key="slotType" value="feet" />
        <attribute key="absorbPercentFire" value="40" />
        <attribute key="decayTo" value="10022" />
        <attribute key="transformDeEquipTo" value="9933" />
        <attribute key="duration" value="3600" />
        <attribute key="showduration" value="1" />
    </item>
It should work, if not, let me know.
 
open items.xml, and replace your firewalking boots with this:
XML:
    <item id="9932" article="a" name="firewalker boots">
        <attribute key="description" value="Wearing these boots reduces the damage gotten from fiery ground." />
        <attribute key="weight" value="950" />
        <attribute key="armor" value="2" />
        <attribute key="slotType" value="feet" />
        <attribute key="absorbPercentFire" value="40" />
        <attribute key="decayTo" value="10022" />
        <attribute key="transformDeEquipTo" value="9933" />
        <attribute key="duration" value="3600" />
        <attribute key="showduration" value="1" />
    </item>
It should work, if not, let me know.

Well, shouldnt it be absorbPercentFire "90"?
It didnt work anyway.. :/ still hit like 16..
 
I think it should be 90. Just copied an edited items.xml I've got.

Okay, lets try this then,

The onStepIn function in the movement actions, over there you can modify the fire field script to be absorbed if player has boot id in the feet slot. I believe it should work.
 
I think it should be 90. Just copied an edited items.xml I've got.

Okay, lets try this then,

The onStepIn function in the movement actions, over there you can modify the fire field script to be absorbed if player has boot id in the feet slot. I believe it should work.

Wow, easy haha.. Let's take this nice and slow. Did you look at the link i pasted in the first post?
Cuz its something about modify or delete the fire fields etc..
 
Okaythen,never mind my last post.

have you done this?
Code:
local condition = {}
for i = 1, 4 do
	table.insert(condition, createConditionObject(CONDITION_FIRE))
	addDamageCondition(condition[i], 1, 0, -(i == 1 and 20 or i==2 and 2 or i == 3 and 10 or i == 4 and 1))
	addDamageCondition(condition[i], isInArray({1,3},i)==TRUE and 7 or 2, 9000, -(isInArray({1,3},i)==TRUE and 10 or 1))
end

function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == FALSE or getPlayerFlagValue(cid, PlayerFlag_CannotBeAttacked) == FALSE then
		return doRemoveCondition(cid, CONDITION_FIRE), doAddCondition(cid, isInArray({1487,1492},item.itemid) == TRUE and condition[isPlayer(cid) == TRUE and getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 and 2 or 1] or condition[isPlayer(cid) == TRUE and getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 and 4 or 3])
	else
		doSendMagicEffect(position, CONST_ME_POFF)
	end
end
You also need to remove bold red lines from items.xml:
Code:
	<item id="1487" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="replaceable" value="0"/>
[B][COLOR="Red"]		<attribute key="field" value="fire">
			<attribute key="damage" value="20"/>
			<attribute key="ticks" value="10000"/>
			<attribute key="count" value="7"/>
			<attribute key="damage" value="10"/>
		</attribute>[/COLOR][/B]
	</item>
	<item id="1488" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="replaceable" value="0"/>
[B][COLOR="Red"]		<attribute key="field" value="fire">
			<attribute key="ticks" value="10000"/>
			<attribute key="count" value="7"/>
			<attribute key="damage" value="10"/>
		</attribute>[/COLOR][/B]
	</item>

	<item id="1492" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="1493"/>
		<attribute key="duration" value="120"/>
[B][COLOR="Red"]		<attribute key="field" value="fire">
			<attribute key="damage" value="20"/>
			<attribute key="ticks" value="10000"/>
			<attribute key="count" value="7"/>
			<attribute key="damage" value="10"/>
		</attribute>[/COLOR][/B]
	</item>
	<item id="1493" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="1494"/>
		<attribute key="duration" value="120"/>
[B][COLOR="Red"]		<attribute key="field" value="fire">
			<attribute key="ticks" value="10000"/>
			<attribute key="count" value="7"/>
			<attribute key="damage" value="10"/>
		</attribute>[/COLOR][/B]
	</item>
 
This is from "perfect tibian items", should work on 0.3.7, I'll test it later
XML:
	<item id="9932" article="a" name="firewalker boots">
		<attribute key="description" value="Wearing these boots reduces the damage gotten from fiery ground."/>
		<attribute key="weight" value="950"/>
		<attribute key="armor" value="2"/>
		<attribute key="slotType" value="feet"/>
		<attribute key="fieldAbsorbPercentFire" value="90"/>
		<attribute key="decayTo" value="10022"/>
		<attribute key="transformDeEquipTo" value="9933"/>
		<attribute key="duration" value="3600"/>
		<attribute key="showduration" value="1"/>
		<attribute key="showattributes" value="1"/>
	</item>
	<item id="9933" article="a" name="firewalker boots">
		<attribute key="description" value="Wearing these boots reduces the damage gotten from fiery ground."/>
		<attribute key="weight" value="950"/>
		<attribute key="armor" value="2"/>
		<attribute key="slotType" value="feet"/>
		<attribute key="transformEquipTo" value="9932"/>
		<attribute key="stopduration" value="1"/>
		<attribute key="showduration" value="1"/>
	</item>

this has to be registered in movements also, here is what I have:
XML:
		<!-- Firewalker Boots (equipped) -->
	<movevent type="Equip" itemid="9932" slot="feet" level="130" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="9932" slot="feet" event="function" value="onDeEquipItem"/>
		<!-- Firewalker Boots (unequipped) -->
	<movevent type="Equip" itemid="9933" slot="feet" level="130" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="9933" slot="feet" event="function" value="onDeEquipItem"/>
		<!-- Firewalker Boots (worn) -->
	<movevent type="Equip" itemid="10022" slot="feet" level="130" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="10022" slot="feet" event="function" value="onDeEquipItem"/>
 
open items and find underworld robe it protect sd damage copy that line and put it in the fire walker boots and change mort damage to fire damage :D
 
Back
Top