Ir para conteúdo

Furabio

Conde
  • Total de itens

    962
  • Registro em

  • Última visita

  • Dias Ganhos

    10

Tudo que Furabio postou

  1. Mas pra isso eu preciso saber, qual sistema tu ta usando, quais storages, etc ... não da pra fazer sem ter conhecimento disso.
  2. Posta o link do sistema de onde tu pegou isso.
  3. A sua não aumenta é isso ? poste sua talkaction ...
  4. Meu amigo trabalha profissionalmente na área de designer, o cara é muito lendário, ele só usa photoshop para criações e edições de imagens. Lembrando que quem faz é o programa é o cara que usa ele e não o contrário, mas dificilmente tem um programa com mais ferramentas de edição que o photoshop. Tem o THE GIMP, mesmo vendo mais críticas do elogios, muitos dos que o já utilizaram recomendam(photoshop ainda é melhor), mas se quiser dar um conferida é só baixa-lo.
  5. Acredito que o photoshop e o coreldraw.
  6. Tópico movido para pedidos e dúvidas resolvido.
  7. Furabio

    Blood Drain

    Não sou de editar ou fazer spells, então é capaz que não funcione de primeira, mas teste aí: local config = { percentNo = 5, -- a partir de que porcentagem ele não drena mais percent = 25, --porcentagem que irá drenar. exhaust = 0 --tempo em segundos para usar a magia de novo. } local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, 13) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 40) function onCastSpell(cid, var) local enemy = getCreatureTarget(cid) local enemyHealth = (getCreatureMaxHealth(enemy) / 100 * config.percent) local enemyHealthTwo = (getCreatureMaxHealth(enemy) / 100 * config.percentNo) -- Retira 5% if exhaustion.get(cid, 10223) then return false end if getCreatureHealth(enemy) >= enemyHealth then doCreatureAddHealth(enemy, -(enemyHealth)) doCreatureAddHealth(cid, enemyHealth) doSendAnimatedText(getThingPos(enemy), "-"..enemyHealth, 5001) exhaustion.set(cid, 10223, config.exhaust) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Uma drenagem de health foi ativada, retirando "..config.percent"% de life de sua vitima e acrescentando a você.") return doCombat(cid, combat, var) elseif getCreatureHealth(enemy) <= enemyHealth then if getCreatureHealth(enemy) <= enemyHealthTwo then doPlayerSendTextMessage(cid, 22, "Seu alvo está com menos de "..config.percentNo.."% de life a magia não pode ser usada!") return false else doCreatureAddHealth(enemy, -(enemyHealthTwo)) doCreatureAddHealth(cid, enemyHealthTwo) doSendAnimatedText(getThingPos(enemy), "-"..enemyHealthTwo, 5001) exhaustion.set(cid, 10223, config.exhaust) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Uma drenagem de health foi ativada, retirando "..config.percentNo"% de life de sua vitima e acrescentando a você.") return doCombat(cid, combat, var) end end return true end
  8. Script simples mas pode ser útil, para os ot admin. data/talkactions/scripts addplayersonline.lua : function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end local v = param:split(",") if #v ~= 2 then player:sendCancelMessage("Insufficient parameters.") return false end local item, count = tonumber(v[1]), tonumber(v[2]) for _, pid in pairs(Game.getPlayers()) do pid:addItem(item, count) end broadcastMessage("A equipe acaba de mandar "..count.." "..ItemType(item):getName() " para todos os player online!", MESSAGE_STATUS_WARNING) return false end tag.XML : <talkaction words="/addplayersonline" separator=" " script="addplayersonline.lua" />
  9. Seu pedido : http://www.xtibia.com/forum/topic/234480-tfs-04-npc-de-promotion-por-task/ Estarei movendo o tópico para pedidos e dúvidas resolvido já.
  10. Npc : local Config = { Monsters = { -- ["Name"] = {amount = quantidade} ["Demon"] = {amount = 30}, ["Hydra"] = {amount = 10}, }, StoragePro = 54661, -- Não mexer se não souber editar Money = 100 -- Dinheiro } 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 local msg = msg:lower() local release = talkState[talkUser] if msgcontains(msg, "mission") then if getPlayerStorageValue(cid, Config.StoragePro) < 1 then selfSay("A missão para promovido custa " .. Config.Money .. " você aceita fazer ?", cid) release = 1 elseif getPlayerStorageValue(cid, Config.StoragePro) == (2 + #Config.Monsters) then selfSay("Você já cumpriu a missão peça pra ser {promovido}.", cid) release = 2 elseif getPlayerStorageValue(cid, Config.StoragePro) == (3 + #Config.Monsters) then selfSay("Voce já terminou as missões, pode ir em embora!", cid) release = 0 end elseif msgcontains(msg, "yes") and release == 1 then if doPlayerRemoveMoney(cid, Config.Money) then local text = "" for monsters, v in pairs(Config.Monsters) do txt = txt .. ", " txt = txt .. v.amount .. " {" .. monsters .. "}" end npcHandler:say("A missão é matar esses monstros para mim" .. text .. ".", cid) for i, _ in pairs(Config.Monsters) do setPlayerStorageValue(cid, i, 0) end setPlayerStorageValue(cid, Config.StoragePro, 1) release = 0 else selfSay("Você não tem money suficiente!", cid) release = 0 end elseif msgcontains(msg, "no") and release == 2 then selfSay("Até logo!", cid) release = 0 end if msgcontains(msg, "lista") and getPlayerStorageValue(cid, Config.StoragePro) < (#Config.Monster + 3) then local text, n = "", 0 for monsters, v in pairs(Config.Monsters) do local sto = getPlayerStorageValue(cid, monsters) if sto < v.amount then n = n + 1 text = text .. ", " text = text .. (tostring(sto) < tostring(1) and v.amount or (tostring(v.amount) - tostring(sto))) .. " {" .. monsters .. "}" end end text = text:sub(3) if n > 1 then selfSay("Para terminar sua missão você ainda tem que matar esses monstros : " .. text, cid) release = 0 elseif n == 1 then selfSay("Você só tem mais um monstro à matar : " .. text, cid) release = 0 else selfSay("Você já terminou de matar os monstro que lhe pedi, agora sim tu é digno de ser {promovido}.", cid) release = 2 end elseif msgcontains(msg, "promovido") and release == 2 then selfSay("Aqui está sua promoção jovem soldado!!", cid) setPlayerVocation(cid, (getPlayerVocation(cid) + 4)) setPlayerStorageValue(cid, Config.StoragePro, (#Config.Monsters + 3)) -- Para deixar em utilizavel a storage para outras coisas for monsters, _ in pairs(Config.Monsters) do setPlayerStorageValue(cid, monsters, -1) end release = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) NPC.XML : <?xml version="1.0" encoding="UTF-8"?> <npc name="Aldo" script="arquivo.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="128" head="17" body="54" legs="114" feet="0" addons="2"/> <parameters> <parameter key="message_greet" value="Olá |PLAYERNAME|, para você ser promoivido precisa passar por uma {mission}, para de uma olhada no que fazer diga {lista} ."/> </parameters> </npc> creaturescripts : local Config = { Monsters = { -- ["Name"] = {amount = quantidade} ["Demon"] = {amount = 30}, ["Hydra"] = {amount = 10}, }, StoragePro = 54661, -- Não mexer se não souber editar Money = 100 -- Dinheiro } function onKill(cid, target) if not isMonster(target) and getPlayerStorageValue(cid, Config.StoragePro) >= (2 + #Config.StoragePro) then return false end local monster = Config.Monsters[getCreatureName(target):lower] if monster then local sto = getPlayerStorageValue(cid, monster) if sto < (monster.amount - 1) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Task message: [" .. (sto + 1) .. "/" .. monster.amount .. "] of " .. getCreatureName(target) .. ".") setPlayerStorageValue(cid, monster, (sto + 1)) elseif sto == (monster.amount - 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Congratulations!! you have killed" .. (sto + 1) .. "/" .. monster.amount .. "] of " .. getCreatureName(target) .. "s ands and completed the task.") setPlayerStorageValue(cid, monster, (sto + 1)) setPlayerStorageValue(cid, Config.StoragePro, (getPlayerStorageValue(cid, Config.StoragePro) + 1)) end end return true end function onLogin(cid) registerCreatureEvent('taskNpc') return true end tag : <event type="login" name="verf_taskNpc" event="script" value="arquivo.lua"/> <event type="kill" name="taskNpc" event="script" value="arquivo.lua"/>
  11. Muito bom obrigado por compartilhar.
  12. Parabéns cara ta ficando muito bom.
  13. Furabio

    Skill Por stage

    Tópico movido para pedidos e dúvidas resolvido.
  14. Coloca umas print ai, pra eu ver como ta ficando.
  15. Muito bom, qualquer dia vou tirar um tempo pra dar uma olhada.
  16. Só é possível essa alteração com as sources ...
  17. To gostando da mudanças, parabéns a todos envolvidos nas mudanças.
  18. Vindo de você posso ter certeza que o servidor vão ter ótimos sistemas, boa sorte com o projeto
  19. Aprovado e movido, obrigado por compartilhar este conteúdo.
  20. Esse sistema foi criado pelo OneShot/Garou, e já tem disponibilizado aqui no fórum, estarei movendo seu pra lixeira, obrigado por tentar compartilhar conteúdos. http://www.xtibia.com/forum/topic/187075-perfect-upgrade-system/ Tópico movido para Lixeira Pública.
  21. Obrigado por compartilhar, tópico movido para à área que mais se encaixa.
  • Quem Está Navegando   0 membros estão online

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