Ir para conteúdo

BennyDz

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    BennyDz recebeu reputação de amora murder em Feyrist  includes monsters.xml   
    FEYRIST (SUMMER UPDATE TIBIA) includes monsters
    MONSTERS INCLUDES:

     

    SCREENSHOTS:

     

     

     
    https://www.virustotal.com/es/url/0ea71ec1452a8f525d4aa9d45e97187346f33054e5c23fb830632510ea092430/analysis/1510271568/
    Map Feyrist.rar
    https://www.virustotal.com/#/url/2f47c27fcc19799620a4f23f6a3f0651d6aa5cd6808d0c9f4b9688347a0d5632/detection
    Monsters Feyrist.rar
  2. Gostei
    BennyDz recebeu reputação de KotZletY em Feyrist  includes monsters.xml   
    FEYRIST (SUMMER UPDATE TIBIA) includes monsters
    MONSTERS INCLUDES:

     

    SCREENSHOTS:

     

     

     
    https://www.virustotal.com/es/url/0ea71ec1452a8f525d4aa9d45e97187346f33054e5c23fb830632510ea092430/analysis/1510271568/
    Map Feyrist.rar
    https://www.virustotal.com/#/url/2f47c27fcc19799620a4f23f6a3f0651d6aa5cd6808d0c9f4b9688347a0d5632/detection
    Monsters Feyrist.rar
  3. Obrigado
    BennyDz deu reputação a luanluciano93 em Tfs 1.2 Delete items em player_items, player_depotitems   
    -- <talkaction words="!test" script="teste.lua" /> function onSay(player, words, param) local resultId = db.storeQuery("SELECT `player_id`,`pid`,`sid`,CONVERT(`attributes` USING latin1) AS `attr` FROM `player_items` WHERE CONVERT(`attributes` USING latin1) LIKE '%timerOnExp%'") if resultId then repeat local test1 = result.getStream(resultId, "attr") -- retorn string if test1 then local test = string.sub(test1, 25, 34) print(test) if tonumber(test) then print("number: ".. test) end end until not result.next(resultId) end return false end  
  4. Obrigado
    BennyDz deu reputação a luanluciano93 em Tfs 1.2 Delete items em player_items, player_depotitems   
    -- <talkaction words="!test" script="teste.lua" /> function onSay(player, words, param) local resultId = db.storeQuery("SELECT `player_id`,`pid`,`sid`,CONVERT(`attributes` USING latin1) AS `attr` FROM `player_items` WHERE CONVERT(`attributes` USING latin1) LIKE '%timerOnExp%'") if resultId then repeat local attr = result.getStream(resultId, "attr") local timerOnExp = tonumber(string.sub(attr, 25, 34)) if os.time() >= timerOnExp then local sid = result.getNumber(resultId, "sid") db.storeQuery("DELETE FROM `player_items` WHERE `sid` = ".. sid) print("deleted!") end until not result.next(resultId) end return false end  
  5. Obrigado
    BennyDz deu reputação a luanluciano93 em Tfs 1.2 Delete items em player_items, player_depotitems   
    -- <talkaction words="!test" script="teste.lua" /> function onSay(player, words, param) local resultId = db.storeQuery("SELECT `player_id`,`sid`, CONVERT(`attributes` USING latin1) AS `attr` FROM `player_items` WHERE CONVERT(`attributes` USING latin1) LIKE '%timerOnExp%'") if resultId then repeat local attr = result.getStream(resultId, "attr") local timerOnExp = tonumber(string.sub(attr, 25, 34)) if os.time() >= timerOnExp then local player_id = result.getNumber(resultId, "player_id") local sid = result.getNumber(resultId, "sid") db.storeQuery("DELETE FROM `player_items` WHERE `player_id`=".. player_id .." AND `sid` = ".. sid) print("deleted!") end until not result.next(resultId) end return false end  
  6. Obrigado
    BennyDz deu reputação a luanluciano93 em Tfs 1.2 Delete items em player_items, player_depotitems   
    function onSay(player, words, param) local resultId = db.storeQuery("SELECT `player_id`,`sid`, CONVERT(`attributes` USING latin1) AS `attr` FROM `player_items` WHERE CONVERT(`attributes` USING latin1) LIKE '%timerOnExp%'") if resultId then repeat local attr = result.getStream(resultId, "attr") local timerOnExp = tonumber(string.sub(attr, 25, 34)) if timerOnExp then if os.time() >= timerOnExp then print(os.time() .." >= .. "timerOnExp) local player_id = result.getNumber(resultId, "player_id") local sid = result.getNumber(resultId, "sid") db.query("DELETE FROM `player_items` WHERE `player_id`=".. player_id .." AND `sid` = ".. sid) end end until not result.next(resultId) end return false end  
  7. Obrigado
    BennyDz deu reputação a luanluciano93 em Tfs 1.2 Delete items em player_items, player_depotitems   
    -- <talkaction words="!test" script="teste.lua" /> function onSay(player, words, param) local resultId = db.storeQuery("SELECT `player_id`,`sid`, CONVERT(`attributes` USING latin1) AS `attr` FROM `player_items` WHERE CONVERT(`attributes` USING latin1) LIKE '%timerOnExp%'") if resultId then repeat local attr = result.getStream(resultId, "attr") local timerOnExp = tonumber(string.sub(attr, 25, 34)) if os.time() >= timerOnExp then local player_id = result.getNumber(resultId, "player_id") local sid = result.getNumber(resultId, "sid") db.query("DELETE FROM `player_items` WHERE `player_id`=".. player_id .." AND `sid` = ".. sid) print("deleted!") end until not result.next(resultId) end return false end  
  8. Curtir
    BennyDz recebeu reputação de JZDJ em Feyrist  includes monsters.xml   
    FEYRIST (SUMMER UPDATE TIBIA) includes monsters
    MONSTERS INCLUDES:

     

    SCREENSHOTS:

     

     

     
    https://www.virustotal.com/es/url/0ea71ec1452a8f525d4aa9d45e97187346f33054e5c23fb830632510ea092430/analysis/1510271568/
    Map Feyrist.rar
    https://www.virustotal.com/#/url/2f47c27fcc19799620a4f23f6a3f0651d6aa5cd6808d0c9f4b9688347a0d5632/detection
    Monsters Feyrist.rar
  9. Curtir
    BennyDz recebeu reputação de willks123 em OT 8.60 Baiak erro TRADE OFF me ajudem xD   
    try this 
    local config = { levelRequiredToAdd = 20, maxOffersPerPlayer = 5, SendOffersOnlyInPZ = true, blocked_items = {2165, 2152, 2148, 2160, 2166, 2167, 2168, 2169, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2343, 2433, 2640, 6132, 6300, 6301, 9932, 9933} } function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end local t = string.explode(param, ",") if(t[1] == "add") then if((not t[2]) or (not t[3]) or (not t[4])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end if(not tonumber(t[3]) or (not tonumber(t[4]))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't set valid price or items count.") return true end if(string.len(t[3]) > 7 or (string.len(t[4]) > 3)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This price or item count is too high.") return true end local item = getItemIdByName(t[2]) if(not item) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.") return true end if(getPlayerLevel(cid) < config.levelRequiredToAdd) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have required (" .. config.levelRequiredToAdd .. ") level.") return true end if(isInArray(config.blocked_items, item)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This item is blocked.") return true end if(getPlayerItemCount(cid, item) < (tonumber(t[4]))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you don't have this item(s).") return true end local check = db.getResult("SELECT `id` FROM `auction_system` WHERE `player` = " .. getPlayerGUID(cid) .. ";") if(check:getID() == -1) then elseif(check:getRows(true) >= config.maxOffersPerPlayer) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry you can't add more offers (max. " .. config.maxOffersPerPlayer .. ")") return true end if(config.SendOffersOnlyInPZ) then if(not getTilePzInfo(getPlayerPosition(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You must be in PZ area when you add offert to database.") return true end end if(tonumber(t[4]) < 1 or (tonumber(t[3]) < 1)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to type a number higher than 0.") return true end local itemcount, costgp = math.floor(t[4]), math.floor(t[3]) doPlayerRemoveItem(cid, item, itemcount) db.escapeString("INSERT INTO `auction_system` (`player`, `item_name`, `item_id`, `count`, `cost`, `date`) VALUES (" .. getPlayerGUID(cid) .. ", \"" .. t[2] .. "\", " .. getItemIdByName(t[2]) .. ", " .. itemcount .. ", " .. costgp ..", " .. os.time() .. ")") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You successfully add " .. itemcount .." " .. t[2] .." for " .. costgp .. " gps to offerts database.") end if(t[1] == "buy") then if(not tonumber(t[2])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong ID.") return true end local buy = db.getResult("SELECT * FROM `auction_system` WHERE `id` = " .. (tonumber(t[2])) .. ";") if(buy:getID() ~= -1) then if(getPlayerMoney(cid) < buy:getDataInt("cost")) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have enoguh GP.") buy:free() return true end if(getPlayerName(cid) == getPlayerNameByGUID(buy:getDataInt("player"))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you can't buy your own items.") buy:free() return true end if(getPlayerFreeCap(cid) < getItemWeightById(buy:getDataInt("item_id"), buy:getDataInt("count")))then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You try to buy a " .. buy:getDataString("item_name") .. ". It weight " .. getItemWeightById(buy:getDataInt("item_id"), buy:getDataInt("count")) .. " cap oz. and you have only " .. getPlayerFreeCap(cid) .. " oz. free capacity. Put some items to depot and try again.") buy:free() return true end if(isItemStackable((buy:getDataString("item_id")))) then doPlayerAddItem(cid, buy:getDataString("item_id"), buy:getDataInt("count")) else for i = 1, buy:getDataInt("count") do doPlayerAddItem(cid, buy:getDataString("item_id"), 1) end end doPlayerRemoveMoney(cid, buy:getDataInt("cost")) db.escapeString("DELETE FROM `auction_system` WHERE `id` = " .. t[2] .. ";") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You bought " .. buy:getDataInt("count") .. " ".. buy:getDataString("item_name") .. " for " .. buy:getDataInt("cost") .. " gps!") db.escapeString("UPDATE `players` SET `auction_balance` = `auction_balance` + " .. buy:getDataInt("cost") .. " WHERE `id` = " .. buy:getDataInt("player") .. ";") buy:free() else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong ID.") end end if(t[1] == "remove") then if((not tonumber(t[2]))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong ID.") return true end if(config.SendOffersOnlyInPZ) then if(not getTilePzInfo(getPlayerPosition(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You must be in PZ area when you remove offerts from database.") return true end end local delete = db.getResult("SELECT * FROM `auction_system` WHERE `id` = " .. (tonumber(t[2])) .. ";") if(delete:getID() ~= -1) then if(getPlayerGUID(cid) == delete:getDataInt("player")) then db.escapeString("DELETE FROM `auction_system` WHERE `id` = " .. t[2] .. ";") if(isItemStackable(delete:getDataString("item_id"))) then doPlayerAddItem(cid, delete:getDataString("item_id"), delete:getDataInt("count")) else for i = 1, delete:getDataInt("count") do doPlayerAddItem(cid, delete:getDataString("item_id"), 1) end end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your offert has been deleted from offerts database.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This is not your offert!") end delete:free() else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong ID.") end end if(t[1] == "withdraw") then local balance = db.getResult("SELECT `auction_balance` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. ";") if(balance:getDataInt("auction_balance") < 1) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have money on your auction balance.") balance:free() return true end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You got " .. balance:getDataInt("auction_balance") .. " gps from auction system!") doPlayerAddMoney(cid, balance:getDataInt("auction_balance")) db.escapeString("UPDATE `players` SET `auction_balance` = '0' WHERE `id` = " .. getPlayerGUID(cid) .. ";") balance:free() end return true end  
  10. Curtir
    BennyDz recebeu reputação de Werner em Feyrist  includes monsters.xml   
    FEYRIST (SUMMER UPDATE TIBIA) includes monsters
    MONSTERS INCLUDES:

     

    SCREENSHOTS:

     

     

     
    https://www.virustotal.com/es/url/0ea71ec1452a8f525d4aa9d45e97187346f33054e5c23fb830632510ea092430/analysis/1510271568/
    Map Feyrist.rar
    https://www.virustotal.com/#/url/2f47c27fcc19799620a4f23f6a3f0651d6aa5cd6808d0c9f4b9688347a0d5632/detection
    Monsters Feyrist.rar
  11. Gostei
    BennyDz recebeu reputação de Pedro. em [C++] Level Monster   
    update for tfs 12 :D
  12. Gostei
    BennyDz recebeu reputação de Calidoress em [C++] Level Monster   
    adapten para tfs 0.4  
  13. Gostei
    é preciso migrar os sistemas e leva muito tempo... estou tentando aqui, mas sem previsão para que estejam 100%
  14. Gostei
    BennyDz deu reputação a VictorWEBMaster em [2015] Gesior 1.0 - VictorWEBMaster   
    Versão Nova! 
    http://www.deadpoolhost.esy.es/downloads/
  15. Gostei
    BennyDz recebeu reputação de KotZletY em aumentando o dano de monstros   
    solved i use .lua, please close this teme
     
    script:
    function onHealthChange(player, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if not attacker then return primaryDamage, primaryType, secondaryDamage, secondaryType end if attacker:isMonster() and not attacker:getMaster() then primaryDamage = primaryDamage*3 secondaryDamage = secondaryDamage*3 end return primaryDamage, primaryType, secondaryDamage, secondaryType end function onManaChange(player, attacker, manaChange, origin) if not attacker then return manaChange end if attacker:isMonster() and not attacker:getMaster() then manaChange = manaChange *3 end return manaChange end  
  16. Gostei
    BennyDz deu reputação a KotZletY em aumentando o dano de monstros   
    @BennyDz é proibido dar up por comentários, utilize o botão de dar up. Peço que leia as regras.
     
    2.7 - Dar "UP" para subir tópicos: É totalmente proibido comentar "UP" para subir tópicos, caso você tenha a intenção você pode utilizar nosso recurso de subir tópicos e ele automaticamente irá te colocar um tempo de espera de 24 horas para realizar a função novamente. Caso o membro realize tal ato isso pode ser interpretado como flood.
  17. Gostei
    BennyDz deu reputação a Kimoszin em Rent System - Aluguel de Itens   
    Informações
    Oque é o Rent System?
    É um sistema feito para os jogadores poderem alugar alguns itens por uma quantia e por um certo tempo.
    Hmmm, legal... mas para que esse sistema seria util?
    Bom, para o jogador antes de comprar algum item vip, por exemplo. Ele poderia testar para ver seus hits.
    Ok, Mas como ele funciona?
    O sistema vai entregar para o player um item, depois do tempo configuravel ele irá remover, não importa onde esteja, ele vai remover.
    Instalação
    \mods\rent.xml
    <?xml version="1.0" encoding="UTF-8"?> <mod name="Rent System" version="1.0" author="Kimoszin" contact="tibiaking.com" enabled="yes"> <config name="rent_config"><![CDATA[ messages = { sucess = MESSAGE_INFO_DESCR, fail = MESSAGE_STATUS_WARNING, } warningStorage = 45768 items = { ["knight armor"] = {id=2476, time=1, price=3000, premium=true, cap=false}, ["demon legs"] = {id=2495, time=3, price=3000, premium=true, cap=true}, ["blue legs"] = {id=7730, time=2, price=3000, premium=true, cap=true}, ["demon shield"] = {id=2520, time=1, price=3000, premium=true, cap=true}, } function doWarningItemWasRemoved(cid) if (getCreatureStorage(cid, warningStorage) > -1) then local item = items[getItemNameById(getCreatureStorage(cid, warningStorage))] doPlayerSendTextMessage(cid, messages.sucess, "Ok, "..item.time..(item.time > 1 and " minutes" or " minute").." has passed, the rent of "..getItemNameById(item.id).." ended.") doCreatureSetStorage(cid, warningStorage, -1) end end ]]></config> <talkaction words="!rent" event="buffer"><![CDATA[ domodlib('rent_config') local item, itemuid = items[param:lower()], math.random(1000, 65535) if (param == "") then return doPlayerSendTextMessage(cid, messages.fail, "Sorry, you need to inform parameters.") end if (param == "list") then local str = "~* Rent System by Kimoszin *~\n\n" for name, iten in pairs(items) do str = str..string.sub(name, 0, 1):upper()..string.sub(name, 2):lower().." - "..iten.price.."gps \n" end str = str .."\n WWW.TIBIAKING.COM" return doPlayerPopupFYI(cid, str) end if not(item) then return doPlayerSendTextMessage(cid, messages.fail, "Sorry, but it is not possible to rent this item.") end if (item.premium and not(isPremium(cid))) then return doPlayerSendTextMessage(cid, messages.fail, "You need a premium account.") end if (item.cap and not(getPlayerFreeCap(cid) >= getItemWeightById(item.id, 1, 1))) then return doPlayerSendTextMessage(cid, messages.fail, "You don't have capacity.") end if not(doPlayerRemoveMoney(cid, item.price)) then return doPlayerSendTextMessage(cid, messages.fail, "Sorry, you do not have any money.") end doItemSetAttribute(doPlayerAddItem(cid, item.id, 1), "uid", itemuid) doPlayerSendTextMessage(cid, messages.sucess, "You rented a "..getItemNameById(item.id).." for "..item.time.. (item.time > 1 and " minutes" or " minute")..".") doCreatureSetStorage(cid, warningStorage, item.id) local player_id = getPlayerGUID(cid) addEvent(function() local player = getPlayerByGUID(player_id) if not(isPlayer(player)) then db.executeQuery("DELETE FROM `player_items` WHERE `player_items`.`player_id` = "..player_id.." AND `itemtype` = "..item.id..";") else doPlayerSendTextMessage(cid, messages.sucess, "Ok, "..item.time..(item.time > 1 and " minutes" or " minute").." has passed, the rent of "..getItemNameById(item.id).." ended.") doCreatureSetStorage(cid, warningStorage, -1) doRemoveItem(itemuid, 1) end end, item.time * 60 * 1000) ]]></talkaction> <creatureevent name="rentLogin" type="login" event="buffer"><![CDATA[ domodlib('rent_config') doWarningItemWasRemoved(cid) ]]></creatureevent> </mod>  
    Explicações
    ♣ Comandos:
    !rent itemname: vai alugar o item !rent list: vai mostrar a lista dos item que são alugaveis. ♣ Variaveis
    id: id do item que vai ser alugado time: tempo do item que vai ser alugado price: preço do item que vai ser alugado premium: vai verificar se o player é premium cap: vai verificar se o player tem capacidade para alugar o item
  18. Gostei
    BennyDz deu reputação a Victor Fasano Raful em GESIOR AJUDA EM GUILDS.PHP 2016   
    Benny, veja se esta pagina de guilds te deixa mais confortável.
     
    http://pastebin.com/HHTTQHWE
     
  19. Gostei
    BennyDz recebeu reputação de Fabricio Herrmann em Preciso de um LOGOTIPO   
    voce sabe php?
  20. Gostei
    BennyDz deu reputação a Switz em Eu estou procurando um guild.php warm 2016   
    Igual esse?
  21. Gostei
    BennyDz deu reputação a psychonaut em Ajuda para terminar meu script Por favor   
    Tenta colocar chaves, deixando assim:
    {CONST_SLOT_HEAD}, Faz isso em todos, e tenta dar um print nos valores pra ver o que ta printando, ou tenta fazer isso. 
    getPlayerSlotItem(cid, const[1]).uid
  22. Gostei
    BennyDz deu reputação a L3K0T em Ajuda para terminar meu script Por favor   
    tenta assim 
    local slots pra 
    slots =
  23. Gostei
    BennyDz deu reputação a L3K0T em Ajuda para terminar meu script Por favor   
    deve tá faltando isso 
     
    function onSay(cid, words, param, channel)
  24. Gostei
    BennyDz deu reputação a Vodkart em Ajuda em avanzado DeathBroadcast phx   
    tem que colocar uma verificação para saber se é jogador, como vai pegar level de um monstro??
  25. Gostei
    BennyDz recebeu reputação de Vodkart em Get Level Total Guild   
    function getGuildLevel(cid)          local Info = db.getResult("SELECT SUM(`level`) as `level` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = "..getPlayerGuildId(cid)..") ")             local level= Info:getDataInt("level")                return level          end   soma nivel de membros de uma aliança   exemplo:     function onSay(cid, words, param, channel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Guild Level Total: "..getGuildLevel(cid).." .") return true end  

Informação Importante

Confirmação de Termo