Ir para conteúdo

Posts Recomendados

function onThink(cid, interval)
 
if spell == "" then
      local time = 5 * 1000
      local name = getCreatureName(cid)
      local status = getPokemonStatus(name, getOffense(creature) / pokes[name].off)
      local newSummon = doSummonMonster(cid, name)
elseif not isCreature(newSummon) then return end
      setWildPokemonLevel(newSummon, getLevel(cid), status)
      doTeleportThing(newSummon, getThingPos(cid), false)
      doSendMagicEffect(getThingPos(newSummon), CONST_ME_TELEPORT)
      addEvent(function(uid) if isCreature(uid) then
      doSendMagicEffect(getThingPos(uid), CONST_ME_TELEPORT)
      doRemoveCreature(uid) end
end, time, newSummon)

Agora troca la na tag do xml o StatsChange por think

 

Esse Código vai dar erro.

Tenta :

function onThink(cid, interval)
 return false
  end
if spell == "Illusion" then
      local time = 5 * 1000
      local name = getCreatureName(cid)
      local status = getPokemonStatus(name, getOffense(creature) / pokes[name].off)
      local newSummon = doSummonMonster(cid, name)
elseif not isCreature(newSummon) then return end
      setWildPokemonLevel(newSummon, getLevel(cid), status)
      doTeleportThing(newSummon, getThingPos(cid), false)
      doSendMagicEffect(getThingPos(newSummon), CONST_ME_TELEPORT)
      addEvent(function(uid) if isCreature(uid) then
      doSendMagicEffect(getThingPos(uid), CONST_ME_TELEPORT)
      doRemoveCreature(uid) end
end, time, newSummon)



  
 

em data/creaturescript/criei uma pasta passive.lua e coloquei

 

function onThink(cid, interval)
return false
end
if spell == "Illusion Team" then
local time = 5 * 1000
local name = getCreatureName(cid)
local status = getPokemonStatus(name, getOffense(creature) / pokes[name].off)
local newSummon = doSummonMonster(cid, name)
elseif not isCreature(newSummon) then return end
setWildPokemonLevel(newSummon, getLevel(cid), status)
doTeleportThing(newSummon, getThingPos(cid), false)
doSendMagicEffect(getThingPos(newSummon), CONST_ME_TELEPORT)
addEvent(function(uid) if isCreature(uid) then
doSendMagicEffect(getThingPos(uid), CONST_ME_TELEPORT)
doRemoveCreature(uid) end
end, time, newSummon)
e a tag fico
<event type="Think" name="PassiveMis" event="script" value="passive.lua"/>
Eo tinha coloca no Spell o nome de Illusion Team
Não deo Erro nenhum no Serv
QUERO SABER AGR PRA COMO EU FAÇO PRO MISDRAVUSS SE MULTIPLICAR
'
local status = getPokemonStatus(name, getOffense(creature) / pokes[name].off) tenho que coloca o nome dele aki entre o ["] ?
  • 3 weeks later...

po no meu serve eu tinha tentado criar esse passive ai eu peguei a script de sharred team do scizor so que a miss nao parava de clonar teve uma hora que fiko umas 10 na tela

e derrepente todas sumiram , meio que foram para outro andar ou sei lah aii eu tinha que andar com o char para elas voltarem pra perto de min e dava uns erros no distro e as vezes qnd clonava ela voltava com hp full sendo que nao estava antes de clonar..... bom se vc conseguir ae deixar sem errors me explica comu tu fez e.e

×
×
  • Criar Novo...