Ir para conteúdo

alissonfgp

Membro
  • Registro em

  • Última visita

Tudo que alissonfgp postou

  1. add um 'end' no final ai pra ver, abaixo do return true
  2. ta aqui o erro <stage minlevel="50" maxlevel="100" multiplier="70"/> <stage minlevel="120" maxlevel="150" multiplier="55"/> muda pra esse ou algum outro stage se estiver exp stages <stage minlevel="50" maxlevel="120" multiplier="70"/> <stage minlevel="121" maxlevel="150" multiplier="55"/>
  3. @Edit http://www.tibiaking.com/forum/topic/22469-remeres-map-editor/
  4. shop.lua -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 19 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.storeQuery("SELECT * FROM z_ots_comunication") if(result_plr ~= false) then repeat local id = tonumber(result.getDataInt(result_plr, "id")) local action = tostring(result.getDataString(result_plr, "action")) local delete = tonumber(result.getDataInt(result_plr, "delete_it")) local cid = getPlayerByName(tostring(result.getDataString(result_plr, "name"))) if(cid) then local itemtogive_id = tonumber(result.getDataInt(result_plr, "param1")) local itemtogive_count = tonumber(result.getDataInt(result_plr, "param2")) local container_id = tonumber(result.getDataInt(result_plr, "param3")) local container_count = tonumber(result.getDataInt(result_plr, "param4")) local add_item_type = tostring(result.getDataString(result_plr, "param5")) local add_item_name = tostring(result.getDataString(result_plr, "param6")) local received_item = 0 local full_weight = 0 if(add_item_type == 'container') then container_weight = getItemWeight(container_id, 1) if(isItemRune(itemtogive_id)) then items_weight = container_count * getItemWeight(itemtogive_id, 1) else items_weight = container_count * getItemWeight(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeight(itemtogive_id, itemtogive_count) if(isItemRune(itemtogive_id)) then full_weight = getItemWeight(itemtogive_id, 1) else full_weight = getItemWeight(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) received_item = doPlayerAddItemEx(cid, new_item) end if(type(received_item) == "number" and received_item == RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') db.query("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.query("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 until not result.next(result_plr) result.free(result_plr) end return true end
  5. Vi os erros que reportou, estou sem muito tempo para atualizar o servidor, pra ajuda meu pc estrago, vc baixo a ultima versao que eu postei no github? Assim que o meu pc voltar vou fixar os bugs, e da uma olhada la vendo o que falta, removi o da Claw, nao 100% (https://github.com/Alissonfgp/Global-Server/commit/6d95fc8fd9d7220db0fbc60c6c2ddeec67887479).
  6. troca db.getResult por db.storeQuery
  7. troca getItemNameById por getItemName. Clean foi fixado dps, na 10.37 funfa.
  8. só trocar getThingFromPos por getThingfromPos, vou fazer um update 10.37 removendo varios bugs Os addons é só trocar npcHandler:say por selfSay o que uso ai é nos locais RL
  9. <globalevent name="save" interval="3600000" script="save.lua"/> save.lua function onThink(interval) saveServer() return true end
  10. http://www.mediafire.com/download/gqf2i618dbwvnmo/RME-3.0-beta-6_for_1010-1031.rar arquivo dat e spr dentro da pasta 1031, quando for procurar a versao 10.3 tem que abrir eles
  11. Sim e o servidor la ta mais atualizado, vou atualizar 10.31 em breve
  12. alissonfgp postou uma resposta no tópico em Websites
    para gesior 1.0 troque sua install.php por essa, removi uns bugs desse tipo
  13. Por enquanto nem vi kkk, vo da uma olhada aq ja aviso
  14. quando vc formato, na hr lá vc excluiu a partição C, ou só coloco formatar? se coloco tenta de novo excluir, cria e instala o windows, agr se tiver 2 partiçoes C e D, dae nem tenta a n ser que tenha o backup de td.
  15. Esses problemas do Gesior estou arrumando aqui e deixando mais atualizado, ja que não saiu nem um ainda, o q saiu eh meio complicado, breve postarei aqui no forum
  16. alissonfgp postou uma resposta no tópico em Tutoriais Websites
    tente re-instalar com essa sua database pra ver qlqr coisa pode ser na config.lua qual a versao do servidor?
  17. O clean ae eh bugado tenho q ve um q funfe sem da erro
  18. Deleta o arquivo instal.txt, Qnd eu entra pc ja vejo os posts cm erros e arrumo, mas se for d site cria um novo topico que vejo lá
  19. ou Znote ou Gesior pra 1.0 http://www.tibiaking.com/forum/topic/29471-gesior-acc/ ou http://www.tibiaking.com/forum/topic/27980-znoteaac-15-tfs-020304-10/
  20. ~~ Update e Bugs Concertados ~~ * Warzones I, II, III * Yalahar Quest * Blue Legs Quest * BrowseField, New Party and Guild System * Convertido Para Versão 1.0 * The Spikes Areas Adicionados * Respawns de Drefia Concertado * Tasks * Doors de venore * Houses * Raids * Novos items 10.22/10.30 adicionados * Rookgaard e Eventos foram removidos OBS: * Não funciona Sqlite, somente mysql * Só tenho na versão 64bits(se alguem ter 32bits posta ai se possivel) * Bugs reportem que eu removo, como essa source é nova e tem umas diferenças comparada as outras pode aparecer varios bugs... * Novas areas estarei colocando nesse msm post... Updates aqui https://github.com/Alissonfgp/Global-Server Creditos Alissonfgp (EU) Links MEGA: https://mega.co.nz/#!GU4ikLxC!aa4Qu0ByH7TmIjL5ognQUWC-lL8T4eGUszUcGc9q9sA 4shared: http://www.4shared.com/rar/rCRaebrs/10_Global_Server_1030_by_Aliss.html Scan 4Shared: https://www.virustotal.com/pt-br/url/3356a44b28e2719924e71c38083b24b191df1d1b126ac42e3a106e13931f6584/analysis/1387136127/ Sources: https://github.com/otland/forgottenserver (By Mark Samman) DataBase(schemas) IMGS The Spikes Novos Items Pits of Inferno Warzones Yalahar Quest
  21. msm dia q saiu ja tinha feito update... http://www.mediafire.com/download/xq4phgeu889psb8/distro+10.30.rar tem a distro e umas dlls juntas, e a nova mount e outfit aí, aconselho a compila a do github fizeram atualizaçoes nela ja..

Informação Importante

Confirmação de Termo