Ir para conteúdo

Orochi Elf

Membro
  • Registro em

  • Última visita

Tudo que Orochi Elf postou

  1. Orochi Elf postou uma resposta no tópico em Suporte & Pedidos
    Salve galera, bom.. muitos membros me pediram este módulo, então eu resolvi fazer pra ajudar a galera. Seguinte eu terminei a layout, mas ainda não fiz o sistema, o que vocês acham da layout? o que eu mudo? o que eu adiciono? Sugestões por favor kk
  2. UEHAUEAHUEAUEHUEHEUHEUHAUEHAUHEA
  3. REP+ mentalmente também vale EUHAEHUAHEUHAUHEUEUHUEHA
  4. aprenderam? rçrçrç
  5. Que nada mano, existe muitos outros scripters TOPS ativos, que eu vou citar o nome de alguns que eu gosto (Suicide, xWhiteWolf, Gantz <3), mas obrigado pela consideração <3 Justamente, ele só aparece uma vez, do mesmo jeito que só ganha a experiência por capturar uma vez (parecido com o da PXG) Funcionar, funciona. Só que eu não fiz a adaptação. Mas em breve vou adicionar ao tópico. Amigo, isto não tem nada haver com o tópico, qualquer coisa é só criar um tópico aqui no fórum , que ctza que vão ter ajudar.
  6. Mano, se precisar de ajuda pra fazer o Tv System, e o Duel (Parecido com o PXG) pra por nesse sv ai, me chama rçrç, me animei.
  7. Miiiller ta vooltandooo *-------* <3 <3
  8. Orochi Elf postou uma resposta no tópico em Suporte Tibia OTServer
    Kyo <- Acho este Nick pfto. Ralf Kim Todos personagens do KOF.
  9. local items = { [1740] = {ammount = 5}, [1747} = {ammount = 5}, [1748] = {ammount = 10}, [1749] = {ammount = 2}, [884] = {ammount = 3}, } [iD do Item] = {ammount = Quantidade},
  10. Bom.. seria necessário você ter editado a tag e o script. Não testei. Tag <action itemid="884;1740;1747-1749" event="script" value="quests.lua"/> Script local items = { [1740] = {ammount = 5}, [1747} = {ammount = 5}, [1748] = {ammount = 10}, [1749] = {ammount = 2}, [884] = {ammount = 3}, } function onUse(cid, item) local i = items[item.uid] if i then if getPlayerFreeCap(cid) >= getItemWeightById(item.uid, i.ammount) then doPlayerAddItem(cid, item.uid, i.ammount) doPlayerSendTextMessage(cid, 27, "Voce ganhou "..i.ammount.."x "..getItemNameById(item.uid)) return true end doPlayerSendCancel(cid, "Voce precisa de "..getItemWeightById(item.uid, i.ammount).." de cap para fazer esta quest.") return true end end
  11. Boa sorte pra quem vai usa-los. Eu não pretendo não kk
  12. Agora que vi, que o Suicide deu uma pequena editada nos códigos kkkk. Esse erro ai, foi que ele moveu a variável para o lugar errado kkk local cargos = { ["tutor"] = {prefixNick = "[TUTOR]", group = 2}, ["gm"] = {prefixNick = "[GM]", group = 4}, ["cm"] = {prefixNick = "[GM]", group = 5}, ["adm"] = {prefixNick = "[ADM]", group = 6}, } local function kick(cid) if isPlayer(cid) then doRemoveCreature(cid, true) end return true end function onSay(cid, words, param, channel) local t = string.explode(param, ",") if param == "" or not tostring(t[1]) or not tostring(t[2]) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o nome do jogador e o nome do cargo que deseja atribuir à ele, separados por vírgula. Exemplo: /cargo Player, GM") end if not isPlayer(getCreatureByName(t[1]:lower())) then doPlayerSendCancel(cid, "Este player não está online, ou não existe.") return true end local c = cargos[t[2]:lower()] if not c then doPlayerSendCancel(cid, "Cargo inexistente.") return true end db.executeQuery("UPDATE `players` SET `name` = '" .. c.prefixNick .. " ".. t[1]:lower() .. " ' WHERE name = '" .. t[1]:lower() .. "';") doPlayerSetGroupId(getCreatureByName(t[1]:lower(), c.group)) addEvent(kick, 5 * 1000, getCreatureByName(t[1]:lower())) doPlayerSendTextMessage(getCreatureByName(t[1]:lower()), 27, "Voce sera kikado em 5 segundos.") return true end
  13. É porisso que eu detesto tfs 1.0 Códigos rídiculos Teste assim local config = { -- strong health potion [7588] = {health = {250, 350}, vocations = {3, 4}, text = 'paladins and knights', level = 50, emptyId = 7634}, -- strong mana potion [7589] = {mana = {115, 185}, vocations = {1, 2, 3}, text = 'sorcerers, druids and paladins', level = 50, emptyId = 7634}, -- great mana potion [7590] = {mana = {150, 250}, vocations = {1, 2}, text = 'sorcerers and druids', level = 80, emptyId = 7635}, -- great health potion [7591] = {health = {425, 575}, vocations = {4}, text = 'knights', level = 80, emptyId = 7635}, -- health potion potion [7618] = {health = {125, 175}, emptyId = 7636}, -- mana potion potion [7620] = {mana = {75, 125}, emptyId = 7636}, -- great spirit potion [8472] = {health = {250, 350}, mana = {100, 200}, vocations = {3}, text = 'paladins', level = 80, emptyId = 7635}, -- ultimate health potion [8473] = {health = {650, 850}, vocations = {4}, text = 'knights', level = 130, emptyId = 7635}, -- antidote potion [8474] = {antidote = true, emptyId = 7636}, -- small health potion [8704] = {health = {60, 85}, emptyId = 7636} } local removeOnUse = true -- True or False local antidote = Combat() antidote:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) antidote:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) antidote:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true) antidote:setParameter(COMBAT_PARAM_AGGRESSIVE, false) antidote:setParameter(COMBAT_PARAM_DISPEL, CONDITION_POISON) local exhaust = Condition(CONDITION_EXHAUST_HEAL) exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100)) -- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion. function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = config[item.itemid] if not potion then return true end if itemEx.itemid ~= 1 or itemEx.type ~= THING_TYPE_PLAYER then return true end local player = Player(cid) if player:getCondition(CONDITION_EXHAUST_HEAL) then player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUAREEXHAUSTED)) return true end if potion.antidote and not antidote:execute(itemEx.uid, Variant(itemEx.uid)) then return false end if (potion.level and player:getLevel() < potion.level) or (type(potion.vocations) == 'table' and not isInArray(potion.vocations, player:getVocation():getBase():getId())) and not (player:getGroup():getId() >= 2) then player:say(string.format('This potion can only be consumed by %s of level %d or higher.', potion.text, potion.level), TALKTYPE_MONSTER_SAY) return true end if type(potion.health) == 'table' and not doTargetCombatHealth(0, itemEx.uid, COMBAT_HEALING, potion.health[1], potion.health[2], CONST_ME_MAGIC_BLUE) then return false end if type(potion.mana) == 'table' and not doTargetCombatMana(0, itemEx.uid, potion.mana[1], potion.mana[2], CONST_ME_MAGIC_BLUE) then return false end local cStorage = player:getStorageValue(Storage.Achievements.PotionAddict) if cStorage < 100000 then player:setStorageValue(Storage.Achievements.PotionAddict, math.max(1, cStorage) + 1) elseif cStorage == 100000 then player:addAchievement('Potion Addict') player:setStorageValue(Storage.Achievements.PotionAddict, 100001) end doCreatureSayWithRadius(itemEx.uid, 'Aaaah...', TALKTYPE_MONSTER_SAY, 2, 2, toPosition) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) if removeOnUse then item(item.uid):remove(1) end return true end
  14. Qual item que você está esperando ganhar?
  15. Aah claro, erro meu :s local cargos = { ["tutor"] = {prefixNick = "[TUTOR]", group = 2}, ["gm"] = {prefixNick = "[GM]", group = 4}, ["cm"] = {prefixNick = "[GM]", group = 5}, ["adm"] = {prefixNick = "[ADM]", group = 6} } local function kick(cid) if isPlayer(cid) then doRemoveCreature(cid, true) end return true end function onSay(cid, words, param, channel) local t = string.explode(param, ",") local c = cargos[t[2]:lower()] if param == "" or not tostring(t[1]) or not tostring(t[2]) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o nome do jogador e o nome do cargo que deseja atribuir à ele, separados por vírgula. Exemplo: /cargo Player, GM") end if not isPlayer(getCreatureByName(t[1]:lower())) then return doPlayerSendCancel(cid, "Este player não está online, ou não existe.") end if not c then return doPlayerSendCancel(cid, "Cargo inexistente.") end db.executeQuery("UPDATE `players` SET `name` = '" .. c.prefixNick .. " ".. t[1]:lower() .. " ' WHERE name = '" .. t[1]:lower() .. "';") doPlayerSetGroupId(getCreatureByName(t[1]:lower(), c.group)) addEvent(kick, 5 * 1000, getCreatureByName(t[1]:lower())) doPlayerSendTextMessage(getCreatureByName(t[1]:lower()), MESSAGE_STATUS_CONSOLE_BLUE, "Voce sera kikado em 5 segundos.") return true end
  16. Miiiller meu amooor <3 Que saudades broother, ta voltando a ativa? :v
  17. Testa assim local cargos = { ["tutor"] = {prefixNick = "[TUTOR]", group = 2}, ["gm"] = {prefixNick = "[GM]", group = 4}, ["cm"] = {prefixNick = "[GM]", group = 5}, ["adm"] = {prefixNick = "[ADM]", group = 6} } local function kick(cid) if isPlayer(cid) then doRemoveCreature(cid, true) end return true end function onSay(cid, words, param, channel) local t = string.explode(param, ",") local c = cargos[t[2]:lower()] if param == "" or not tostring(t[1]) or not tostring(t[2]) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o nome do jogador e o nome do cargo que deseja atribuir à ele, separados por vírgula. Exemplo: /cargo Player, GM") end if not isPlayer(getCreatureByName(t[1]:lower())) then return doPlayerSendCancel(cid, "Este player não está online, ou não existe.") end if not c then return doPlayerSendCancel(cid, "Cargo inexistente.") end db.executeQuery("UPDATE `players` SET `name` = '" .. c.prefixNick .. " ".. t[1]:lower() .. " ' WHERE name = '" .. t[1]:lower() .. "';") doPlayerSetGroupId(getCreatureByName(t[1]:lower(), c.group) addEvent(kick, 5 * 1000, getCreatureByName(t[1]:lower())) doPlayerSendTextMessage(getCreatureByName(t[1]:lower()), MESSAGE_STATUS_CONSOLE_BLUE, "Voce sera kikado em 5 segundos.") return true end
  18. Tenho certeza então que você não está configurando tudo certinho. Pois vários métodos acima, estão funcionais. @Edit Com qual item você está testando?
  19. Vai no XML do monstro. Procure por: <look type= Mude por: <look typeex="9785"
  20. É porque está faltando o arquivo "cargo.lua" dentro da pasta "talkactions/scripts" Você tem certeza que criou ele, e colocou o código acima?
  21. Não testei. local items = { [1740] = {ammount = 5}, [1747} = {ammount = 5}, [1748] = {ammount = 10}, [1749] = {ammount = 2}, } function onUse(cid, item) local i = items[item.uid] if i then if getPlayerFreeCap(cid) >= getItemWeightById(item.uid, i.ammount) then for a = 1, i.ammount do doPlayerAddItem(cid, item.uid) end doPlayerSendTextMessage(cid, 27, "Voce ganhou "..i.ammount.."x "..getItemNameById(item.uid)) return true end doPlayerSendCancel(cid, "Voce precisa de "..getItemWeightById(item.uid, i.ammount).." de cap para fazer esta quest.") return true end end
  22. Crie a pasta Mods, se não funcionar você põe dentro da pasta modules mesmo. Não posso garantir que vai funcionar, porém é um teste né
  23. Orochi Elf postou uma resposta no tópico em Suporte & Pedidos
    Eu particularmente não editaria um servidor de pokemon, eu estou dando apenas uma sugestão para a galera que gosta de editar, porque todos os servidores que tem aqui no forum são a mesma coisa, sempre. Não muda nada, além de ter mais bugs ou algo parecido.
  24. Orochi Elf postou uma resposta no tópico em Suporte & Pedidos
    Bom.. espero que alguém leve minha sugestão em consideração .
  25. Bom.. não seria necessariamente usar "onEquip, onDeEquip", seria apenas criar uma condição simples nas spells. if not isInArray({2160, 2158}, getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid) then doPlayerSendCancel(cid, "Voce não pode usar esta magia.") return false end Spell (Exura) local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.5, 2) function onCastSpell(cid, var) if not isInArray({2160, 2158}, getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid) then doPlayerSendCancel(cid, "Voce não pode usar esta magia.") return false end return doCombat(cid, combat, var) end

Informação Importante

Confirmação de Termo