Hey, I have problem with construction kits - lockers.
When I'm unpacking kits which are involved with lockers I see:
Suspendly everything is unpacked:
You see drawers (Vol:10).
You see a dresser (Vol:10).
You see a bookcase (Vol:6).
You see an armor rack (Vol:20).
You see a locker (Vol:6).
but in client I see everything like a kits...
Re-log helps:
What's wrong? Why item doesn't transform at once to the right item?
items like small table, chair etc works perfect
Thanks in advance!
When I'm unpacking kits which are involved with lockers I see:
Suspendly everything is unpacked:
You see drawers (Vol:10).
You see a dresser (Vol:10).
You see a bookcase (Vol:6).
You see an armor rack (Vol:20).
You see a locker (Vol:6).
but in client I see everything like a kits...
Re-log helps:
What's wrong? Why item doesn't transform at once to the right item?
items like small table, chair etc works perfect
Code:
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,
[6114] = 6109, [6115] = 6111, [6372] = 6356, [6373] = 6371, [8692] = 8688, [9974] = 9975, [11124] = 11125, [11126] = 11127, [11133] = 11129,
[11205] = 11203
}
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
Thanks in advance!