Ir para conteúdo

Anihi Bugada? Players Vão Varias Veses?


Vini13

Posts Recomendados

va na pasta data/actions/scripts e edite seu arkivo da action de sua anihilator, apage-o e ponha isso nele:

-- Anihi

 

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

 

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

player1pos = {x=958, y=952, z=7, stackpos=253}

player1 = getThingfromPos(player1pos)

 

player2pos = {x=958, y=953, z=7, stackpos=253}

player2 = getThingfromPos(player2pos)

 

player3pos = {x=958, y=954, z=7, stackpos=253}

player3 = getThingfromPos(player3pos)

 

player4pos = {x=958, y=955, z=7, stackpos=253}

player4 = getThingfromPos(player4pos)

 

player1level = getPlayerLevel(player1.uid)

player2level = getPlayerLevel(player2.uid)

player3level = getPlayerLevel(player3.uid)

player4level = getPlayerLevel(player4.uid)

 

 

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

queststatus1 = getPlayerStorageValue(player1.uid,7004)

queststatus2 = getPlayerStorageValue(player2.uid,7004)

queststatus3 = getPlayerStorageValue(player3.uid,7004)

queststatus4 = getPlayerStorageValue(player4.uid,7004)

 

if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 and player1level >= 100 and player2level >= 100 and player3level >= 100 and player4level >= 100 then

nplayer1pos = {x=958, y=952, z=8}

nplayer2pos = {x=957, y=952, z=8}

nplayer3pos = {x=956, y=952, z=8}

nplayer4pos = {x=955, y=952, z=8}

 

doSendMagicEffect(player1pos,2)

doSendMagicEffect(player2pos,2)

doSendMagicEffect(player3pos,2)

doSendMagicEffect(player4pos,2)

 

doTeleportThing(player1.uid,nplayer1pos)

doTeleportThing(player2.uid,nplayer2pos)

doTeleportThing(player3.uid,nplayer3pos)

doTeleportThing(player4.uid,nplayer4pos)

 

doSendMagicEffect(nplayer1pos,10)

doSendMagicEffect(nplayer2pos,10)

doSendMagicEffect(nplayer3pos,10)

doSendMagicEffect(nplayer4pos,10)

 

setPlayerStorageValue(player1.uid,7004,1)

setPlayerStorageValue(player2.uid,7004,1)

setPlayerStorageValue(player3.uid,7004,1)

setPlayerStorageValue(player4.uid,7004,1)

 

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 four this quest.")

end

 

elseif item.uid ==7004 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

explicando:

vermelho = pos dos players ao puxarem alavanca

azul escuro = pos dos players dpois d puxarem a alavanca

7004 = itens uid e storange value

rosa = required lvl

Link para o comentário
Compartilhar em outros sites

  • 2 months later...
×
×
  • Criar Novo...