Ir para conteúdo
  • 0

Esta Certo A Edição Neste Script?


juan500

Pergunta

eu adicionei ao script esta função: doPlayerAddSkillTry la no finalzinho do script esta certo????ou errado o modo que eu adicionei????

 

 

SCRIPT:

 

local time = 120 * 1000 -- 120 * 1000 = 2 min

 

local wolf = {lookType = 143, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, 5)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

 

local condition = createConditionObject(CONDITION_ATTRIBUTES)

setConditionParam(condition, CONDITION_PARAM_TICKS, time)

setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, addShielding)

setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)

setCombatCondition(combat, condition)

 

local speed = createConditionObject(CONDITION_HASTE)

setConditionParam(speed, CONDITION_PARAM_TICKS, time)

setConditionFormula(speed, 0.7, -56, 0.7, -56)

setCombatCondition(combat, speed)

 

local outfit = createConditionObject(CONDITION_OUTFIT)

setConditionParam(outfit, CONDITION_PARAM_TICKS, time)

addOutfitCondition(outfit, wolf)

setCombatCondition(combat, outfit)

 

local exhaust = createConditionObject(CONDITION_EXHAUST)

setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)

setConditionParam(exhaust, CONDITION_PARAM_TICKS, time)

setCombatCondition(combat, exhaust)

 

function onCastSpell(cid, var)

doPlayerAddSkillTry (cid,5,40) <<<<<<<<<<<<<<<<<<<LOCAL QUE EU PUIS A FUNÇÃO!!!

return doCombat(cid, combat, var)

end

 

gostaria de saber se por essa função num script de spell da algum bug????

Link para o comentário
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

×
×
  • Criar Novo...