Ir para conteúdo

Featured Replies

  • Respostas 8
  • Visualizações 840
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • testa assim  spell storage + attk nao tenho certeza. vou consertar dps local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, 180) setCombatParam(combat1, COMBA

  • @Fabian Marzan depende de alguns fatores mas pode ser por verificações de storage por tempo na spell e mudar a storage ou aumentar o valor de uma mesma storage no buff sendo assim Buff: a cada mome

Posted Images

Postado
Em 06/06/2020 em 22:16, Fabian Marzan disse:

Nao sei como e pra criar um storage, tenho aki um spell do buff que troca do outfit


local tempo = 2 -- tempo em segundos.
local ml = 5 -- quantos ira aumentar o skill de ML
local skillfist = 1 -- quantos ira aumentar o skill de Fist
local skillsword = 1 -- quantos ira aumentar o skill de Sword
local skillshield = 1 -- quantos ira aumentar o skill de Shield
local health = 275-- A cada 1 segundo quantos aumentar de vida
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
     
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml)
setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield)
setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit)
setCombatCondition(combat, condition)

 
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)
setCombatCondition(combat, condition)

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, 180)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.0, -60000, -1.0, -75000)
          


local function onCastSpell1(parameters)
    return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)
end




                  
function onCastSpell(cid, var)
local waittime = 2.0 -- Tempo de exhaustion
local storage = 1600 -- não mecha
if exhaustion.check(cid, storage) then
 doPlayerSendCancel(cid, "Aguarde "..(exhaustion.get(cid, storage)).." segundos para usar Jutsu nuevamente.")
doSendMagicEffect(getCreaturePosition(cid), 2)
    return false
end
if getPlayerStorageValue(cid, 1600) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then
    doCombat(cid, combat, var)
    setPlayerStorageValue(cid, 1600,1) -- storage verifica transformado, quando = 1 player esta transformado.
    doCreatureSay(cid, "Hachimon Tonkou!", TALKTYPE_ORANGE_1)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Buff activado por "..tempo.." segundos!")
	exhaustion.set(cid, storage, waittime)	
	local parameters = { cid = cid, var = var}
	for k = 1, 1 do
        addEvent(function()
            if isCreature(cid) then
			 local outfit = {lookType = 55}
                 doSetCreatureOutfit(cid, outfit, 15000)		 
            end
        end, 1 + ((k-1) * 600))
    end
	for k = 1, 1 do
        addEvent(function()
            if isCreature(cid) then
			  local outfit = {lookType = 56}
                 doSetCreatureOutfit(cid, outfit, 6000)	
            end
        end, 15000 + ((k-1) * 600))
    end


	
else
    doPlayerSendCancel(cid, "Aguarde "..(exhaustion.get(cid, storage)).." segundos para usar Jutsu nuevamente.")
end
end

 

 

 

AKI DO SPELL DO ATK


local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, 180)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 64)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.0, -36500, -1.0, -44600)



local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end

function BijuRasengan(cid)
	if isCreature(cid) and isCreature(getCreatureTarget(cid)) then
		local position = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}
		doSendMagicEffect(position, 289)
	end
end




function onCastSpell(cid, var)
local waittime = 1 -- Tempo de exhaustion
local storage = 3 -- não mecha
if exhaustion.check(cid, storage) then
   doPlayerSendCancel(cid, "Usted esta cansado.")
doSendMagicEffect(getCreaturePosition(cid), 2)
    return false
end
local parameters = {cid = cid, var = var, combat1 = combat1 , combat2 = combat2}
for i = 1, 1 do
	addEvent(function()
		if isCreature(cid) then
		addEvent(onCastSpell1, 100, parameters)
			addEvent(BijuRasengan,100,cid)
		
		end
	end, 1 + ((i-1) * 650))
end
exhaustion.set(cid, storage, waittime)
return true
end

 

testa assim 
spell storage + attk

nao tenho certeza. vou consertar dps

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, 180)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 64)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.0, -36500, -1.0, -44600)


local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end

function BijuRasengan(cid)
	if isCreature(cid) and isCreature(getCreatureTarget(cid)) then
		local position = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}
		doSendMagicEffect(position, 289)
	end
end

local storageLoadEffect = 3
function onCastSpell(creature, variant)
    if combat:execute(creature, variant) then
        local loadEffect = math.max(1, creature:getStorageValue(storageLoadEffect))
        Position(creature:getPosition() + Position(1, 0, 0)):sendMagicEffect(loadEffect)
        return true
    end
    return false
end        


function onCastSpell(cid, var)
local waittime = 1 -- Tempo de exhaustion
local storage = 3 -- não mecha
if exhaustion.check(cid, storage) then
   doPlayerSendCancel(cid, "Usted esta cansado.")
doSendMagicEffect(getCreaturePosition(cid), 2)
    return false
end
local parameters = {cid = cid, var = var, combat1 = combat1 , combat2 = combat2}
for i = 1, 1 do
	addEvent(function()
		if isCreature(cid) then
		addEvent(onCastSpell1, 100, parameters)
			addEvent(BijuRasengan,100,cid)
		
		end
	end, 1 + ((i-1) * 650))
end
exhaustion.set(cid, storage, waittime)
return true
end

 

  • 5 months later...

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo