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

(Question) setCreatureStorage in TFS 1.1

lokolokio

Well-Known Member
Joined
Jan 7, 2009
Messages
201
Solutions
13
Reaction score
78
Location
Mexico
Is that function available on The Forgotten Server 1.xx?? If someone know about it, can tell me how to make it possible... Thank you. (I ask for monsters not for players, I've tried with: creature:setStorageValue(), but i think that it only aply to players and not for monsters.
 
Last edited:
as of tfs 1.0, global storages are actually tables, they are not stored in the database. so you can use
Code:
setGlobalStorageValue(creature:getId(), value)
getGlobalStorageValue(creature:getId())

take notice tho, everytime a server restarts or a monster respawns, they will get a new ID.
 
@lokolokio it shouldn't lag, it's a simple array table... the worst case is having more ram consumed.

mind if you can show the entire script? maybe it needs some optimizing.
 
Back
Top