• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua item charges

Himii

Premium User
Premium User
Joined
Jan 19, 2011
Messages
1,268
Solutions
5
Reaction score
188
Location
Sweden
How can i make something like an stamina doll for example have charges?
Just need to know in which way is easiest, i have made it before butbi duplicated the item in the items.otb and made the script transform the item intill the last one which it deleted. Im shure this was a stupid way but how are you guys going it?
 
setActionIDs, would be easier to handle i guess?
doSetItemActionId(item.uid, 10)

for an onLook function do like
if AID > 0 then
sendPlayerDescription("Charges: "..aid.." left.")
 
But how would i get those items buyable from for example donations?


Edit:Think i got it, i make an item which transforms into an item with storage
 
Back
Top