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

adding an item to the inbox

cocacola13

Member
Joined
Jan 18, 2019
Messages
179
Reaction score
12
Location
poland
I need a script to add an item that can be picked up once. and to display the inscription in the middle green
8.6
TFS base 1.3
 
Understand and use this:

if you're trying to send it to the players inbox? you mean depot? depot can be done:
Copy and use this script and replace:
LUA:
local townId = XXX
local depot = player:getDepotChest(townId, true)
local item = player:addItem(item.uid, 1)
item:moveTo(depot)

replace:
LUA:
player:sendTextMessage(MESSAGE_INFO_DESCR, 'You have found a ' .. itemType:getName() .. ', it has been sent to your depot.')

Better yet, read this:
 
Back
Top