Ir para conteúdo

Olhem Minha Script Por Favor


Felpx

Posts Recomendados

Bom dia Gente

bom não sei se essa é a area certa pra eu estar postando isso , mas como vocês podem ver eu sou novo aki

Vamos lá, eu to com uma Dúvida na minha script

 

eu kero que ela teleporte 10 players pra um exato lugar só q quando eu puxo a alavanca não acontece nada

 

Script

 

-- Evento Lever

 

function onUse(cid, item, frompos, item2, topos)

 

if item.uid == 8989 and item.itemid == 1945 then

player1pos = {x=828, y=45, z=7, stackpos=253}

player1 = getThingfromPos(player1pos)

 

player2pos = {x=828, y=46, z=7, stackpos=253}

player2 = getThingfromPos(player2pos)

 

player3pos = {x=828, y=47, z=7, stackpos=253}

player3 = getThingfromPos(player3pos)

 

player4pos = {x=828, y=48, z=7, stackpos=253}

player4 = getThingfromPos(player4pos)

 

player5pos = {x=828, y=49, z=7, stackpos=253}

player5 = getThingfromPos(player5pos)

 

player6pos = {x=830, y=45, z=7, stackpos=253}

player6 = getThingfromPos(player6pos)

 

player7pos = {x=830, y=46, z=7, stackpos=253}

player7 = getThingfromPos(player7pos)

 

player8pos = {x=830, y=47, z=7, stackpos=253}

player8 = getThingfromPos(player8pos)

 

player9pos = {x=830, y=48, z=7, stackpos=253}

player9 = getThingfromPos(player9pos)

 

player10pos = {x=830, y=49, z=7, stackpos=253}

player10 = getThingfromPos(player10pos)

 

 

if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then

queststatus1 = getPlayerStorageValue(player1.uid,7000)

queststatus2 = getPlayerStorageValue(player2.uid,7000)

queststatus3 = getPlayerStorageValue(player3.uid,7000)

queststatus4 = getPlayerStorageValue(player4.uid,7000)

queststatus5 = getPlayerStorageValue(player5.uid,7000)

queststatus6 = getPlayerStorageValue(player6.uid,7000)

queststatus7 = getPlayerStorageValue(player7.uid,7000)

queststatus8 = getPlayerStorageValue(player8.uid,7000)

queststatus9 = getPlayerStorageValue(player9.uid,7000)

queststatus10 = getPlayerStorageValue(player10.uid,7000)

 

if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then

nplayer1pos = {x=899, y=75, z=7}

nplayer2pos = {x=900, y=75, z=7}

nplayer3pos = {x=901, y=75, z=7}

nplayer4pos = {x=902, y=75, z=7}

nplayer5pos = {x=903, y=75, z=7}

nplayer6pos = {x=902, y=19, z=7}

nplayer7pos = {x=901, y=19, z=7}

nplayer8pos = {x=900, y=19, z=7}

nplayer9pos = {x=899, y=19, z=7}

nplayer10pos = {x=898, y=19, z=7}

 

doSendMagicEffect(player1pos,2)

doSendMagicEffect(player2pos,2)

doSendMagicEffect(player3pos,2)

doSendMagicEffect(player4pos,2)

doSendMagicEffect(player5pos,2)

doSendMagicEffect(player6pos,2)

doSendMagicEffect(player7pos,2)

doSendMagicEffect(player8pos,2)

doSendMagicEffect(player9pos,2)

doSendMagicEffect(player10pos,2)

 

doTeleportThing(player1.uid,nplayer1pos)

doTeleportThing(player2.uid,nplayer2pos)

doTeleportThing(player3.uid,nplayer3pos)

doTeleportThing(player4.uid,nplayer4pos)

doTeleportThing(player5.uid,nplayer5pos)

doTeleportThing(player6.uid,nplayer6pos)

doTeleportThing(player7.uid,nplayer7pos)

doTeleportThing(player8.uid,nplayer8pos)

doTeleportThing(player9.uid,nplayer9pos)

doTeleportThing(player10.uid,nplayer10pos)

 

doSendMagicEffect(nplayer1pos,10)

doSendMagicEffect(nplayer2pos,10)

doSendMagicEffect(nplayer3pos,10)

doSendMagicEffect(nplayer4pos,10)

doSendMagicEffect(nplayer5pos,10)

doSendMagicEffect(nplayer6pos,10)

doSendMagicEffect(nplayer7pos,10)

doSendMagicEffect(nplayer8pos,10)

doSendMagicEffect(nplayer9pos,10)

doSendMagicEffect(nplayer10pos,10)

 

doTransformItem(item.uid,item.itemid+1)

else

doPlayerSendCancel(cid,"Somebody in your team has already 100+")

end

else

doPlayerSendCancel(cid,"Você precisa de 5 jogadores no seu time e 5 do outro, e deverão escolher uma cor de roupa por time")

end

 

elseif item.uid ==8989 and item.itemid == 1946 then

if getPlayerAccess(cid) > 0 then

doTransformItem(item.uid,item.itemid-1)

else

doPlayerSendCancel(cid,"Sorry, not possible.")

end

else

return 0

end

 

return 1

end

 

 

 

Alavanca por enquanto está normal

post-322220-0-05285000-1309615158_thumb.png

 

Bom eu puxei a alavanca mas tipow não acontece nada nem aparece a mensagem >> Sorry that's impossible ou Você precisa estar com os 10 players alinhados me ajudem oque eu fasso

post-322220-0-60531900-1309615200_thumb.png

 

 

darei REP+

Editado por Felpx
Link para o comentário
Compartilhar em outros sites

Peguei o script da anihhilator e editei, nao sei se funciona, testa, configura e fala se deu certo ^^

 

function onUse(cid, item, frompos, item2, topos)

 

if item.uid == 7100 and item.itemid == 1945 then

player1pos = {x=214, y=146, z=8, stackpos=253} -- posiçao de cada player

player1 = getThingfromPos(player1pos)

 

player2pos = {x=214, y=147, z=8, stackpos=253} -- posiçao de cada player

player2 = getThingfromPos(player2pos)

 

player3pos = {x=214, y=148, z=8, stackpos=253} -- posiçao de cada player

player3 = getThingfromPos(player3pos)

 

player4pos = {x=214, y=149, z=8, stackpos=253} -- posiçao de cada player

player4 = getThingfromPos(player4pos)

 

player5pos = {x=214, y=146, z=8, stackpos=253} -- posiçao de cada player

player5 = getThingfromPos(player1pos)

 

player6pos = {x=214, y=147, z=8, stackpos=253} -- posiçao de cada player

player6 = getThingfromPos(player2pos)

 

player7pos = {x=214, y=148, z=8, stackpos=253} -- posiçao de cada player

player7 = getThingfromPos(player3pos)

 

player8pos = {x=214, y=149, z=8, stackpos=253} -- posiçao de cada player

player8 = getThingfromPos(player4pos)

 

player9pos = {x=214, y=148, z=8, stackpos=253} -- posiçao de cada player

player9 = getThingfromPos(player3pos)

 

player10pos = {x=214, y=149, z=8, stackpos=253} -- posiçao de cada player

player10 = getThingfromPos(player4pos)

 

 

if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then

queststatus1 = getPlayerStorageValue(player1.uid,7100)

queststatus2 = getPlayerStorageValue(player2.uid,7100)

queststatus3 = getPlayerStorageValue(player3.uid,7100)

queststatus4 = getPlayerStorageValue(player4.uid,7100)

queststatus5 = getPlayerStorageValue(player5.uid,7100)

queststatus6 = getPlayerStorageValue(player6.uid,7100)

queststatus7 = getPlayerStorageValue(player7.uid,7100)

queststatus8 = getPlayerStorageValue(player8.uid,7100)

queststatus9 = getPlayerStorageValue(player9.uid,7100)

queststatus10 = getPlayerStorageValue(player10.uid,7100)

 

if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then

nplayer1pos = {x=211, y=148, z=10} -- para onde ira o player nº 1

nplayer2pos = {x=212, y=148, z=10} -- para onde ira o player nº 2

nplayer3pos = {x=213, y=148, z=10} -- para onde ira o player nº 3

nplayer4pos = {x=214, y=148, z=10} -- para onde ira o player nº 4

nplayer5pos = {x=213, y=148, z=10} -- para onde ira o player nº 5

nplayer6pos = {x=214, y=148, z=10} -- para onde ira o player nº 6

nplayer7pos = {x=213, y=148, z=10} -- para onde ira o player nº 7

nplayer8pos = {x=214, y=148, z=10} -- para onde ira o player nº 8

nplayer9pos = {x=213, y=148, z=10} -- para onde ira o player nº 9

nplayer10pos = {x=214, y=148, z=10} -- para onde ira o player nº 10

 

doSendMagicEffect(player1pos,2)

doSendMagicEffect(player2pos,2)

doSendMagicEffect(player3pos,2)

doSendMagicEffect(player4pos,2)

doSendMagicEffect(player5pos,2)

doSendMagicEffect(player6pos,2)

doSendMagicEffect(player7pos,2)

doSendMagicEffect(player8pos,2)

doSendMagicEffect(player9pos,2)

doSendMagicEffect(player10pos,2)

 

doTeleportThing(player1.uid,nplayer1pos)

doTeleportThing(player2.uid,nplayer2pos)

doTeleportThing(player3.uid,nplayer3pos)

doTeleportThing(player4.uid,nplayer4pos)

doTeleportThing(player5.uid,nplayer5pos)

doTeleportThing(player6.uid,nplayer6pos)

doTeleportThing(player7.uid,nplayer7pos)

doTeleportThing(player8.uid,nplayer8pos)

doTeleportThing(player9.uid,nplayer9pos)

doTeleportThing(player10.uid,nplayer10pos)

 

doSendMagicEffect(nplayer1pos,10)

doSendMagicEffect(nplayer2pos,10)

doSendMagicEffect(nplayer3pos,10)

doSendMagicEffect(nplayer4pos,10)

doSendMagicEffect(nplayer5pos,10)

doSendMagicEffect(nplayer6pos,10)

doSendMagicEffect(nplayer7pos,10)

doSendMagicEffect(nplayer8pos,10)

doSendMagicEffect(nplayer9pos,10)

doSendMagicEffect(nplayer10pos,10)

 

doTransformItem(item.uid,item.itemid+1)

else

doPlayerSendCancel(cid,"Somebody in your team has already done this quest.")

end

else

doPlayerSendCancel(cid,"You need four players for this quest.")

end

 

elseif item.uid ==7100 and item.itemid == 1946 then

if getPlayerAccess(cid) > 0 then

doTransformItem(item.uid,item.itemid-1)

else

doPlayerSendCancel(cid,"Sorry, not possible.")

end

else

return 0

end

 

return 1

end

 

 

obs: a alavanca tem que ter uniqueid 7100 e tem que ser a alavanca de id 1946

 

Edit: desculpe nao tinha visto o scrip que vc postou em cima, creio que o problema seja que vc tem que ter os 10 players, com apenas um nao ira funcionar... ou se nao por causa que vc nao pois o unique certo na alavanca, ou nao pois em actions.xml...

Editado por Hickee98
Link para o comentário
Compartilhar em outros sites

Peguei o script da anihhilator e editei, nao sei se funciona, testa, configura e fala se deu certo ^^

 

function onUse(cid, item, frompos, item2, topos)

 

if item.uid == 7100 and item.itemid == 1945 then

player1pos = {x=214, y=146, z=8, stackpos=253} -- posiçao de cada player

player1 = getThingfromPos(player1pos)

 

player2pos = {x=214, y=147, z=8, stackpos=253} -- posiçao de cada player

player2 = getThingfromPos(player2pos)

 

player3pos = {x=214, y=148, z=8, stackpos=253} -- posiçao de cada player

player3 = getThingfromPos(player3pos)

 

player4pos = {x=214, y=149, z=8, stackpos=253} -- posiçao de cada player

player4 = getThingfromPos(player4pos)

 

player5pos = {x=214, y=146, z=8, stackpos=253} -- posiçao de cada player

player5 = getThingfromPos(player1pos)

 

player6pos = {x=214, y=147, z=8, stackpos=253} -- posiçao de cada player

player6 = getThingfromPos(player2pos)

 

player7pos = {x=214, y=148, z=8, stackpos=253} -- posiçao de cada player

player7 = getThingfromPos(player3pos)

 

player8pos = {x=214, y=149, z=8, stackpos=253} -- posiçao de cada player

player8 = getThingfromPos(player4pos)

 

player9pos = {x=214, y=148, z=8, stackpos=253} -- posiçao de cada player

player9 = getThingfromPos(player3pos)

 

player10pos = {x=214, y=149, z=8, stackpos=253} -- posiçao de cada player

player10 = getThingfromPos(player4pos)

 

 

if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then

queststatus1 = getPlayerStorageValue(player1.uid,7100)

queststatus2 = getPlayerStorageValue(player2.uid,7100)

queststatus3 = getPlayerStorageValue(player3.uid,7100)

queststatus4 = getPlayerStorageValue(player4.uid,7100)

queststatus5 = getPlayerStorageValue(player5.uid,7100)

queststatus6 = getPlayerStorageValue(player6.uid,7100)

queststatus7 = getPlayerStorageValue(player7.uid,7100)

queststatus8 = getPlayerStorageValue(player8.uid,7100)

queststatus9 = getPlayerStorageValue(player9.uid,7100)

queststatus10 = getPlayerStorageValue(player10.uid,7100)

 

if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then

nplayer1pos = {x=211, y=148, z=10} -- para onde ira o player nº 1

nplayer2pos = {x=212, y=148, z=10} -- para onde ira o player nº 2

nplayer3pos = {x=213, y=148, z=10} -- para onde ira o player nº 3

nplayer4pos = {x=214, y=148, z=10} -- para onde ira o player nº 4

nplayer5pos = {x=213, y=148, z=10} -- para onde ira o player nº 5

nplayer6pos = {x=214, y=148, z=10} -- para onde ira o player nº 6

nplayer7pos = {x=213, y=148, z=10} -- para onde ira o player nº 7

nplayer8pos = {x=214, y=148, z=10} -- para onde ira o player nº 8

nplayer9pos = {x=213, y=148, z=10} -- para onde ira o player nº 9

nplayer10pos = {x=214, y=148, z=10} -- para onde ira o player nº 10

 

doSendMagicEffect(player1pos,2)

doSendMagicEffect(player2pos,2)

doSendMagicEffect(player3pos,2)

doSendMagicEffect(player4pos,2)

doSendMagicEffect(player5pos,2)

doSendMagicEffect(player6pos,2)

doSendMagicEffect(player7pos,2)

doSendMagicEffect(player8pos,2)

doSendMagicEffect(player9pos,2)

doSendMagicEffect(player10pos,2)

 

doTeleportThing(player1.uid,nplayer1pos)

doTeleportThing(player2.uid,nplayer2pos)

doTeleportThing(player3.uid,nplayer3pos)

doTeleportThing(player4.uid,nplayer4pos)

doTeleportThing(player5.uid,nplayer5pos)

doTeleportThing(player6.uid,nplayer6pos)

doTeleportThing(player7.uid,nplayer7pos)

doTeleportThing(player8.uid,nplayer8pos)

doTeleportThing(player9.uid,nplayer9pos)

doTeleportThing(player10.uid,nplayer10pos)

 

doSendMagicEffect(nplayer1pos,10)

doSendMagicEffect(nplayer2pos,10)

doSendMagicEffect(nplayer3pos,10)

doSendMagicEffect(nplayer4pos,10)

doSendMagicEffect(nplayer5pos,10)

doSendMagicEffect(nplayer6pos,10)

doSendMagicEffect(nplayer7pos,10)

doSendMagicEffect(nplayer8pos,10)

doSendMagicEffect(nplayer9pos,10)

doSendMagicEffect(nplayer10pos,10)

 

doTransformItem(item.uid,item.itemid+1)

else

doPlayerSendCancel(cid,"Somebody in your team has already done this quest.")

end

else

doPlayerSendCancel(cid,"You need four players for this quest.")

end

 

elseif item.uid ==7100 and item.itemid == 1946 then

if getPlayerAccess(cid) > 0 then

doTransformItem(item.uid,item.itemid-1)

else

doPlayerSendCancel(cid,"Sorry, not possible.")

end

else

return 0

end

 

return 1

end

 

 

obs: a alavanca tem que ter uniqueid 7100 e tem que ser a alavanca de id 1946

 

Edit: desculpe nao tinha visto o scrip que vc postou em cima, creio que o problema seja que vc tem que ter os 10 players, com apenas um nao ira funcionar... ou se nao por causa que vc nao pois o unique certo na alavanca, ou nao pois em actions.xml...

 

VLW lek me ajudou so n te do REP+ porque ja dei hj =P

 

Cara, tópico em área errada! Preste mais atenção antes de postar.

Tópico movido para área correta.

Muito obrigado por ter movido pra min eu não sabia qual area colocar não conheço esse site direito =P

Editado por Felpx
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...