Ir para conteúdo

DelPupo

Campones
  • Total de itens

    27
  • Registro em

  • Última visita

Tudo que DelPupo postou

  1. DelPupo

    Upgrade Error

    Ae galera, estou com um problema eu fiz a atualização do meu servidor e o sistema de upgrade parou de funciona. Vou explicar o error: 1º-Quando clico no crystal upgrade era para aparecer isso(ta aparecendo):19:14 You remove the dust and revealed that it is a 100% upgrade for hit +(100~100). e logo em segudiar muder de nome, porém isso não acontece. 2º -Ao clicar no Crystal Upgrade e na arma ele funcionaria mais porem aparecer como se eu tivesse abrir o crystal upgrade denovo, preciso de ajuda, acho que é uma atualização feita na versão que ta empedindo de da certo. Script. [quote-- Script Made By Jajajiji -- Config local maxupgradetimes = 50 -- How many times can upgrade the item local messagetype = 25 -- Color of the message -- End Config local upgrades = { [7800] = {chance = 100, amount = {1, 5}, set = setItemAttack, get = getItemAttack, name = "attack"}, [7801] = {chance = 80, amount = {6, 10}, set = setItemAttack, get = getItemAttack, name = "attack"}, [7802] = {chance = 60, amount = {11, 15}, set = setItemAttack, get = getItemAttack, name = "attack"}, [7803] = {chance = 40, amount = {16, 20}, set = setItemAttack, get = getItemAttack, name = "attack", reset = TRUE}, [7804] = {chance = 20, amount = {21, 30}, set = setItemAttack, get = getItemAttack, name = "attack", reset = TRUE}, [7805] = {chance = 100, amount = {1, 5}, set = setItemDefense, get = getItemDefense, name = "defense"}, [7806] = {chance = 80, amount = {6, 10}, set = setItemDefense, get = getItemDefense, name = "defense"}, [7807] = {chance = 60, amount = {11, 15}, set = setItemDefense, get = getItemDefense, name = "defense"}, [7808] = {chance = 40, amount = {16, 20}, set = setItemDefense, get = getItemDefense, name = "defense", reset = TRUE}, [7809] = {chance = 20, amount = {26, 30}, set = setItemDefense, get = getItemDefense, name = "defense", reset = TRUE}, [7810] = {chance = 100, amount = {1, 5}, set = setItemArmor, get = getItemArmor, name = "armor"}, [7811] = {chance = 80, amount = {6, 10}, set = setItemArmor, get = getItemArmor, name = "armor"}, [7812] = {chance = 60, amount = {11, 15}, set = setItemArmor, get = getItemArmor, name = "armor"}, [7813] = {chance = 40, amount = {16, 20}, set = setItemArmor, get = getItemArmor, name = "armor", reset = TRUE}, [7814] = {chance = 20, amount = {21, 30}, set = setItemArmor, get = getItemArmor, name = "armor", reset = TRUE}, [7815] = {chance = 100, amount = {1, 5}, set = setItemHitChance, get = getItemHitChance, name = "hit"}, [7816] = {chance = 80, amount = {6, 10}, set = setItemHitChance, get = getItemHitChance, name = "hit"}, [7817] = {chance = 60, amount = {11, 15}, set = setItemHitChance, get = getItemHitChance, name = "hit"}, [7818] = {chance = 40, amount = {16, 20}, set = setItemHitChance, get = getItemHitChance, name = "hit", reset = TRUE}, [7819] = {chance = 20, amount = {21, 30}, set = setItemHitChance, get = getItemHitChance, name = "hit", reset = TRUE}, [7850] = {chance = 100, amount = {100, 100}, set = setItemAttack, get = getItemAttack, name = "attack"}, -- Only give when your acces is >= 5 [7851] = {chance = 100, amount = {100, 100}, set = setItemDefense, get = getItemDefense, name = "defense"}, -- Only give when your acces is >= 5 [7852] = {chance = 100, amount = {100, 100}, set = setItemArmor, get = getItemArmor, name = "armor"}, -- Only give when your acces is >= 5 [7853] = {chance = 100, amount = {100, 100}, set = setItemHitChance, get = getItemHitChance, name = "hit"} -- Only give when your acces is >= 5 } local minmax = { min1 = 7800, -- Minimum actionid for access < 5 max1 = 7819, -- Maximum actionid for access < 5 min2 = 7850, -- Minimum actionid for access >= 5 max2 = 7853, -- Maximum actionid for access >= 5 } function onUse(cid, item, fromPosition, itemEx, toPosition) -- From here on down is a bit difficult (for the noob) understand the structure if item.actionid == 0 then local new = getPlayerAccess(cid) >= 5 and math.random(minmax.min2, minmax.max2) or math.random(minmax.min1, minmax.max1) local text = "You remove the dust and revealed that it is a "..upgrades[new].chance.."% upgrade for "..upgrades[new].name.." +("..upgrades[new].amount[1].."~"..upgrades[new].amount[2]..")."..(upgrades[new].reset ~= nil and "It has a slight chance of reset your item." or "") local description = "This crystal has "..upgrades[new].chance.."% upgrade for "..upgrades[new].name.." +("..upgrades[new].amount[1].."~"..upgrades[new].amount[2]..")."..(upgrades[new].reset ~= nil and "It has a slight chance of reset your item." or "") doPlayerSendTextMessage(cid, messagetype, text) doSetItemActionId(item.uid, new) doSetItemSpecialDescription(item.uid, description) setItemName(item.uid, "active upgrade crystal") elseif upgrades[item.actionid] ~= nil then if upgrades[item.actionid].get(itemEx.uid) >= 0 then if itemEx.actionid < 100+maxupgradetimes then local randomamount = math.ceil(math.random(upgrades[item.actionid].amount[1],upgrades[item.actionid].amount[2])) local amount = math.max(0, itemEx.actionid - 100) local chance = math.random(0, 100) local text = "Upgrade of "..getItemName(itemEx.uid).." failed in "..upgrades[item.actionid].name.." +"..randomamount.."." local animation = "Failed!" --doSetItemActionId(itemEx.uid, 100+(amount+1)) --setItemName(itemEx.uid, getItemNameById(itemEx.itemid).." (+"..(amount+1)..")") if chance <= upgrades[item.actionid].chance then text = "Upgrade of "..getItemName(itemEx.uid).." up in "..upgrades[item.actionid].name.." +"..randomamount.."." upgrades[item.actionid].set(itemEx.uid, (upgrades[item.actionid].get(itemEx.uid)+randomamount)) setItemName(itemEx.uid, getItemNameById(itemEx.itemid).." (+"..(amount+1)..")") doSetItemActionId(itemEx.uid, 100+(amount+1)) elseif upgrades[item.actionid].reset ~= nil or upgrades[item.actionid].reset == TRUE then if math.random(0, 1) == 1 then text = "The item "..getItemName(itemEx.uid).." was reset." animation = "Reset!" doRemoveItem(itemEx.uid) doPlayerAddItem(cid, getItemIdByName(getItemNameById(itemEx.itemid))) end end if (not text == "The item "..getItemName(itemEx.uid).." was reset.") then if getItemAttack(itemEx.uid) >= 0 then setItemAttackSpeed(itemEx.uid, 1) end end doPlayerSendTextMessage(cid, messagetype, text) doSendMagicEffect(toPosition, (chance <= upgrades[item.actionid].chance and 13 or 2)) doSendAnimatedText(toPosition, (chance <= upgrades[item.actionid].chance and "Success!" or animation),(chance <= upgrades[item.actionid].chance and TEXTCOLOR_WHITE or TEXTCOLOR_RED)) doRemoveItem(item.uid) else doPlayerSendCancel(cid, "This item already has "..maxupgradetimes.." times of upgrades.") end else doPlayerSendCancel(cid, "This item can't upgrade.") end else doPlayerSendCancel(cid, "Sorry, not possible.") end return TRUE end
  2. DelPupo

    Mudança de Distro

    Vlw cara tive um momento de aminésia aqui e esqueçi disso. Se foi meio profeta tambem adivinha que troquei o TFS 4 pelo TFS 0.3.6pl1 Rep + Duvida Sanada, Podem Mover o tópico.
  3. Gente eu fiz uma mudança de distro recentemente, e vi que todos arquivos do globalevents pararam de funcionar, alguem pode me ajudar para ver o por que isso aconteceu ?
  4. Tipo é por que 250 já passo do limite posto pelo tibia não sei como resolver isso mais sei que você não pode ultrapassar um limite que e de 230 (Não tenho certeza) ai toda magia que o player da o ot server cai !!! Bota po magic level ficar 230 ta bom já !!!
  5. Preciso de ajuda, preciso mudar meu distro de versão pois ja tentei varios outros distros e cada vez aparecia um problema diferente, tem como mudar um distro de versão ? Se tiver como é ?
  6. O negocio e que eu nem tenho as sources do meu server . Não tem outro jeito não ? Tipo vou mudar isso, tem como botar o cap tipo de ADM 10000 e nunca abaixa?
  7. Ae galera, to precisando de por um limite de capacidade no meu server mais não sei como eu sei que tem como, pois no radbr o Master Viciado boto e preciso muito desse limite ,pois meu ot tem muita rates começa a da debug nos skills por causa dce mt cap. esperando ajuda vlw
  8. Eu peguei outro distro, podem fechar o topico!!!
  9. O bug é o seguinte: Acontece com todos npcs Desde que mudei o distro infrente esse poblema, ja peguei os npcs originais mais foi tudo em vão não obitive resultado, por isso estou pedindo a vocês uso o TFS 4 preciso de ajuda não estou querendo mudar de distro novamente.
  10. Ae pessoal to precisando mt mesmo desse é tipo assim o player termina a arena 1 , 2 e 3 e como presente eu queria dar para ele um troféu com o nick dele.
  11. O dos Heslife n funfo mais eu ja conseguir, pode fechar o topico.
  12. Nem Fuciono cara, obrigado pela tentativa
  13. 10 de reputação para quem me ajuda nessa To Precisando muito dou 10 de reputação claro que 1 durante 10 dias 10 segundos de exhaust to querendo nimguem sabe não ?
  14. Preciso de ajuda pois meu ot apareceu um error ao mesmo tempo que boto o char para logar ele desloga e nem chega a aparecer no tibia.exe mais e pelo distro apareceu somente isso: Aguardando ajuda
  15. DelPupo

    Bug Npcs

    eu ja baxei o tsf original e não deu certo, sabe outro distro bom ?
  16. DelPupo

    Bug Npcs

    mesma coisa
  17. DelPupo

    Bug Npcs

    Sim, keywordhandler, main, modules, npchandler, npcsystem, queue
  18. DelPupo

    Bug Npcs

    todos os npcs apareceram esse bug aogra [23/07/2012 18:01:22] [Error - Npc interface] [23/07/2012 18:01:22] data/npc/scripts/default.lua [23/07/2012 18:01:22] Description: [23/07/2012 18:01:22] data/npc/scripts/default.lua:1: attempt to index global 'KeywordHandler' (a nil value) [23/07/2012 18:01:22] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [23/07/2012 18:01:22] cannot open data/npc/scripts/npc/devilkiller.lua: No such file or directory
  19. DelPupo

    Bug Npcs

    TheForgottenServer 8.6 v.5.0
  20. DelPupo

    Bug Npcs

    Antes Agora
  21. DelPupo

    Heal Bugado

    E isso aki --[[ Idea by Pitufo Script by Shawak ]]-- local config = { healHP = 10000000, healPlayers = "yes", healMonsters = "yes", } local healthArea = { fromX = 165, fromY = 51, fromZ = 7, toX = 169, toY = 54, toZ = 7, } function onThink(cid, interval, lastExecution) for x = healthArea.fromX, healthArea.toX do for y = healthArea.fromY, healthArea.toY do for z = healthArea.fromZ, healthArea.toZ do local pos = {x=x, y=y, z=z, stackpos = 253} local thing = getThingfromPos(pos) doSendMagicEffect(pos, 12) if thing.itemid > 0 then if(isPlayer(thing.uid) == TRUE and string.lower(config.healPlayers) == "yes") then doCreatureAddHealth(thing.uid, config.healHP) doCreatureAddMana(thing.uid, config.healHP) if string.lower(getConfigValue("showHealingDamage")) == "no" then doSendAnimatedText(pos, "+"..config.healHP.."", 18) end elseif(isMonster(thing.uid) == TRUE and string.lower(config.healMonsters) == "yes") then doCreatureAddHealth(thing.uid, config.healHP) if string.lower(getConfigValue("showHealingDamageForMonsters")) == "no" then doSendAnimatedText(pos, "+"..config.healHP.."", 18) end end end end end end return TRUE end
  22. DelPupo

    Bug Npcs

    Continuo dando error mais acho que foi mais por falha minha olha como fico:
  23. DelPupo

    Heal Bugado

    é eu conseguir ele logo em seguida após postar aki mais de mesma forma valew
  24. DelPupo

    Heal Bugado

    Na minha cidade tem uma fonte com heal mais toda vez que alguem entra nela para se healar aprece esse error alguem me ajuda. [23/07/2012 17:17:29] [Error - GlobalEvent Interface] [23/07/2012 17:17:29] data/globalevents/scripts/heal.lua:onThink [23/07/2012 17:17:29] Description: [23/07/2012 17:17:29] data/globalevents/scripts/heal.lua:35: bad argument #1 to 'lower' (string expected, got boolean) [23/07/2012 17:17:29] stack traceback: [23/07/2012 17:17:29] [C]: in function 'lower' [23/07/2012 17:17:29] data/globalevents/scripts/heal.lua:35: in function <data/globalevents/scripts/heal.lua:24> [23/07/2012 17:17:29] [Error - GlobalEvents::think] Couldn't execute event: heal ______________________________________________________________________________________________ Outra coisa também é que o templo da minha cidade está no lugar errado eu ja mudei no config mais continua assim, nasce em outra cidade sem ser a que eu selecionei Esperando AJuda
  25. DelPupo

    Bug Npcs

    Por favor alguem me ajuda. Os npcs não respondem e quando falam aparece esse error [23/07/2012 17:07:59] [Error - Npc interface] [23/07/2012 17:07:59] data/npc/scripts/reset.lua:onCreatureSay [23/07/2012 17:07:59] Description: [23/07/2012 17:07:59] data/npc/lib/npcsystem/npchandler.lua:539: attempt to call global 'getDistanceTo' (a nil value) [23/07/2012 17:07:59] stack traceback: [23/07/2012 17:07:59] data/npc/lib/npcsystem/npchandler.lua:539: in function 'isInRange' [23/07/2012 17:07:59] data/npc/lib/npcsystem/npchandler.lua:365: in function 'onCreatureSay' [23/07/2012 17:07:59] data/npc/scripts/reset.lua:98: in function <data/npc/scripts/reset.lua:98> São todo os NPCs não somente este !!! Já tentei mudar o distro e não ouve modificação, preciso muito de ajuda !!! A versão é : 8.6
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...