Ir para conteúdo

Magalhaes92

Banido
  • Registro em

  • Última visita

Tudo que Magalhaes92 postou

  1. Magalhaes92 postou uma resposta no tópico em Suporte Tibia OTServer
    Alguem sabe como faz pra paladin n usar sd ?
  2. Iai galera. queria que nesse script o play ganhasse 1500 de Hp e Mp Por cada resete. Ou 4% de Hp e Mp do level q resetou. Alguem pra me ajudar ? Script: --[[Script made 100% by Nogard and Night Wolf. You can feel free to edit anything you want, but don't remove the credits]] local config = { minlevel = 700, --- level inical para resetar price = 10000, --- preço inicial para resetar newlevel = 30, --- level após reset priceByReset = 10000, --- preço acrescentado por reset percent = 5, ---- porcentagem da vida/mana que você terá ao resetar (em relação à sua antiga vida total) maxresets = 4, levelbyreset = 50 --- quanto de level vai precisar a mais no próximo reset } --- end config function getResets(uid) resets = getPlayerStorageValue(uid, 378378) if resets < 0 then resets = 0 end return resets end local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid function addReset(cid) if(npcHandler:isFocused(cid)) then npcHandler:releaseFocus(cid) end talkState[talkUser] = 0 resets = getResets(cid) setPlayerStorageValue(cid, 378378, resets+1) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) local hp = getCreatureMaxHealth(cid) local resethp = hp*(config.percent/100) setCreatureMaxHealth(cid, resethp) local differencehp = (hp - resethp) doCreatureAddHealth(cid, -differencehp) local mana = getCreatureMaxMana(cid) local resetmana = mana*(config.percent/100) setCreatureMaxMana(cid, resetmana) local differencemana = (mana - resetmana) doCreatureAddMana(cid, -differencemana) doRemoveCreature(cid) local description = resets+1 db.executeQuery("UPDATE `players` SET `description` = ' [Reset: "..description.."]' WHERE `players`.`id`= ".. playerid .."") db.executeQuery("UPDATE `players` SET `level`="..config.newlevel..",`experience`= 0 WHERE `players`.`id`= ".. playerid .."") return true end local newPrice = config.price + (getResets(cid) * config.priceByReset) local newminlevel = config.minlevel + (getResets(cid) * config.levelbyreset) if msgcontains(msg, 'reset') then if getResets(cid) < config.maxresets then selfSay('You want to reset your character? It will cost '..newPrice..' gp\'s!', cid) talkState[talkUser] = 1 else selfSay('You already reached the maximum reset level!', cid) end elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if getPlayerMoney(cid) < newPrice then selfSay('Its necessary to have at least '..newPrice..' gp\'s for reseting!', cid) elseif getPlayerLevel(cid) < newminlevel then selfSay('The minimum level for reseting is '..newminlevel..'!', cid) else doPlayerRemoveMoney(cid,newPrice) playerid = getPlayerGUID(cid) addEvent(function() if isPlayer(cid) then addReset(cid) end end, 3000) local number = getResets(cid)+1 local msg ="---[Reset: "..number.."]-- You have reseted! You'll be disconnected in 3 seconds." doPlayerPopupFYI(cid, msg) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no')) and isInArray({1}, talkState[talkUser]) == TRUE then talkState[talkUser] = 0 npcHandler:releaseFocus(cid) selfSay('Ok.', cid) elseif msgcontains(msg, 'quantity') then selfSay('You have a total of '..getResets(cid)..' reset(s).', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  3. Tentei, e nao vai de jeito nenhum. vou ver se consigo pegar um que usava antes pra fazer o teste, mas obg a todos por tentar ajudar.
  4. Já ! e fica na mesma coisa. Fiz isso brother. Mas n deu em nada, continua a mesma coisa
  5. Iai galera to com um modem 3 em 1. Ele e modem + roteador + wi-fi. So que nao estou conseguindo colocar o ot server tibia online de jeito algum, desbloqueio a porta do NAT só q da não pra logar no servidor, só aparece ate a tela ''Account Manager'' e não passa dai. sera que alguém pode me ajudar pelo amor de deus ? Eu do adm, gm, itens ate minha ''bunda eu do se vc quiser''. Alguém me ajuda pf ! Modem: Technicolor TD5136v2 - Velox
  6. Iai galera do Tk, uso um sistema de RESETE. Queria ajuda de voces para implatar ''bonificaçao'' por cada resete que o play dê e aparecer quantos resetes a pessoa tem dando ''look'' Agradeço desde ja Eu uso esse script ↓↓ local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if not npcHandler:isFocused(cid) then return false end local player = Player(cid) config = { minlevel = 3500, --- Level inical para resetar price = 0, --- Preço inicial para resetar newlevel = 10, --- Level após reset priceByReset = 0, --- Preço acrescentado por reset percent = 10, ---- Porcentagem da vida/mana que você terá ao resetar (em relação à sua antiga vida total) maxresets = 10, ---- Maximo de resets levelbyreset = 0 --- Quanto de level vai precisar a mais no próximo reset } function addReset(cid) player = Player(cid) resets = getResets(cid) hp = player:getMaxHealth() resethp = hp*(config.percent/100) player:setMaxHealth(resethp) mana = player:getMaxMana() resetmana = mana*(config.percent/100) player:setMaxMana(resetmana) playerid = player:getGuid() player:remove() db.query("UPDATE `players` SET `resets`="..resets.. + 1",`experience`= 0 WHERE `players`.`id`= ".. playerid .."") db.query("UPDATE `players` SET `level`="..config.newlevel..",`experience`= 0 WHERE `players`.`id`= ".. playerid .."") return true end local newPrice = config.price + (getResets(cid) * config.priceByReset) local newminlevel = config.minlevel + (getResets(cid) * config.levelbyreset) if msgcontains(msg, 'reset') then if getResets(cid) < config.maxresets then npcHandler:say('You want to reset your character? It will cost '..newPrice..' gp\'s!', cid) npcHandler.topic[cid] = 1 else npcHandler:say('You already reached the maximum reset level!', cid) end elseif msgcontains(msg, 'yes') and npcHandler.topic[cid] == 1 then if player:getLevel() > newminlevel then if player:removeMoney(newPrice) then addEvent(function() if isPlayer(cid) then addReset(cid) end end, 3000) local number = getResets(cid)+1 local msg ="---[Reset: "..number.."]-- You have reseted! You'll be disconnected in 3 seconds." player:popupFYI(msg) npcHandler.topic[cid] = 0 npcHandler:releaseFocus(cid) else npcHandler:say('Its necessary to have at least '..newPrice..' gp\'s for reseting!', cid) npcHandler.topic[cid] = 0 end else npcHandler:say('The minimum level for reseting is '..newminlevel..'!', cid) npcHandler.topic[cid] = 0 end elseif(msgcontains(msg, 'no')) and isInArray({1}, talkState[talkUser]) == TRUE then npcHandler.topic[cid] = 0 npcHandler:releaseFocus(cid) npcHandler:say('Ok.', cid) elseif msgcontains(msg, 'quantity') then npcHandler:say('You have a total of '..getResets(cid)..' reset(s).', cid) npcHandler.topic[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  7. Magalhaes92 postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    Tem como colocar pra aparecer os resetes dando look ?
  8. Iai galera do TK, queria saber se voces podem me disponibilizar ne uma script. a escript funciona como ''!rank'' mas no caso seria !pk ai mostraria quem e o top e a quantidade ( Não precisa ter os desenhos da skulls, estou querendo um simples mesmo ) e quem e o top. Quem nem !ranklvl !ranksword e etc ... mas com premiaçao de 12 em 12 Hrs. Id do item: 2157 Agradeço desde de ja.
  9. Magalhaes92 postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    Como faço pra adicionar uma nova moeda no dicer ?
  10. Iae galera do tk, queria saber se alguém manja do desse dbug, pois quando do reload creaturescripts o serve fecha sozinho. Alguém sabe como resolver isso ?
  11. Mano, nao ta dando .. fiz td q vc disse pra fazer, puxo a alavanca e nada =/ Funfou agora, kk VLLW
  12. Tava precisando mt disso, Mt obrigado man !
  13. Sera que alguém poderia me disponibilizar um script que venda os itens puxando a alavanca, com moeda diferente ? ID da Moeda: 2157
  14. Entendi ! Obg ! Mas tem como mudar a versão pra as funções funcionarem ?
  15. registerCreatureEvent(cid, "CombatDodge") registerCreatureEvent(cid, "anunciarmorte") registerCreatureEvent(cid, "PvpChannel") registerCreatureEvent(cid, "AdvEffect") registerCreatureEvent(cid, "LevelItem") registerCreatureEvent(cid, "critical") if getPlayerStorageValue(cid, 48903) == -1 then setPlayerStorageValue(cid, 48903, 0) end end
  16. Iai galera do TK. O galera to com um mapa rox, coloquei os scripts de anunciar morte, critical, dodge, pvp channel e varios outros, mas não quer funcionar alguém sabe o pq ? e como resolver ?
  17. Magalhaes92 postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    eu fiz isso pow, coloquei td certinho ! mas n preciso colocar uniq id na alavanca ou nada n ?
  18. Magalhaes92 postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    vllw mano. Mas minha alavanca n ta esta teleportando os plays. na action do chao e na alavanca, coloco q action id, ou uniq id ?

Informação Importante

Confirmação de Termo