Ir para conteúdo

nookia

Membro
  • Registro em

  • Última visita

Tudo que nookia postou

  1. local configs = { vocs = {3, 7}, -- vocações permitidas usar limite = 2, -- limite de summons m = { ["70-200"] = {monster = "Wolf", health = 1000, mana=500}, ["201-300"] = {monster = "War Wolf", health = 1000, mana=500}, ["301-400"] = {monster = "Werewolf", health = 1000, mana=500}, } } -- [dolevel-atéolevel] = {nome do monstros, vida dele, e mana usada pra sumonar} function onSay(cid, words) if isInArray(configs.vocs, getPlayerVocation(cid)) then local tsummon = getTable(cid) if tsummon ~= nil then if getPlayerMana(cid) < tsummon.mana then return doPlayerSendCancel(cid, "You dont have mana.") end if #getCreatureSummons(cid) == configs.limite then return doPlayerSendCancel(cid, "You have reached the limit of summons.") end local sm = doSummonCreature(tsummon.monster, getThingPosition(cid)) doConvinceCreature(cid, sm) setCreatureMaxHealth(sm, tsummon.health) doCreatureAddHealth(sm, tsummon.health) doCreatureAddMana(cid, -tsummon.mana) else doPlayerSendCancel(cid, "You dont have level to use this spell.") end else doPlayerSendCancel(cid, "Your vocation can not use this spell.") end return true end function getTable(cid) for i, x in pairs(configs.m) do local tb = string.explode(i, "-") if getPlayerLevel(cid) >= tonumber(tb[1]) and getPlayerLevel(cid) <= tonumber(tb[2]) then tab = x end end return tab end Créditos totalmente ao: MaXwEllDeN Apenas peguei o código aqui no fórum no link: http://www.tibiaking.com/forum/topic/12204-ajuda-script/
  2. nookia postou uma resposta no tópico em Formação de Equipe
    Fala galera do TK! Estou atrás de pessoas interessadas em abrir um Servidor focando o RPG. Projeto: OldWorld Server está com a intenção de expandir e montar uma verdadeira equipe, a ideia é montar um projeto onde o foco é o RPG e focando um bom player Versus player, o projeto já está bem adiantado, enfim, vamos a o que interessa. Vagas: Programador (1) - trata-se de um cargo que o membro será responsável pelos códigos do jogo, criação de sistemas. Web Master (1) - o membro escolhido para o cargo de web master será responsável obviamente pelo nosso website, criação de paginas, sistemas e manutenção. Observações: - Necessito de uma candidatos composto por pessoas interessadas, ativas, ou seja, que saibam dar ideias e críticas construtivas, experientes. - O candidato pode se cadastrar em mais de uma função; - O candidato será testado a curto-médio prazo dependendo da função escolhida; - Nós procuraremos o candidato, ou seja, iremos atrás. Formulário: - Nome: - Idade: - Skype: - Tempo disponível: Contato: - Preencha o formulário com os requerimentos da lista. - Nós procuraremos o candidato. ​ Bom é isso, aguardo resposta de vocês.
  3. Editei meu post ali, testa lá RodAlbu
  4. nookia postou uma resposta no tópico em Suporte Tibia OTServer
    É em algum arquivo .lua no seu creaturescripts, da uma procurada igual o Caronte falou. ENERGY ou 11 Abraço.
  5. local pokemons = {"Shiny Dragonite s", "Tangrowth s", "Magmortar s", "Shiny Lapras s", "Shiny Blaziken s", "Shiny Tyranitar s", "Shiny Electabuzz s", "Shiny Gengar s"} -- Para adicionar mais pokemons adicione um , "NomePokmeon" depois do " function onUse(cid, item, fromPosition, item2, toPosition) local chance = math.random(1, 100) local pokeSummon = pokemons[chance(#pokemons)] doSummonCreature(pokeSummon, getThingPos(cid)) doCreatureSay(cid, "Cuidado! Pokemons Muito Perigosos apareceram do Nada OMG.", TALKTYPE_ORANGE_1) doSendMagicEffect(getCreaturePosition(cid), 29) doRemoveItem(item.uid, 1) return true end
  6. nookia postou uma resposta no tópico em Suporte Tibia OTServer
    Vá na pasta creaturescripts e abre o creaturescripts.xml e adicione a seguinte tag: <event type="login" name="DoubleXP" event="script" value="DoubleXP.lua"/> Agora vá em creaturescripts/scripts e crie um arquivo chamado DoubleXP.lua e adicione: -- Monday = Segunda -- Tuesday = Terça -- Wednesday = Quarta -- Thursday = Quinta -- Friday = Sexta -- Saturday = Sabado -- Sunday = Domingo function onLogin(cid) DoubleDays = {"Saturday", "Sunday"} if isInArray(DoubleDays, os.date("%A")) then doPlayerSetRate(cid, SKILL__LEVEL, 2.0) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "[Double XP]\nHoje estamos em evento de Double XP!\nAproveite.") end return true end No caso de duas vezes por mês é só adicionar o script quando quiser, quando já tiver feito o evento retire a tag do creaturescripts/creaturescripts.xml Faça bom aproveito, flw, vlw.
  7. Melhor website para versão 8.40 http://www.tibiaking.com/forum/topic/7642-nicaw-acc-0707/
  8. Vá em data\movements\scripts e crie um arquivo chamado tilestorage.lua e cole dentro: function onStepIn(cid, item, pos, fromPos) storage = STORAGE -- aqui a storage que deseja if getPlayerStorageValue(cid, storage) < 1 then doTeleportThing(cid, fromPos) doSendMagicEffect(fromPos, CONST_ME_POFF) doPlayerSendCancel(cid, 'MSG AQUI.') -- aqui a mensagem de erro se o player não tiver a storage end doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) return true end Vá em data\movements\movements.xml e adicione a tag: <movevent event="StepIn" uniqueid="1900" script="tilestorage.lua" /> Agora só ir no map editor e adicionar o uniqueid no tile que quiser.
  9. Só trocar: COMBAT_DEATHDAMAGE para: COMBAT_PHYSICALDAMAGE abç.
  10. @xWhiteWolf, pronto amigo, editado, eu só não respondi no tópico novamente porque não to usando seu sistema de Gran Castle e desculpa. @Rofl, Para perder o efeito quando alguém ganha o Gran Tower novamente é só usar um stopEvent e para remover a storage usar: setPlayerStorageValue(cid, 13345, 0) abç.
  11. @xWhiteWolf, porque ajudamos as pessoas e nem rep + dá para ficar tópico resolvido. Mais se quiser eu re-edito novamente.
  12. Vá em lib e crie um arquivo chamado, granAura e cole dentro: local events = {} local function getPositions(cid) local pos = getCreaturePosition(cid) local ret = { [1] = {x = pos.x + 1, y = pos.y, z = pos.z}, [2] = {x = pos.x, y = pos.y + 1, z = pos.z}, [3] = {x = pos.x - 1, y = pos.y, z = pos.z}, [4] = {x = pos.x, y = pos.y - 1, z = pos.z}, } return ret end function granEffect(cid, last) local sec = 200 if (isPlayer(cid) == FALSE) then return false end local positions = getPositions(cid) local last = last or 1 local last = (positions[last] and last) or 1 local next = (last == #positions) and 1 or last + 1 doSendDistanceShoot(positions[last], positions[next], 18) local event = addEvent(granEffect, sec, cid, last + 1) events[cid] = event return true end Em lib ainda abre o constant.lua e function.lua e adicione logo na primeira linha: dofile('data/lib/granAura.lua') Agora vá em creaturescripts/scripts e abre o login.lua e adicione encima do ultimo return TRUE: --granAura-- if getPlayerStorageValue(cid, 13345) == 1 then granEffect(cid) return TRUE end e para ganhar o efeito, é só adicionar a storage 13345 no player que irá ganhar o efeito, no caso se quiser que já logue com o efeito adicione embaixo do primeiro end acima de registerCreatureEvent granEffect(cid) flw, abç.
  13. Nome: Rocky Boots Função: A cada 120 segundos "2 minutos", absorve metade de um dano acima de 1000. Autor: Nokia Ideia: FoxWorld Versão Testada: 8.40+ Bom, vamos a script. Em creaturescript.xml adicione: <event type="statschange" name="rockyBoots" script="rockyBoots.lua"/> Crie um arquivo em creaturescripts/scrips chamado rockyBoots.lua e adicione isso: function onStatsChange(cid, attacker, _type, combat, value) if isPlayer(cid) == TRUE then if getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 7891 then local value = value if (_type == STATSCHANGE_HEALTHGAIN) or (_type == STATSCHANGE_MANAGAIN) then if (value >= 1000) then local metade = math.floor(value/2) if getPlayerStorageValue(cid, 41234) > os.time() then else setPlayerStorageValue(cid, 41234, os.time() + 120) doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -metade, -metade, CONST_ME_NONE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "A sua rocky boots absorveu " .. metade .. " de dano.") return FALSE end end end end end return TRUE end Em creaturescripts/scripts/login.lua adicione a seguinte linha para registra o script: registerCreatureEvent(cid, "rockyBoots") Agora para saber o tempo que vai absorver novamente: Em actions.xml adicione: <action itemid="7891" script="rockyBoots.lua" /> Crie um arquivo em actions/scrips chamado rockyBoots.lua e adicione isso: function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 41234) > os.time() then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Rocky boots carregando. Faltam "..getPlayerStorageValue(cid, 41234) - os.time().." segundos.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Rocky boots protegendo.") end end No caso da bota seria a Magma Boots, imagem da bota em anexo. rocky boots.bmp
  14. function onUse(cid, item, frompos, item2, topos) if item.uid == 9219 then quest = getPlayerStorageValue(cid, 1543) if quest == -1 then doPlayerSendTextMessage(cid,22, "Você completou a quest e recebeu sua recompensa.") doPlayerAddOutfit(cid, ID OUTFIT, 1) doPlayerAddOutfit(cid, ID OUTFIT, 1) setPlayerStorageValue(cid, 1543, 1) else doPlayerSendTextMessage(cid,22,"It is empty.") end end end <action uniqueid="8913" script="quests/nomedaquest.lua" /> Só abrir o RME e colocar o uniqueid 9219.
  15. function onSay(cid, words, param) local t = string.explode(param, ",") if (getPlayerCondition(cid, CONDITION_INFIGHT) == TRUE) then doPlayerSendCancel(cid, "Você só pode usar o comando se não estiver com battle.") return FALSE end if (words == "!mp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 5000) == TRUE then local bp = doPlayerAddItem(cid, 7620, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Você precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!gmp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 12000) == TRUE then local bp = doPlayerAddItem(cid, 7590, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Você precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!ghp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 19000) == TRUE then local bp = doPlayerAddItem(cid, 7591, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Você precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!gsp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 19000) == TRUE then local bp = doPlayerAddItem(cid, 8472, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Você precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!hp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 4500) == TRUE then local bp = doPlayerAddItem(cid, 7618, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Você precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!shp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 10000) == TRUE then local bp = doPlayerAddItem(cid, 7588, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Você precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!smp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 8000) == TRUE then local bp = doPlayerAddItem(cid, 7589, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Você precisa ser premium e ter money para usar esse comando.") return true end end elseif (words == "!uhp") then if isPremium(cid) == TRUE and param == '' then if doPlayerRemoveMoney(cid, 31000) == TRUE then local bp = doPlayerAddItem(cid, 8473, 100) doSendMagicEffect(getPlayerPosition(cid), 30) else doPlayerSendCancel(cid, "Você precisa ser premium e ter money para usar esse comando.") return true end end end return TRUE end
  16. nookia postou uma resposta no tópico em Suporte Tibia OTServer
    Tem esse fórum que é free http://www.mybb.com/ faz o download e coloca na pasta do Website e acessa com o ip/forum e faz a configuração como vai mandando.
  17. local config = { tempo = 2, msg = "DONATE!", items = {2463} -- Itens que vai enviar a msg. } local function doSendText(cid, text) if (isPlayer(cid) == FALSE) then return false end if getPlayerStorageValue(cid, 19234) < 1 then return TRUE end doSendAnimatedText(getPlayerPosition(cid),config.msg, math.random(01,255)) return addEvent(doSendText, config.tempo * 1000, cid, text) end function onEquip(cid, item) if isInArray(config.items, item.itemid) then if getPlayerStorageValue(cid, 19234) < 1 then setPlayerStorageValue(cid, 19234, 1) doSendText(cid, config.msg) end end return TRUE end function onDeEquip(cid, item) if isInArray(config.items, item.itemid) then setPlayerStorageValue(cid, 19234, 0) end return TRUE end Testei e ta funcionando.
  18. Source do servidor, é impossível sem ser por elas, tem que modificar no player.cpp. Caso queira modificar, de CTRL+F e procure por: You advanced from .. Ai lá você faz as modificações que quer.
  19. local coins = {[2148] = 1, [2152] = 100, [2160] = 10000} No 2148 e no 2160, só trocar o ID ali pelo o ID novo da sua sprite.
  20. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 3) arr = { {1, 1, 1}, {1, 3, 1}, {1, 1, 1}, } local area = createCombatArea(arr) setCombatArea(combat, area) function onUseWeapon(cid, var) local min, max = 1200, 1500 -- dano minimo, maximo! addEvent(doAreaCombatHealth, 100, cid, COMBAT_HOLYDAMAGE, getThingPos(getCreatureTarget(cid)), area, -min, -max, 17) return doCombat(cid, combat, var) end Era só adicionar um setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 3) Embaixo do setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true)
  21. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true) arr = { {1, 1, 1}, {1, 3, 1}, {1, 1, 1}, } local area = createCombatArea(arr) setCombatArea(combat, area) function onUseWeapon(cid, var) local min, max = 1200, 1500 -- dano minimo, maximo! addEvent(doAreaCombatHealth, 100, cid, COMBAT_HOLYDAMAGE, getThingPos(getCreatureTarget(cid)), area, -min, -max, 17) return doCombat(cid, combat, var) end
  22. function onUse(cid, item, frompos, item2, topos) local pausa = 30*60*1000 -- (1000 = 1 segundos) Tempo que o script durará local texto = "Você dobrou sua Experiencia por 30 minutos" -- Texto que irá receber ao usar a potion. textofinal = "Acabou o potion de Experiencia." -- Texto que irá receber quando o efeito da potion acabar. local exp = 2 -- O quanto que você quer que dobre sua experiencia, por exemplo 2 é 2x as rates do seu server. expfinal = 1 --Não mude, isso é para a experiencia voltar ao normal. local limitedeuso = 49015 local tempo = 30*60*1000 -- 1000 = 1s então 1000 vezes 60 vezes 30 = 30 minutos local textofinal1 = "Você já esta sob efeito da pot de experiência espere o efeito acabar." local seuitem = 12505 -- seu item que dará double exp local efeito1 = 53 -- efeito que ficara com o char por meia hora local efeito2 = 14 -- efeito que acontecera no momento que usar a pot level = ? -- level necessario --fim da parte configuravel não mecha se nao tiver conhecimento de scripting local timeEffect = 1801 -- tempo em segundos que o efeito vai apareceer no player, 31 = 30 segundos. sempre coloque 1 segundo a mais. function effect() if isPlayer(cid) then local pos = getCreaturePosition(cid) doSendMagicEffect(pos, efeito1) end end if getPlayerLevel(cid) > level then else doPlayerSendCancel(cid, "Você precisa ser level ? para usar o item.") return TRUE end if item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() <= 0) then doRemoveItem(item.uid,1) doPlayerSetExperienceRate(cid,exp) doSendMagicEffect(frompos,efeito2) setPlayerStorageValue(cid, limitedeuso, os.time() + 1800) doPlayerSendTextMessage(cid,22,texto) addEvent(potion,pausa,cid) a = 1 while a ~= timeEffect do addEvent(effect, a * 1000) a = a + 1 end elseif item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() > 0) then doPlayerSendTextMessage(cid,22,textofinal1) end return true end function potion(cid) doPlayerSetExperienceRate(cid,expfinal) doPlayerSendTextMessage(cid,22,textofinal) end Só editar o level ali no ?
  23. nookia postou uma resposta no tópico em Suporte Tibia OTServer
    Em data/creaturescripts/creaturescripts.xml <event type="advance" name="levelQuest" event="script" value="levelQuest.lua"/> Em data/creaturescripts/scripts crie um arquivo chamado levelQuest.lua e coloque: function onAdvance(cid, skill, oldlevel, newlevel) local position = { x= ?, y= ?, z= ? } -- posição local level = ? -- level if getPlayerStorageValue(cid, 46127) == -1 then -- Storage para não ficar voltando para a quest. if skill == SKILL__LEVEL and newlevel >= level then doTeleportThing(cid, position, 0) setPlayerStorageValue(cid, 46127, 1) end return TRUE end end Em data/creaturescripts/scripts/login.lua adicione: registerCreatureEvent(cid, "levelQuest")
  24. nookia postou uma resposta no tópico em Suporte Tibia OTServer
    Entendi agora, não tinha entendido, fiz um codigo para sair efeito no em volta pensando que era as "estrelinhas", enfim, arrumei aqui. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 31) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) --setConditionParam(condition, CONDITION_PARAM_SPEED, -100) setConditionFormula(condition, -0.8, 0, -0.8, 0) setCombatCondition(combat, condition) function onCastSpell(cid, var) target = getCreatureTarget(cid) doSendDistanceShoot(getThingPos(target), {x = getThingPos(target).x-1, y = getThingPos(target).y, z = getThingPos(target).z}, 37) doSendDistanceShoot(getThingPos(target), {x = getThingPos(target).x, y = getThingPos(target).y-1, z = getThingPos(target).z}, 37) doSendDistanceShoot(getThingPos(target), {x = getThingPos(target).x, y = getThingPos(target).y+1, z = getThingPos(target).z}, 37) doSendDistanceShoot(getThingPos(target), {x = getThingPos(target).x+1, y = getThingPos(target).y, z = getThingPos(target).z}, 37) return doCombat(cid, combat, var) end E se você quiser tirar aquele efeito que solta quando acerta a magia coloque assim: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 31) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) --setConditionParam(condition, CONDITION_PARAM_SPEED, -100) setConditionFormula(condition, -0.8, 0, -0.8, 0) setCombatCondition(combat, condition) function onCastSpell(cid, var) return doCombat(cid, combat, var) end
  25. local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_LIGHTGREEN) setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 42) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 11) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -50.0, 0, -50.8, 0) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_HITCOLOR, COLOR_LIGHTGREEN) setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 42) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 11) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -50.0, 0, -50.8, 0) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_HITCOLOR, COLOR_LIGHTGREEN) setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 42) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 11) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -50.0, 0, -50.8, 0) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_HITCOLOR, COLOR_LIGHTGREEN) setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_EFFECT, 42) setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 11) setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -50.0, 0, -50.8, 0) local combat5 = createCombatObject() setCombatParam(combat5, COMBAT_PARAM_HITCOLOR, COLOR_LIGHTGREEN) setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat5, COMBAT_PARAM_EFFECT, 42) setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 11) setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -50.0, 0, -50.8, 0) local combat6 = createCombatObject() setCombatParam(combat6, COMBAT_PARAM_HITCOLOR, COLOR_LIGHTGREEN) setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat6, COMBAT_PARAM_EFFECT, 42) setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 11) setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -50.0, 0, -50.8, 0) local combat7 = createCombatObject() setCombatParam(combat7, COMBAT_PARAM_HITCOLOR, COLOR_LIGHTGREEN) setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat7, COMBAT_PARAM_EFFECT, 42) setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 11) setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -50.0, 0, -50.8, 0) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, parameters.combat3, parameters.var) end local function onCastSpell4(parameters) doCombat(parameters.cid, parameters.combat4, parameters.var) end local function onCastSpell5(parameters) doCombat(parameters.cid, parameters.combat5, parameters.var) end local function onCastSpell6(parameters) doCombat(parameters.cid, parameters.combat6, parameters.var) end local function onCastSpell7(parameters) doCombat(parameters.cid, parameters.combat7, parameters.var) end function onCastSpell(cid, var) if (isPlayer(cid) == FALSE) then return false end local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7 } addEvent(onCastSpell1, 0, parameters) addEvent(onCastSpell2, 200, parameters) addEvent(onCastSpell3, 400, parameters) addEvent(onCastSpell4, 600, parameters) addEvent(onCastSpell5, 800, parameters) addEvent(onCastSpell6, 1000, parameters) addEvent(onCastSpell7, 1200, parameters) return true end

Informação Importante

Confirmação de Termo