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

[SOLVED] better 'doPlayerGiveItemContainer'

Rith

New Member
Joined
Jun 14, 2007
Messages
176
Reaction score
0
Today I tested this function and find out some annoying "feature".

When you use ID of non-moveable item (let's say ID 100) function ignore it.
Code:
BP Result: [Empty] [Empty] [Empty] [Empty]
Tried to use array instead to cheat this function ;D {100, 2676, 2675, 100}
Code:
 BP Result: [2675] [2676] [Empty] [Empty]

How to make it allows ALL TYPES of items?

ps. used SubType 1 and 0 in tests
 
Last edited:
why dont you play with thoso?

doAddContainerItemEx(uid, virtuid)

doCreateItemEx(itemid[, count/subType = -1])

doPlayerAddItemEx(cid, uid[, canDropOnMap = FALSE])
 
simple code:
Code:
local thing =  doCreateItemEx(100, 0) 
doPlayerAddItemEx(cid, thing, false)
for subtypes -1,0,1 nothing happens, no errors in console
 
Code:
local thing = doCreateItemEx(5941) 
doPlayerAddItemEx(cid, thing, false)
doTransformItem(thing, 100)

=D?
 
Back
Top