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

[Lua]openContainerSlots(cid, itemid, slots)

Joe Rod

Discord: joerod1
Joined
Mar 16, 2011
Messages
499
Solutions
2
Reaction score
172
GitHub
joerod1
Hello guys, i need this function, basically it would open a container
cid = player, itemid = id of container, slots = it would be the number of slots
something like this:
openContainerSlots(cid, 1988, 20) it would returns an open backpack with 20 slots

is it possible without editing sources?
Thanks in advance :)
Regards
 
no, and even with source edits it would be messy because you can't create virtual containers like that
 
Last edited:
However you can make a virtual container by storage values.

Show what is inside the magic backpack:
!magicbackpack

Deposit items to the magic backpack:
!deposit "itemName,count

Take stuff from magic backpack:
!withdraw "itemName,count

On my server, mages who got high merchant reputation can do it.

12:07 You are getting hungry. Your hunger value is:
12:07 17
12:07 Magic slot 1 contains nothing.
12:07 Magic slot 2 contains nothing.
12:07 Magic slot 3 contains nothing.
12:07 Magic slot 4 contains nothing.

12:07 Attempting to insert 2160 to magic slot 3.

12:07 Magic slot 1 contains nothing.
12:07 Magic slot 2 contains nothing.
12:07 Magic slot 3 contains 2160.
12:07 Magic slot 4 contains nothing.
 
Last edited:
Back
Top