Eae galera do xtibia,
To precisando de ajuda com uma spell, apenas quero almentar o atk dela.
function isSummon(uid) return uid ~= getCreatureMaster(uid) or false end local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 111) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 111) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.0, -1000000, 0.0, -5000000) arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) setCombatArea(combat1, area1) local function onCastSpell1(cid,var) return doCombat(parameters.cid, parameters.combat, parameters.var) and doCreatureSay(parameters.cid2, "" .. parameters.name .. ", " .. parameters.spell .. ".") end local c = { ["Bulbasaur"] = {x = { m1 = combat1, spell = "porrada" } } } function onCastSpell(cid, var) if #getCreatureSummons(cid) ~= 0 then for i = 1, #getCreatureSummons(cid) do if c[getCreatureName(getCreatureSummons(cid)[i])] then parameters = {cid = getCreatureSummons(cid)[i], cid2 = cid, combat = c[getCreatureName(getCreatureSummons(cid)[i])].x.m1, var = var, name = getCreatureName(getCreatureSummons(cid)[i]), spell = c[getCreatureName(getCreatureSummons(cid)[i])].x.spell} return onCastSpell1(parameters) end return true end return true end return true end
Ela está atacando pouco... de só uma olhada no ss.
O sistema funciona assim...
Você sumona o pokemon, fala m1 e o pokemon soltara a magia.
Ajuda ae plix ,
grato