Postado Junho 26, 2017 7 anos Bom, eu estou cuidando de um server de poketibia, porém estou com alguns problemas em relação à skill Shredder Team, ela está fazendo os clones hitarem (até com skill), e eu não queria que isso acontecesse... Essa é a script da mesma, se alguém puder me ajudar, fico grato! function onCastSpell(cid, var) --fixed by Ricardoroxx to DXP if isSummon(cid) then return true end local team = { ["Scyther"] = "ScytherTeam", ["Shiny Scyther"] = "Shiny ScytherTeam", ["Scizor"] = "ScizorTeam", } function adjustLife(cid, health) if isCreature(cid) then --setCreatureMaxHealth(cid, (getVitality(cid) * HPperVITwild)) n presta essa linha...HAUIOEhOIU doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doCreatureAddHealth(cid, -(math.abs(health))) end end function setStorage(cid, storage) if isCreature(cid) then if getPlayerStorageValue(cid, storage) >= 1 then setPlayerStorageValue(cid, storage, 0) end end end function RemoveTeam(cid) if isCreature(cid) then doSendMagicEffect(getThingPos(cid), 211) doRemoveCreature(cid) end end if getPlayerStorageValue(cid, 637500) >= 1 or getPlayerStorageValue(cid, 637501) >= 1 then return true end local name = getCreatureName(cid) name = doCorrectString(name) local pos = getThingPos(cid) local time = 13 local life, maxLife = getCreatureHealth(cid), getCreatureMaxHealth(cid) --local gender = getPokemonGender(cid) sem genero os poke... local num = (name == "Scizor") and 4 or 3 local random = math.random(0, 5) local pk = {} doCreatureSay(cid, "Shredder Team!", TALKTYPE_MONSTER) if team[name] then pk[1] = cid doTeleportThing(pk[1], {x=4, y=3, z=10}, true) addEvent(doTeleportThing, random, pk[1], getClosestFreeTile(pk[1], pos), false) doSendMagicEffect(getThingPos(pk[1]), 211) for i = 2, num do pk = doCreateMonsterNick(pk[1], name, retireShinyName(name), getThingPos(pk[1]), true) --??-- doTeleportThing(pk, getClosestFreeTile(pk, pos), false) addEvent(adjustLife, 150, pk, life-maxLife) setPlayerStorageValue(pk, 510, name) doSendMagicEffect(getThingPos(pk), 211) end --- setPlayerStorageValue(pk[1], 637501, 1) addEvent(setStorage, time * 1000, pk[1], 637501) --- setPlayerStorageValue(pk[2], 637500, 1) addEvent(RemoveTeam, time * 1000, pk[2]) --- setPlayerStorageValue(pk[3], 637500, 1) addEvent(RemoveTeam, time * 1000, pk[3]) --- if name == "Scizor" then setPlayerStorageValue(pk[4], 637500, 1) addEvent(RemoveTeam, time * 1000, pk[4]) end end return true end
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.