• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Soft boots, stop regeneration after relogg.

Zt0ffe

New Member
Joined
Sep 26, 2008
Messages
341
Reaction score
4
Location
Sweden
Hello


Need help with soft boots draining time when you relogg, but you will not gain any mana & health. But if you switch slot and putting them on again they will regenerate mana and health.

Anyone with a clue?

Its for 8.6

Code:
	<item id="2640" article="a" name="pair of soft boots">
		<attribute key="weight" value="800"/>
		<attribute key="slotType" value="feet"/>
		<attribute key="decayTo" value="10021"/>
		<attribute key="transformDeEquipTo" value="6132"/>
		<attribute key="duration" value="14400"/>
		<attribute key="healthGain" value="10"/>
		<attribute key="healthTicks" value="2000"/>
		<attribute key="manaGain" value="20"/>
		<attribute key="manaTicks" value="1500"/>
		<attribute key="showduration" value="1"/>
		<attribute key="showattributes" value="1"/>
	</item>

- - - Updated - - -

- Bump -
 
Last edited:
Some1 have a fix for it? Please...

Code:
        <item id="11113" name="crystal boots">
        <attribute key="slotType" value="feet"/>
        <attribute key="weight" value="2250"/>
        <attribute key="healthGain" value="190"/>
        <attribute key="healthTicks" value="1200"/>
        <attribute key="manaGain" value="190"/>
        <attribute key="manaTicks" value="1200"/>
        <attribute key="showattributes" value="1"/>
    </item>

<movevent type="Equip" itemid="11113" slot="feet" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="11113" slot="feet" event="function" value="onDeEquipItem"/>
 
Try changed
Code:
<item id="2640" article="a" name="pair of soft boots">
        <attribute key="weight" value="800"/>
        <attribute key="slotType" value="feet"/>
        <attribute key="decayTo" value="10021"/>
        <attribute key="transformDeEquipTo" value="6132"/>
        <attribute key="duration" value="14400"/>
        <attribute key="healthGain" value="10"/>
        <attribute key="healthTicks" value="2000"/>
        <attribute key="manaGain" value="20"/>
        <attribute key="manaTicks" value="1500"/>
        <attribute key="showduration" value="1"/>
        <attribute key="showattributes" value="1"/>
    </item>

for

Code:
    <item id="2640" article="a" name="pair of soft boots">
        <attribute key="weight" value="800" />
        <attribute key="slotType" value="feet" />
        <attribute key="decayTo" value="10021" />
        <attribute key="transformDeEquipTo" value="6132" />
        <attribute key="duration" value="14400" />
        <attribute key="healthGain" value="10" />
        <attribute key="healthTicks" value="1000" />
        <attribute key="manaGain" value="20" />
        <attribute key="manaTicks" value="1000" />
        <attribute key="showduration" value="1" />
    </item>

and movements
Code:
    <movevent type="Equip" itemid="2640" slot="feet" event="function" value="onEquipItem"/>
    <movevent type="DeEquip" itemid="2640" slot="feet" event="function" value="onDeEquipItem"/>


--- Updated ---

Tovar you need updated your items.xml and items.otb
why you have old version 8.60
you use itemid: 11113 = crystal boots and 11114 = dragon scale boots
in new items you have 11117 = crystal boots and 11118 = dragon scale boots
you need updated your items.
 
it happen for me before when i added team-battle event in mod but i removed the team-battle event and it worked again
 
Well us have bad items.otb and items.xml old version i am sure your items not have added items zao or get many bugs.. right? you need fixed this.
 
Limos help me to fix this problem... REMEMBER THIS IS IN CASE YOU ADDED TEAM-BATTLE MOD AND THEN SOFT BOOTS DON'T WORK..

In your Team-battle mod search for
Code:
function clearTeamEventStorages(cid)
if isInRecruitArea(cid) or isInFightArea(cid) then
doTeleportThing(cid,getTownTemplePosition(getPlayerTown(cid)))
doSendMagicEffect(getThingPos(cid),10)
end

if isFightOn() then
if isJoiner(cid) then
if isBlue(cid) then
addRedKills()
elseif isRed(cid) then
addBlueKills()
end
doPlayerSendTextMessage(cid,MESSAGE_TYPES["orange"],"You have died in Team-Battle Event.")
end
end

removeFromjoiners(cid)
removeFromBlue(cid)
removeFromRed(cid)
doRemoveConditions(cid, false)

end
(cid)

next to it put this

Code:
function clearTeamEventStoragesX(cid)
if isInRecruitArea(cid) or isInFightArea(cid) then
doTeleportThing(cid,getTownTemplePosition(getPlayerTown(cid)))
doSendMagicEffect(getThingPos(cid),10)
end

if isFightOn() then
if isJoiner(cid) then
if isBlue(cid) then
addRedKills()
elseif isRed(cid) then
addBlueKills()
end
doPlayerSendTextMessage(cid,MESSAGE_TYPES["orange"],"You have died in Team-Battle Event.")
end
end

removeFromjoiners(cid)
removeFromBlue(cid)
removeFromRed(cid)

end

and next search for

Code:
<event type="login" name="teambattleLogin" event="script"><![CDATA[
domodlib('teamFunctions')

function onLogin(cid)
clearTeamEventStorages(cid)
recieveLateReward(cid)

registerCreatureEvent(cid, "teamEventStats")
registerCreatureEvent(cid, "teambattleLogout")
registerCreatureEvent(cid, "teambattleCombat")
return true
end

and change it for

Code:
<event type="login" name="teambattleLogin" event="script"><![CDATA[
domodlib('teamFunctions')

function onLogin(cid)
clearTeamEventStoragesX(cid)
recieveLateReward(cid)

registerCreatureEvent(cid, "teamEventStats")
registerCreatureEvent(cid, "teambattleLogout")
registerCreatureEvent(cid, "teambattleCombat")
return true
end

And done...

Thanks for Limos.
 
For people who have the same problem with a different script, this function in a login script causes this.
Code:
doRemoveConditions(cid, false)

In this case it was a custom added function with that function.
 
Back
Top