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

New itens to House

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
941
Solutions
7
Reaction score
129
Location
Brazil
YouTube
caruniawikibr
I would like to create items to sell from home, but I would like them to be made inside that box that npcs deliver and when clicking out the item, how to make an item for example and an item that is larger than one sqm? like a big flag or a big statue?
preferably open inside the house.
The other thing is, I have a bug that when clicking on some of the boxes it does not appear the item, you have to leave the screen and return to the item appear.
Example: i bought the item, I used it in the house, it keeps appearing the box I bought, does not appear at the same time the item that should transform, not all that are just a few

tfs 0.4 version8,.6

Screenshot_1.png
Screenshot_2.png


There are some items that I wanted to be created in the crate, and then opened inside the house, but these items are big in the object builder, not small ones.



As I said above, some items appear fast, others need to leave the screen and come back to appear
Screenshot_3.pngScreenshot_4.png
 
Last edited:
You can add or edit the script items from your data\actions\scripts\other it should be there named like constructionkits.lua, I think you can add any item or change any.
Which item doesn't appear? give me ids.
 
@M0ustafa
List:

16:55 You see a furniture package.
It weighs 25.00 oz.
It is a kit for a barrel.
ItemID: [3932].


t is a kit for a goblin statue.
ItemID: [3930].


16:56 You see a furniture package.
It weighs 25.00 oz.
It is a kit for a rocking chair.
ItemID: [3925].



It is a kit for a monkey statue.
ItemID: [5086].


It is a kit for a dresser.
ItemID: [3916].


It weighs 25.00 oz.
It is a kit for a harp.
ItemID: [3921].


It is a kit for a large trunk.
ItemID: [3938].


It weighs 25.00 oz.
It is a kit for a rocking horse.
ItemID: [3934].
Position: [X: 33233] [Y: 31849] [Z: 7].

they do not appear and are not moveable, you need to leave the screen and come back to see the items

Screenshot_5.png

up and down floor and

Screenshot_6.png
 
Anyways after your ban gets removed you can change in your constructionkits.lua
Remove/Change this
Lua:
doTransformItem(item.uid, CONSTRUCTIONS[item.itemid])
To
Lua:
doRemoveItem(item.uid)
doCreateItem(CONSTRUCTIONS[item.itemid], 1, toPosition)
And it will work without any issues I just tested it.
If you don't understand what to change you can use this script.
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,
[6114] = 6109, [6115] = 6111, [6372] = 6356, [6373] = 6371, [8692] = 8688, [9974] = 9975
}

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
        doRemoveItem(item.uid)
        doCreateItem(CONSTRUCTIONS[item.itemid], 1, toPosition)
        doSendMagicEffect(fromPosition, CONST_ME_POFF)
    else
        return false
    end

    return true
end
 
It seems like the ban here is pretty easy to happen.


the error continues even with the copied script,
these are the items that continue with this defect




Screenshot_7.png
 
Back
Top