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

TFS 1.X+ How does purse work in 1.3? or does it?

Mjmackan

Mapper ~ Writer
Premium User
Joined
Jul 18, 2009
Messages
1,424
Solutions
15
Reaction score
177
Location
Sweden
Can you workout purse in tfs 1.3 only in lua? or you have to change in the source?
 
You have to change the source, though tfs 1.3 already has code that handles purse (store inbox) slot.
 
You have to change the source, though tfs 1.3 already has code that handles purse (store inbox) slot.
Yeah I found the const_slot_store_inbox but i cant execute it in lua, thanks for taking ur time and making me sure of it however.
 
Can you assign the purse to become a slotType in C, so you can add items into it with the correct slotType?
 
On 1.4 it doesnt work, easy to try

Change on src CONST_SLOT_AMMO in last, for the CONST_SLOT_STORE_INBOX,

Then
try:
Lua:
local store = player:getSlotItem(CONST_SLOT_STORE_INBOX)
print("Slot:", store)
It returns nil.

Weird, because you cannot create a simple thing like a gold pouch.
 
Back
Top