potinho
Advanced OT User
Hi guys, are you ok?
I have a bug in my construction kit, it's weird. When using some inside the house, nothing seems to happen, but when I click again it recognizes as if it were the item. When I get out of the construction kit's field of view and back, it's correctly transformed into the item, but if it doesn't it doesn't change its appearance. Look how strange in the GIF. can you help me? Here's my action script:
constructionkits.lua
Found this thread, solved.
I have a bug in my construction kit, it's weird. When using some inside the house, nothing seems to happen, but when I click again it recognizes as if it were the item. When I get out of the construction kit's field of view and back, it's correctly transformed into the item, but if it doesn't it doesn't change its appearance. Look how strange in the GIF. can you help me? Here's my action script:
constructionkits.lua
Lua:
local CONSTRUCTIONS = {
[3901] = 1652, [3902] = 1658, [3903] = 1666, [3904] = 1670, [3905] = 3813, [3906] = 3817, [3907] = 3821, [3908] = 1619, [3909] = 1614, [3910] = 1615,
[3911] = 1616, [3912] = 2604, [3913] = 3805, [3914] = 3807, [3915] = 1716, [3916] = 1724, [3917] = 1728, [3918] = 1732, [3919] = 3809, [3920] = 3811,
[3921] = 2084, [3922] = 2095, [3923] = 2098, [3924] = 2064, [3925] = 1674, [3926] = 2080, [3927] = 1442, [3928] = 1446, [3929] = 2034, [3930] = 1447,
[3931] = 2101, [3932] = 1774, [3933] = 2105, [3934] = 2117, [3935] = 2582, [3936] = 3832, [3937] = 1775, [3938] = 1750, [5086] = 5056, [5087] = 5055,
[5088] = 5046
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(fromPosition.x == CONTAINER_POSITION) then
doPlayerSendCancel(cid, "Put the construction kit on the floor first.")
elseif(not getTileInfo(fromPosition).house) then
doPlayerSendCancel(cid, "You may construct this only inside a house.")
elseif(CONSTRUCTIONS[item.itemid] ~= nil) then
doTransformItem(item.uid, CONSTRUCTIONS[item.itemid])
doSendMagicEffect(fromPosition, CONST_ME_POFF)
else
return false
end
return true
end
Post automatically merged:
Found this thread, solved.
Furniture Bug on TFS 0.4 and 0.3.7 ( any help ) ?
Hi, I found this bug in TFS 0.3.7 rev5916 and in TFS 0.4 rev 3777 too. Some of furniture kit when you use it in the house not transform to the item on the screen but when u make look on it it says the name of item and after relog u find it transformed to the item , let me explain using images...
otland.net
Attachments
-
1638588912923.gif2.2 MB · Views: 3 · VirusTotal
Last edited: