Ir para conteúdo

mullino

Membro
  • Registro em

  • Última visita

Tudo que mullino postou

  1. sim sim a menssagem em vermelho vai so no server log
  2. boa tarde galerinha do tk tenho uma talkactions no meu ot, que os players podem mandar menssagem pra todos usando o /all so que a menssagem aparece no server log gostaria que aparecece no defalt alguem consegue mudar para min o scripting? local config = { storage = 19400, -- storage em que será salvo o tempo cor = "red", -- de acordo com o constant.lua da lib tempo = 3, -- em minutos price = 20000, -- quantidade de dinheiro que irá custar level = 10 -- level pra poder utilizar o broadcast } function onSay(cid, words, param) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end if getPlayerLevel(cid) >= config.level then if getPlayerStorageValue(cid, config.storage) - os.time() <= 0 then if doPlayerRemoveMoney(cid, config.price) then setPlayerStorageValue(cid, config.storage, os.time() + (config.tempo*10)) doBroadcastMessage("[/all]: ["..getCreatureName(cid).."]: "..param.."", config.cor) else doPlayerSendCancel(cid, "You don't have " ..config.price.. " gp's for broadcasting.") return true end else doPlayerSendCancel(cid, "You have to wait " ..(getPlayerStorageValue(cid, config.storage) - os.time()).. " seconds until you can broadcast again.") return true end else doPlayerSendCancel(cid, "You have to be level " ..config.level.. " or more in order to use broadcast.") end end
  3. E não dá erro nem nada ? Eu fiz aqui e funcionou depois me passa DC tentar te ajudar
  4. O meu funcionou certinho amigo . Consegui colocar os atributos e compilei funcionou pra min Qual erro tá dando no seu
  5. .Qual servidor ou website você utiliza como base? Tfs0.4 Qual o motivo deste tópico? Ex sword , bow , axé , club colo o attack dele nos itens.xml como 2900 , mas quando abro o otserv só mostra até 2499. Nada a mais que isso. Já procurei sobre aqui no tk e não consegui achar. Alguém pode me ajudar? Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  6. <attribute key="Crit Chance" value="500"/> <attribute key="Dodge Chance" value="500"/> <attribute key="Life Absorb" value="5000"/> <attribute key="Mana Absorb" value="500"/> consegui compilar ai adicionei esses atributos mas nao foi alguem sabe os atributos certos?
  7. boa noite galerinha do tk estou com um problema no meu site compro os items no site mas nao chega no player. e nao da erro nenhum na distro. <globalevent name="shop" interval="20000" script="shop.lua"/> local SHOP_MSG_TYPE = MESSAGE_EVENT_ORANGE local SQL_interval = 30 function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do local id = tonumber(result_plr:getDataInt("id")) local action = tostring(result_plr:getDataString("action")) local delete = tonumber(result_plr:getDataInt("delete_it")) local cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then container_weight = getItemWeightById(container_id, 1) if isItemRune(itemtogive_id) == TRUE then items_weight = container_count * getItemWeightById(itemtogive_id, 1) else items_weight = container_count * getItemWeightById(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) if isItemRune(itemtogive_id) == TRUE then full_weight = getItemWeightById(itemtogive_id, 1) else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) doItemSetAttribute(new_item, "description", "This item can only be used by the player ".. getPlayerName(cid) .."!") doItemSetAttribute(new_item, "aid", getPlayerGUID(cid)+10000) received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end if not(result_plr:next()) then break end end result_plr:free() end return true end alguem pode me ajudar? [Error - mysql_real_query] Query: SELECT * FROM shop_history WHERE `processed` = 0; Message: Table 'zedeky.shop_history' doesn't exist
  8. ja testei varios gesiores agr estou achando que e algun erro na minha vps pq ta tudo certinho e todos da o mesmo erro
  9. esss consegui resolver ate ai mas meu problema agora e o gesior... nao consigo colocar o site pra funcionar
  10. OLA ESTOU COM ESSE ERRO AO TENTA ACESSAR MEU SITE . JA USAVA ELE ANTES NO UBUNTO 14 FUNCIONAVA NORMAL , AGR NO 16 NAO ESTOU CONSEGUINDO FAZER ELE FUNCIONAR MEU CONFIG LUA sqlType = "mysql" sqlHost = "127.0.0.1" sqlPort = 3306 sqlUser = "teste" sqlPass = "testee" sqlDatabase = "testando" sqlFile = "" sqlKeepAlive = 0 mysqlReadTimeout = 1000 mysqlWriteTimeout = 1000 mysqlReconnectionAttempts = 5 encryptionType = "sha1" meu config.php $config['pagSeguro']['host'] = 'zedeckyot.com'; ## YOUR HOST $config['pagSeguro']['database'] = 'testando'; ## DATABASE $config['pagSeguro']['databaseUser'] = 'teste'; ## USER $config['pagSeguro']['databasePass'] = 'testando'; ## PASSWORD nao sei oq fazer alguem pode me ajuda
  11. z_ots_guildcomunication[Error - mysql_real_query] Query: SELECT * FROM z_ots_guildcomunication WHERE `type` = 'login'; > Message: Unknown column 'type' in 'where clause' estou com esse erro na minha db alguem pode me ajudar ?
  12. te chamei la
  13. tem dc? pode me ajudar aqui? tou a mais de 24 horas tentando acabei de formatar pro 18 kkk foi o unico que nao tentei ainda mais vou voltar pro 16
  14. sim essa eu tenho des de 2019 rodava normal . compilava facil agr que deu esse b.o usa make clean e depois make e compilava de boa
  15. qual melhor linux? antes eu usava o ubunto 14. ja instalei o debian 7 o ubunto 16 o 20 mas ate agr nada kk
  16. Makefile
  17. estou com o mesmo erro . eles falaram que era no ubunto 16 que dava isso. troquei pro 18 e pro 20 e deu a mesma coisa. ai troquei pro debian 7 tbm ta a mesma coisa, alguem pode me ajudar
  18. onde fasso essa alteraçao estou com o mesmo erro troquei so essa linha e nao consegui removi toda a linha e tbm nao deu
  19. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    descupa ta revivendo o topico mas estou com o mesmo erro ; sabe oque tenho que remover desse makefile?
  20. tinha um ot em 2019 rodava tudo normal pq uma pessoa qui no tk compilou pra min agr estou voltando para os otserves e nao estou conseguindo compilar com os comando que tem aqui alguem pode me ajudar??? minha source e assim. tento compilar ai da esse erro ouvi dizer que tem que remover alguma coisa do makefile mas nao falam oq e
  21. .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  22. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    .Qual servidor ou website você utiliza como base? 8.6 Qual o motivo deste tópico? TINHA UM OT EM 2019 USAVA A LGVHOST ERA MUITO BOA MAS NAO TEM NENHUM SERVIDOR DISPONIVEL LA GOSTARIA DE SABER SE VCS ME INDICA UM BOM AI PQ ESTOU FORA DES DE 2019 E NAO TENHO NEM IDEIA DE QUAL SERIA UM BOM HJ EM DIA Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  23. Instalei já e continua o erro Será que seja por causa do Windows ser o 7?

Informação Importante

Confirmação de Termo