CO

Capture monster

Por connectmind, 10 de jul. de 2020 em Scripts

2
715
connectmindC
10 de julho de 2020 às 03:00

OLA GALERA POR FAVOR PRECISO DE AJUDA EM UM SCRIPT (SCRIPT 8.4 QUERO PARA 8.6]

SUA FUNCAO ERA CAPTURAR O MONSTRO DENTRO DO AQUARIO E DEPOIS SOLTAR EM OUTRO LUGAR IGUAL A BOWL DO COLLAPSER ZULU

POREM O SCRIPT NAO ESTA MAIS FUNCIONANDO ME AJUDEM

O SCRIPT E

 

 

function onUse(cid, item, frompos, item2, topos)
local r = {
 [28] = 210,
 [29] = 180,
 [30] = 45}
local s = math.random(28,30) 
if item.itemid == 5928 then
   if getTilePzInfo(getThingPos(cid)) == FALSE then
      if isMonster(item2.uid) == TRUE then
         setItemArticle(item.uid, getCreatureName(item2.uid))
         doRemoveCreature(item2.uid)
         doSendMagicEffect(topos, s)
         doSendAnimatedText(topos, 'Capitured!', r)  
         doTransformItem(item.uid, 5929)
         return TRUE
      else
         doSendMagicEffect(frompos, 2)
         doPlayerSendCancel(cid, 'You cannot catch it.')
         return TRUE
      end
      return TRUE
   else
      doPlayerSendCancel(cid, 'You cannot use in protection zone.')
      doSendMagicEffect(frompos, 2)
      return TRUE
   end
elseif item.itemid == 5929 then
     if getTilePzInfo(getThingPos(cid)) == FALSE then
          doCreateMonster(getItemDescriptions(item.uid).article, getThingPos(cid))
          return doRemoveItem(item.uid, 1)
     else
          return doPlayerSendCancel(cid, 'You cannot use in protection zone.')
     end         
end
return TRUE                                                          
end

 

 

Editado Julho 10 por connectmind

Yan OliveiraY
15 de julho de 2020 às 15:36
Em 10/07/2020 em 03:00, connectmind disse:

OLA GALERA POR FAVOR PRECISO DE AJUDA EM UM SCRIPT (SCRIPT 8.4 QUERO PARA 8.6]

SUA FUNCAO ERA CAPTURAR O MONSTRO DENTRO DO AQUARIO E DEPOIS SOLTAR EM OUTRO LUGAR IGUAL A BOWL DO COLLAPSER ZULU

POREM O SCRIPT NAO ESTA MAIS FUNCIONANDO ME AJUDEM

O SCRIPT E

 

 

function onUse(cid, item, frompos, item2, topos)
local r = {
 [28] = 210,
 [29] = 180,
 [30] = 45}
local s = math.random(28,30) 
if item.itemid == 5928 then
   if getTilePzInfo(getThingPos(cid)) == FALSE then
      if isMonster(item2.uid) == TRUE then
         setItemArticle(item.uid, getCreatureName(item2.uid))
         doRemoveCreature(item2.uid)
         doSendMagicEffect(topos, s)
         doSendAnimatedText(topos, 'Capitured!', r)  
         doTransformItem(item.uid, 5929)
         return TRUE
      else
         doSendMagicEffect(frompos, 2)
         doPlayerSendCancel(cid, 'You cannot catch it.')
         return TRUE
      end
      return TRUE
   else
      doPlayerSendCancel(cid, 'You cannot use in protection zone.')
      doSendMagicEffect(frompos, 2)
      return TRUE
   end
elseif item.itemid == 5929 then
     if getTilePzInfo(getThingPos(cid)) == FALSE then
          doCreateMonster(getItemDescriptions(item.uid).article, getThingPos(cid))
          return doRemoveItem(item.uid, 1)
     else
          return doPlayerSendCancel(cid, 'You cannot use in protection zone.')
     end         
end
return TRUE                                                          
end

 

 

Coloca o script dentro de um spoiler ou da tag código para ficar mais fácil a leitura e legível. Qual é o problema do script? Qual erro dá?