Em 02/01/2017 at 00:51, samlecter disse:Tem algum problema sério nas Funções de dano das spells tbm. Se não for nelas, é em algo que interfere nessas functions.
Vou deixar só 2 exemplos de spells que fiz e me deram muita dor de cabeça simplesmente pq funcionavam mas não causam dano, eu refiz várias vezes cada uma com outra função diferente de dano, principalmente a Play Rough e nada... (Esse Aqua jet estava funcionando e do nada parou de causar dano mas acho que tem essa spell pronta em alguma base)
Play Rough
elseif spell == "Play Rough" then -- não quer causar dano, testei com umas 4 functions diferentes, gambiarras e nada... desisti.addEvent(doDanoWithProtectWithDelay, 2, cid, target, NORMALDAMAGE, min, max, 0, poisonBomb1) --doDanoInTargetWithDelay(cid, target, NORMALDAMAGE, min, max, 0) doSendMagicEffect(getThingPosWithDebug(cid), 211) -- 111 local x = getClosestFreeTile(cid, getThingPosWithDebug(target)) addEvent(stopNow, 20, cid, 1000) doDisapear(cid)doCreatureSetNoMove(cid, true)setPlayerStorageValue(cid, 32698, 1) -- storage do silence addEvent(setPlayerStorageValue, 1501, cid, 32698, -1) -- storage do silence addEvent(doCreatureSetNoMove, 1500, cid, false)local ret = {}ret.id = targetret.cd = 1 ret.eff = 440ret.check = 0ret.first = trueret.cond = "Paralyze" local ret2 = {}ret2.id = targetret2.cd = 1ret2.check = 0ret2.eff = 440ret2.spell = spellret2.cond = "Silence" addEvent(doTeleportThing, 1100, cid, x, false) addEvent(doFaceCreature, 1100, cid, getThingPosWithDebug(cid)) doMoveDano2(cid, target, NORMALDAMAGE, min, max, ret, spell) -- só pra aplicar o paralyze (sem dano nem efeito) doMoveDano2(cid, target, NORMALDAMAGE, 0, 0, ret2, spell) -- doCombatAreaHealth(cid, NORMALDAMAGE, posT, 0, 0, 0, 3) doSendMagicEffect(posT, 3) doSendMagicEffect(posT, 507) doSendMagicEffect(posT, 142) doSendMagicEffect(posT, 440) doSendMagicEffect(posT, 148) addEvent(doSendMagicEffect, 50, posT, 440) addEvent(doSendMagicEffect, 120, posT, 440) addEvent(doAppear, 1100, cid)
A Play Rough não é simples igual do PxG não, fiz p/ o poke "pular" em cima do target, daí desaparece(cid) e fica em silence p/ não atacar durante essa spell, fica um effect de "briga debaixo de nuvem/fumaça" no target, o target fica paralizado e silenciado enquanto a spell durar e quando acaba o seu pokemon(cid) reaparece num sqm próximo ao target
Aqua Jet
elseif spell == "Aqua Jet" thenlocal a = isCreature(target) and getCreatureDirectionToTarget(cid, target) or getCreatureLookDir(cid)local t = {[0] = {0, -5},[1] = {5, 0}, [2] = {0, 5},[3] = {-5, 0}, }--[[t = {[0] = {658, {x=p.x+1, y=p.y-1, z=p.z}, 0, -5},[1] = {660, {x=p.x+5, y=p.y+1, z=p.z}, 5, 0}, [2] = {659, {x=p.x+1, y=p.y+5, z=p.z}, 0, 5},[3] = {657, {x=p.x-1, y=p.y+1, z=p.z}, -5, 0}, }--]]local function doTeleportMe(cid, pos) if not isCreature(cid) then return true end if canWalkOnPos(pos, false, true, true, true, true) then doTeleportThing(cid, pos) end --addEvent(doAppear, 500, cid) --if getPlayerStorageValue(cid, storages.isMega) == "Mega Ampharos" then-- doPantinOutfit(cid, 0, getPlayerStorageValue(cid, storages.isMega))-- else -- if not isInArray({"Skarmory", "Plusle", "Infernape", "Altaria"}, getSubName(cid, target)) then --if getPlayerStorageValue(cid, storages.isMega) >= 1 then -- doSetCreatureOutfit(cid, {lookType = megasConf[getPlayerStorageValue(cid, storages.isMega)].out}, -1) -- checkOutfitMega(cid, getPlayerStorageValue(cid, storages.isMega)) -- end --endend--ddEvent(doSendMagicEffect, 900, getThingPosWithDebug(cid), 53) -- splashsetPlayerStorageValue(cid, 32698, 1) -- storage do silence addEvent(setPlayerStorageValue, 1400, cid, 32698, -1) -- storage do silencedoMoveInArea2(cid, 0, triplo6, WATERDAMAGE, min, max, spell)--addEvent(doMoveInArea2, 10, cid, 0, aquaJet1, WATERDAMAGE, min, max, spell)--addEvent(doMoveInArea2, 350, cid, 0, aquaJet2, WATERDAMAGE, min, max, spell)--addEvent(doMoveInArea2, 650, cid, 0, aquaJet3, WATERDAMAGE, min, max, spell)local ppos = getThingPosWithDebug(cid)for i = 0, 5 dolocal tj = {[0] = {611, {x=ppos.x+1, y=ppos.y-(i+1), z=ppos.z}, {x=ppos.x + 1,y=ppos.y-(i+1), z=ppos.z}},[1] = {613, {x=ppos.x+(i+1), y=ppos.y+1, z=ppos.z}, {x=ppos.x+(i+1) + 1, y=ppos.y + 1, z=ppos.z}},[2] = {610, {x=ppos.x+1, y=ppos.y+(i+1), z=ppos.z}, {x=ppos.x + 1, y=ppos.y+(i+1) + 1, z=ppos.z}},[3] = {612, {x=ppos.x-(i+1), y=ppos.y+1, z=ppos.z}, {x=ppos.x-(i+1), y=ppos.y + 1, z=ppos.z}}} addEvent(doSendMagicEffect, i*250, tj[a][2], tj[a][1]) endlocal pos = getThingPos(cid) doSendMagicEffect(pos, 307) doDisapear(cid) local x, y = t[a][1], t[a][2] pos.x = pos.x + x pos.y = pos.y + y addEvent(doTeleportMe, 900, cid, pos) -- 300 addEvent(doAppear, 1400, cid)
OBS: Essas spells estão fazendo o que tem q fazer, exceto causar dano...
Tem um Vidio para eu ver como fursona??


















info
Grupo: Banidos
Registrado: 14/04/15
Posts: 7
Reputação: 0
O Sistema de Imunidade a certo tipo de pokémon não está funcionando... Mesmo mexendo na tabela de efetividade ou na ability "levitate" continua dando a mesma coisa