Postado Julho 12, 2023 1 ano Em 17/10/2019 em 22:03, Pedro. disse: Caralho nigga, you fucking everyots top! muito bom pedron, que bom que você tá voltando, já te disse que teu mundo é isso, aulas padrin! quando tiver com o modal pra remover com um "clean" pra limpar a lista ou remover, vai ficar top. O dwarf tinha feito um pra mim. function Player:sendAutoLootModalRemove() local list = self:getAutoLootList() local window = ModalWindow(84000, "Currently items in the list", "Choose an item to remove from list:") window:addButton(2, "Erase all") window:addButton(3, "Exit") window:addButton(1, "Remove") for index, it in spairs(list) do local itemName = ItemType(it):getName() window:addChoice(index, itemName) end window:setDefaultEnterButton(1) window:setDefaultEscapeButton(3) window:sendToPlayer(self) end function Player:sendAutoLootModalInfo(msg, button_text) local textWindow = ModalWindow(84001, "Information", msg) textWindow:addButton(1, button_text) textWindow:setDefaultEnterButton(1) textWindow:setDefaultEscapeButton(1) textWindow:sendToPlayer(self) return true end function spairs(t, order) local keys = {} for k in pairs(t) do keys[#keys+1] = k end if order then table.sort(keys, function(a,b) return order(t, a, b) end) else table.sort(keys) end local i = 0 return function() i = i + 1 if keys[i] then return keys[i], t[keys[i]] end end end qlq parada chama no fb que te mando o resto. manda o resto!!!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.