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

Lua help with this script please

darknelson

Member
Joined
Jun 19, 2011
Messages
190
Solutions
1
Reaction score
15
im trying to modify my bot to make compatible with the autoloot of my ot server.


Lua:
UI.Label("Autoloot Add")
addTextEdit("hpItem", storage.hpItem or "23375", function(widget, text)
storage.hpItem = text
UI.Button("Add Item", function()
  say("!autoloots add, storage.hpItem")
end)
end)

im trying to can put the text, and then when u push te botton it says !autoloots add, and the name u choose on windows, but i just simply canty, please help me

@Xikini sensei please



i figured out this code, bit it says on button press !autoloots add "gold coin and i cant figure how to remove " parameter it gives me error when delete it

Lua:
U
UI.Label("Autoloot Add")
addTextEdit("HealText", storage.HealText or "gold coin", function(widget, text) 
storage.HealText = text
UI.Button("Add Item", function(widget, text)
  say("!autoloots add \""..storage.HealText) --
end)
end)
 
Last edited:
Back
Top