Ir para conteúdo

[7.8]cult Piano


tibiaa4e

Posts Recomendados

Quem ja viu o piano da area dos cult q se tem q saber as 4 notas aki ta o script para fazer ela

pra que naum conhece,vc pega uma nota em cada tipo de cult ai vc da sue nela e vc aprende a nota e depois qdo tiver as 4 se pode tocar no piano e entrar na area reservada

creditos: KingKomic

para nova e velha cvs:

aki os 4 scripts das notas musicais

verse1.lua

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

queststatus = getPlayerStorageValue(cid,4242)

if queststatus == -1 then

doSendMagicEffect(frompos, 18)

doPlayerSendTextMessage(cid,22,"You have learnt the first verse")

setPlayerStorageValue(cid,4242,1)

doRemoveItem(item.uid,1)

else

  doPlayerSendCancel(cid,"You already know this verse.")

end

return 1

end

verse2.lua

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

queststatus = getPlayerStorageValue(cid,4243)

if queststatus == -1 then

doSendMagicEffect(frompos, 18)

doPlayerSendTextMessage(cid,22,"You have learnt the second verse")

setPlayerStorageValue(cid,4243,1)

doRemoveItem(item.uid,1)

else

  doPlayerSendCancel(cid,"You already know this verse.")

end

return 1

end

verse3.lua

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

queststatus = getPlayerStorageValue(cid,4244)

if queststatus == -1 then

doSendMagicEffect(frompos, 18)

doPlayerSendTextMessage(cid,22,"You have learnt the third verse")

setPlayerStorageValue(cid,4244,1)

doRemoveItem(item.uid,1)

else

  doPlayerSendCancel(cid,"You already know this verse.")

end

return 1

end

verse4.lua

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

queststatus = getPlayerStorageValue(cid,4245)

if queststatus == -1 then

doSendMagicEffect(frompos, 18)

doPlayerSendTextMessage(cid,22,"You have learnt the fourth verse")

setPlayerStorageValue(cid,4245,1)

doRemoveItem(item.uid,1)

else

  doPlayerSendCancel(cid,"You already know this verse.")

end

return 1

end

cultpiano.lua

--Cult Piano by Komic--

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

queststatus = getPlayerStorageValue(cid,4242)

queststatus1 = getPlayerStorageValue(cid,4243)

queststatus2 = getPlayerStorageValue(cid,4244)

queststatus3 = getPlayerStorageValue(cid,4245)

toplayerpos = {x=414, y=448, z=7}

player1pos = {x=421, y=439, z=4, stackpos=253}

player1 = getThingfromPos(player1pos)

if queststatus == 1 and queststatus1 == 1 and queststatus2 == 1 and queststatus3 == 1 then

doSendMagicEffect(topos,12)

doPlayerSendTextMessage(cid,22,"You have successfully played the song.")

doTeleportThing(player1.uid,toplayerpos)

else

  doPlayerSendCancel(cid,"You dont know the song.")

end

return 1

end

actions.xml

--Cult Piano

<action actionid="4242" script="cultpiano.lua" />

<action itemid="6087" script="verse1.lua" />

<action itemid="6088" script="verse2.lua" />

<action itemid="6089" script="verse3.lua" />

<action itemid="6090" script="verse4.lua" />

no cult piano etem q editar a posição do piano e onde o player sera tp

kalker duvidas,bugs reporte

flws :bye:

Link para o comentário
Compartilhar em outros sites

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