Ir para conteúdo
  • 0

Isso Pode Dar Lag No Servidor?


Du100

Pergunta

Se eu usar todo esse tempo de duração nesse script, pode dar lag?

 

exemplo: se 200 player usarem esse script vai ficar contando todos ao mesmo tempo,

 

iae? da lag?

 

 

 

local tempo = 900000000

 

local ml = 5

local skillshield = 0

local skillsword = 2

local skillaxe = 2

local skillclub = 2

local skilldistance = 2

local health = 0 -- A cada 1 segundo quantos aumentar de vida

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, 4)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

 

local condition = createConditionObject(CONDITION_ATTRIBUTES)

setConditionParam(condition, CONDITION_PARAM_TICKS, tempo)

setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml)

setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield)

setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword)

setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe)

setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub)

setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance)

setCombatCondition(combat, condition)

 

local condition = createConditionObject(CONDITION_HASTE)

setConditionParam(condition, CONDITION_PARAM_SPEED, 400)

setConditionParam(condition, CONDITION_PARAM_TICKS, tempo)

setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)

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)

setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health)

setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 5000)

setCombatCondition(combat, condition)

 

function onCastSpell(cid, var)

doSendAnimatedText(getThingPos(cid), "Transformar!!!", 215)

return doCombat(cid, combat, var)

end

Editado por Du100
Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

×
×
  • Criar Novo...