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

Movement request!

menfes

Sociopat
Joined
Feb 7, 2009
Messages
380
Reaction score
4
Location
Space
I have this problem: I did a script with a simple onEquip and onDeEquip movement, but it seems like it wont work without adding return TRUE to onEquip function (without it the item wont move to the desired slot). Well, that problem can be solved by adding return TRUE, but when doing so the actions in the script will be done 2x times. Example:
Code:
function onDeEquip(cid, item, slot)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "This works ok, only shown 1 time.")
        return true
end

function onEquip(cid, item, slot)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "This is shown 2x times.")
return TRUE
end
Result:
(onEquip)
16:26 This is shown 2x times.
16:26 This is shown 2x times.
(onDeEquip)
16:26 This works ok, only shown 1 time.
 
Someone, please answer? Is there any solution to this? Every movement with script looks similar to this and the result is also the same, onEquip is done 2 times :/ Is this a bug in TFS 0.3.6?
 
Weird I tried it, it does show it twice when you equip it but when you relog with the item on it only shows it once on login o.O I've no clue whats going on xD
 
Yep, hope it gets fixed, hopefully someone will spend some time on fixing it and maybe other bugs in TFS 0.3.6 and after release the fixed patch or something xD :).
P.S Don't do the same mistake in TFS 0.4 :)

P.S(2)
Ye, while talking about 0.3.6 bugs, I don't really know if it's a bug or not, but, when you "X log" your Tibia client, you stop attacking the monster you were before shutting down your client. Maybe it's the client it self that is modified in that way :/ (NOT A BUG, GOT HELPED BY LUVINDADRO)
 
Last edited:
P.S(2)
Ye, while talking about 0.3.6 bugs, I don't really know if it's a bug or not, but, when you "X log" your Tibia client, you stop attacking the monster you were before shutting down your client. Maybe it's the client it self that is modified in that way :/

You have to enable it in the config.lua


Code:
stopAttackingAtExit = false
 
Back
Top