Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

Alguém corrige isso pra mim por favor?

image.thumb.png.1067cba08f65ab0f4e91025b1154ac99.png

 

Script

Spoiler

function onUse(cid, item, frompos, item2, topos)
doBroadcastMessage("[AVISO] A cidade foi invadida por Monstros, venha proteger a cidade!")
    pos1 = {x=164,y=57,z=7}
    pos2 = {x=176,y=39,z=7}
    pos3 = {x=169,y=40,z=7} 
    pos4 = {x=156,y=57,z=7}   
    pos5 = {x=139,y=41,z=7} 
    pos6 = {x=173,y=57,z=7}  
    pos8 = {x=161,y=32,z=7} 
    pos9 = {x=138,y=60,z=7} 
    pos10 = {x=179,y=59,z=7} 
    pos11 = {x=132,y=23,z=7} 
    pos13 = {x=173,y=33,z=7} 
    pos14 = {x=178,y=27,z=7} 
    pos15 = {x=181,y=22,z=7} 
    pos16 = {x=197,y=39,z=7} 
    pos17 = {x=208,y=40,z=7} 
    pos18 = {x=208,y=50,z=7} 
    pos19 = {x=204,y=62,z=7} 
    pos20 = {x=194,y=57,z=7} 
    pos21 = {x=178,y=67,z=7} 
    pos22 = {x=104,y=61,z=7} 
    pos23 = {x=102,y=54,z=7} 
    pos24 = {x=103,y=46,z=7} 
    pos25 = {x=153,y=61,z=7} 
    pos26 = {x=96,y=41,z=7} 
    pos27 = {x=83,y=39,z=7} 
    pos28 = {x=110,y=34,z=7} 
    pos12 = {x=132,y=47,z=7}
    pos7 = {x=138,y=54,z=7}
if item.uid == 19000 then    
   doSummonCreature("Phantom Lord", pos1)
   doSummonCreature("Phantom Lord", pos2)
   doSummonCreature("Phantom Lord", pos3)
   doSummonCreature("Phantom Lord", pos4)
   doSummonCreature("Phantom Lord", pos5)
   doSummonCreature("Phantom Lord", pos6)
   doSummonCreature("Phantom Lord", pos7)
   doSummonCreature("Phantom Lord", pos8)
   doSummonCreature("Phantom Lord", pos9)
   doSummonCreature("Phantom Lord", pos10)
   doSummonCreature("Phantom Lord", pos11)
   doSummonCreature("Phantom Lord", pos12)
   doSummonCreature("Phantom Lord", pos13)
   doSummonCreature("Phantom Lord", pos14)
   doSummonCreature("Phantom Lord", pos15)
   doSummonCreature("Phantom Lord", pos16)
   doSummonCreature("Phantom Lord", pos17)
   doSummonCreature("Phantom Lord", pos18)
   doSummonCreature("Phantom Lord", pos19)
   doSummonCreature("Phantom Lord", pos20)
   doSummonCreature("Phantom Lord", pos21)
   doSummonCreature("Phantom Lord", pos22)
   doSummonCreature("Phantom Lord", pos23)
   doSummonCreature("Phantom Lord", pos24)
   doSummonCreature("Phantom Lord", pos25)
   doSummonCreature("Phantom Lord", pos26)
   doSummonCreature("Phantom Lord", pos27)
   doSummonCreature("Phantom Lord", pos28)   
   
elseif item.uid == 19001 then
   doSummonCreature("Finger Killer", pos1)
   doSummonCreature("Finger Killer", pos2)
   doSummonCreature("Finger Killer", pos3)
   doSummonCreature("Finger Killer", pos4)
   doSummonCreature("Finger Killer", pos5)
   doSummonCreature("Finger Killer", pos6)
   doSummonCreature("Finger Killer", pos7)
   doSummonCreature("Finger Killer", pos8)
   doSummonCreature("Finger Killer", pos9)
   doSummonCreature("Finger Killer", pos10)
   doSummonCreature("Finger Killer", pos11)
   doSummonCreature("Finger Killer", pos12)
   doSummonCreature("Finger Killer", pos13)
   doSummonCreature("Finger Killer", pos14)
   doSummonCreature("Finger Killer", pos15)
   doSummonCreature("Finger Killer", pos16)
   doSummonCreature("Finger Killer", pos17)
   doSummonCreature("Finger Killer", pos18)
   doSummonCreature("Finger Killer", pos19)
   doSummonCreature("Finger Killer", pos20)
   doSummonCreature("Finger Killer", pos21)
   doSummonCreature("Finger Killer", pos22)
   doSummonCreature("Finger Killer", pos23)
   doSummonCreature("Finger Killer", pos24)
   doSummonCreature("Finger Killer", pos25)
   doSummonCreature("Finger Killer", pos26)
   doSummonCreature("Finger Killer", pos27)
   doSummonCreature("Finger Killer", pos28)  

elseif item.uid == 19002 then
   doSummonCreature("Brimstone Bug", pos1)
   doSummonCreature("Brimstone Bug", pos2)
   doSummonCreature("Brimstone Bug", pos3)
   doSummonCreature("Brimstone Bug", pos4)
   doSummonCreature("Brimstone Bug", pos5)
   doSummonCreature("Brimstone Bug", pos6)
   doSummonCreature("Brimstone Bug", pos7)
   doSummonCreature("Brimstone Bug", pos8)
   doSummonCreature("Brimstone Bug", pos9)
   doSummonCreature("Brimstone Bug", pos10)
   doSummonCreature("Brimstone Bug", pos11)
   doSummonCreature("Brimstone Bug", pos12)
   doSummonCreature("Brimstone Bug", pos13)
   doSummonCreature("Brimstone Bug", pos14)
   doSummonCreature("Brimstone Bug", pos15)
   doSummonCreature("Brimstone Bug", pos16)
   doSummonCreature("Brimstone Bug", pos17)
   doSummonCreature("Brimstone Bug", pos18)
   doSummonCreature("Brimstone Bug", pos19)
   doSummonCreature("Brimstone Bug", pos20)
   doSummonCreature("Brimstone Bug", pos21)
   doSummonCreature("Brimstone Bug", pos22)
   doSummonCreature("Brimstone Bug", pos23)
   doSummonCreature("Brimstone Bug", pos24)
   doSummonCreature("Brimstone Bug", pos25)
   doSummonCreature("Brimstone Bug", pos26)
   doSummonCreature("Brimstone Bug", pos27)
   doSummonCreature("Brimstone Bug", pos28)    
   
elseif item.uid == 19003 then
   doSummonCreature("Green Phantom", pos1)
   doSummonCreature("Green Phantom", pos2)
   doSummonCreature("Green Phantom", pos3)
   doSummonCreature("Green Phantom", pos4)
   doSummonCreature("Green Phantom", pos5)
   doSummonCreature("Green Phantom", pos6)
   doSummonCreature("Green Phantom", pos7)
   doSummonCreature("Green Phantom", pos8)
   doSummonCreature("Green Phantom", pos9)
   doSummonCreature("Green Phantom", pos10)
   doSummonCreature("Green Phantom", pos11)
   doSummonCreature("Green Phantom", pos12)
   doSummonCreature("Green Phantom", pos13)
   doSummonCreature("Green Phantom", pos14)
   doSummonCreature("Green Phantom", pos15)
   doSummonCreature("Green Phantom", pos16)
   doSummonCreature("Green Phantom", pos17)
   doSummonCreature("Green Phantom", pos18)
   doSummonCreature("Green Phantom", pos19)
   doSummonCreature("Green Phantom", pos20)
   doSummonCreature("Green Phantom", pos21)
   doSummonCreature("Green Phantom", pos22)
   doSummonCreature("Green Phantom", pos23)
   doSummonCreature("Green Phantom", pos24)
   doSummonCreature("Green Phantom", pos25)
   doSummonCreature("Green Phantom", pos26)
   doSummonCreature("Green Phantom", pos27)
   doSummonCreature("Green Phantom", pos28) 
end
end

 

  • Respostas 10
  • Visualizações 968
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function isWalkable(pos) -- by Nord / editado por Omega if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false elseif isCreature(getTopCreature(pos).ui

Posted Images

Postado
local positions = {
	[1] = {x=164,y=57,z=7},
	[2] = {x=176,y=39,z=7},
	[3] = {x=169,y=40,z=7},
	[4] = {x=156,y=57,z=7},
	[5] = {x=139,y=41,z=7},
	[6] = {x=173,y=57,z=7},
	[7] = {x=161,y=32,z=7},
	[8] = {x=138,y=60,z=7},
	[9] = {x=179,y=59,z=7},
	[10] = {x=132,y=23,z=7},
	[11] = {x=173,y=33,z=7},
	[12] = {x=178,y=27,z=7},
	[13] = {x=181,y=22,z=7},
	[14] = {x=197,y=39,z=7},
	[15] = {x=208,y=40,z=7},
	[16] = {x=208,y=50,z=7},
	[17] = {x=204,y=62,z=7},
	[18] = {x=194,y=57,z=7},
	[19] = {x=178,y=67,z=7},
	[20] = {x=104,y=61,z=7},
	[21] = {x=102,y=54,z=7},
	[22] = {x=103,y=46,z=7},
	[23] = {x=153,y=61,z=7},
	[24] = {x=96,y=41,z=7},
	[25] = {x=83,y=39,z=7},
	[26] = {x=110,y=34,z=7},
	[27] = {x=132,y=47,z=7},
	[28] = {x=138,y=54,z=7}
}

function onUse(cid, item, frompos, item2, topos)
	doBroadcastMessage("[AVISO] A cidade foi invadida por Monstros, venha proteger a cidade!")
	local monsterName
	if item.uid == 19000 then
		monsterName = 'Phantom Lord'
	elseif item.uid == 19001 then
		monsterName = 'Finger Killer'
	elseif item.uid == 19002 then
		monsterName = 'Brimstone Bug'
	elseif item.uid == 19003 then
		monsterName = 'Green Phantom'
	end

	for i = 1, #positions do
		doCreateMonster(monsterName, positions[i])
	end
	return true
end

 

Postado
  • Autor
27 minutos atrás, FlavioHulk disse:

local positions = {
	[1] = {x=164,y=57,z=7},
	[2] = {x=176,y=39,z=7},
	[3] = {x=169,y=40,z=7},
	[4] = {x=156,y=57,z=7},
	[5] = {x=139,y=41,z=7},
	[6] = {x=173,y=57,z=7},
	[7] = {x=161,y=32,z=7},
	[8] = {x=138,y=60,z=7},
	[9] = {x=179,y=59,z=7},
	[10] = {x=132,y=23,z=7},
	[11] = {x=173,y=33,z=7},
	[12] = {x=178,y=27,z=7},
	[13] = {x=181,y=22,z=7},
	[14] = {x=197,y=39,z=7},
	[15] = {x=208,y=40,z=7},
	[16] = {x=208,y=50,z=7},
	[17] = {x=204,y=62,z=7},
	[18] = {x=194,y=57,z=7},
	[19] = {x=178,y=67,z=7},
	[20] = {x=104,y=61,z=7},
	[21] = {x=102,y=54,z=7},
	[22] = {x=103,y=46,z=7},
	[23] = {x=153,y=61,z=7},
	[24] = {x=96,y=41,z=7},
	[25] = {x=83,y=39,z=7},
	[26] = {x=110,y=34,z=7},
	[27] = {x=132,y=47,z=7},
	[28] = {x=138,y=54,z=7}
}

function onUse(cid, item, frompos, item2, topos)
	doBroadcastMessage("[AVISO] A cidade foi invadida por Monstros, venha proteger a cidade!")
	local monsterName
	if item.uid == 19000 then
		monsterName = 'Phantom Lord'
	elseif item.uid == 19001 then
		monsterName = 'Finger Killer'
	elseif item.uid == 19002 then
		monsterName = 'Brimstone Bug'
	elseif item.uid == 19003 then
		monsterName = 'Green Phantom'
	end

	for i = 1, #positions do
		doCreateMonster(monsterName, positions[i])
	end
	return true
end

 

 

agora nem a alavanca pode puxar kkkk

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo