Ir para conteúdo

kokekanon

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Obrigado
    kokekanon recebeu reputação de Danijo em Slot Machine[OTC][Module]   
    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")  

Informação Importante

Confirmação de Termo