Ir para conteúdo

kokekanon

Membro
  • Registro em

  • Última visita

  1. Danijo reagiu a uma resposta no tópico: Slot Machine[OTC][Module]
  2. kokekanon postou uma resposta no tópico em OTClient
    tfs 1.5 local OPCODE_LANGUAGE = 1 local OPCODE_autoloot = 12 local removeDollar = 2000*100 -- = equivale a 20 Hundred Dollar function onExtendedOpcode(player, opcode, buffer) if opcode == OPCODE_LANGUAGE then -- otclient language if buffer == 'en' or buffer == 'pt' then -- example, setting player language, because otclient is multi-language... -- player:setStorageValue(SOME_STORAGE_ID, SOME_VALUE) end end if opcode == OPCODE_autoloot then if (buffer ~= "1") then player:addItem(tonumber(buffer), 1) end player:removeItem(3043,1) -- ID COIN end -- other opcodes can be ignored, and the server will just work fine... end y login.lua player:registerEvent("ExtendedOpcode")
  3. kokekanon postou uma resposta no tópico em OTClient
    É possível adicionar uma chance para cada pedra? Local [1] = {11788,"leafStone",chance="80"}, [2] = {11789,"fireStone",chance="60"}, [3] = {11790,"waterStone",chance="10"} nesta função. if ( (slt1 == slt2 ) and (slt2 == slt3) ) then displayInfoBox(tr('Slot Machine'), tr('Voce ganhou uma '..config.stones[slt1][2])) idStone = config.stones[slt1][1] end imagino algo assim local chance_Stone =Total.chance * (config.stones.chance/100)

Informação Importante

Confirmação de Termo