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

0.3.5pl1 Request

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,984
Solutions
2
Reaction score
119
Location
Germany
GitHub
Shawak
Is there any function in TFS 0.3.5pl1 to add a player a depot item?
I searched in doc/Lua_Functions but I don't find anything.
 
But first add:
Code:
doRemoveCreature(cid)

Else query will not work :p
Its not good idea, player can fast relog and it could remove X items from depot (delete all before insert).
@thread
Maybe put it in parcel, add label with name and city and then teleport parcel on mailbox (you can add player item even when he is offline)? :)
(first try to find solution, then spam on 'Features' board :p )
 
Last edited:
I made SAME function few min ago :D
Did you test it? My doesnt't work (crash server when script put parcel on mailbot) [ TFS 0.3.5 rev. 2005 (beta!, now is 2889)]
 
Last edited:
Yea, tested. :p

#Edit.

@Gesior:
Take a look into function thread, ss inside :p - tested on TFS 0.3.5pl1 - Official Release.
 
TFS 0.3.5pl function:
doPlayerSendMailByName(name, item, town_id)
item can be container with items. Mayyybe it's not possible to send 'virtual items' (made with function doCreateItemEx and not 'placed' on map)
 
Aaa.. it's not in 0.3.5 -.-'
I checked donators svn 'trunk' :>
so many changes in every tfs 0.3 version, tfs 0.3.4, 0.3.5 and 0.3.6 (now called trunk) use totaly rewritten mail systems....
Rev. 2846
CHANGES:
* Added reflect
* Added Lua function doPlayerSendItemByName(name, item[, town[, actor]])
Author:
elf
Changed:
8d 09h ago
'normal' users must wait until 0.3.6 release.
 
Back
Top