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

Custom soft boots dont work after relog.

ohman

Member
Joined
Oct 24, 2008
Messages
294
Reaction score
8
Location
Sweden
HI! When a player have the custom soft boots on there feet and relog the boots dont work. They work again if they take them off and put them on again.

My item.xml
Code:
    <item id="2358" name="Custom boots">
        <attribute key="weight" value="1200" />
        <attribute key="slotType" value="feet" />
        <attribute key="healthGain" value="10" />
        <attribute key="healthTicks" value="2000" />
        <attribute key="manaGain" value="20" />
        <attribute key="manaTicks" value="1000" />
        <attribute key="speed" value="40" />
        <attribute key="showattributes" value="1" />
    </item>

My movements.xml
Code:
        <movevent type="Equip" itemid="2358" slot="feet" event="function" value="onEquipItem"/>
        <movevent type="DeEquip" itemid="2358" slot="feet" event="function" value="onDeEquipItem"/>

Thanks! :)
 
Look in creaturescripts for scripts with type login, it can also be in mods.
Then look for this
Code:
doRemoveConditions(cid, false)
Change it to this
Code:
doRemoveConditions(cid)

I can look, but original soft boots works :S

I found it in my battle event script. I changed it and it worked. Is this going to do something bad to the battle event? Thanks
 
Last edited by a moderator:
This is not solved... Changing the "remove conditions" resulted in bug in battle event. When the event ended all players still had the Battle outfit. Before I changed all players got there normal outfit back. How to solve this? Thanks!

from battle event mod:

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) ----< this removes the outfit. Only works with "(cid , false)"
 
Last edited:
You can add an extra function that just removes the outfit condition.
Code:
if getCreatureCondition(cid, CONDITION_OUTFIT) then
     doRemoveCondition(cid, CONDITION_OUTFIT)
end
 
Back
Top