Ir para conteúdo

[Encerrado] Duvida Sistema de Reset e Quest log


claudio17

Posts Recomendados

Aew alguém me ajuda com 2 duvidas ??? a primeira é que eu adicionei um sistema de reset no meu ot mais quando da look no player não aparece

aeew o script \/ E a Segunda Duvida é como fazer a Quest aparecer no Quest Log POR FAVOR UM TUTORIAL FACIL E QUE FUNCIONE PORQUE EU JÁ TENTEI UNS 7000 E NÃO DEU CERTO !!! OBRIGADO (:

 

function onSay(cid, words, param, channel)

 

config = {

RemainingLvl=8,

exper=4200,

pid=getPlayerGUID(cid),

batle="yes"

}

 

function getPlayerResets(cid)

resets = getPlayerStorageValue(cid,1020)

if resets < 0 then

resets = 0

end

return resets

end

 

if (config.batle == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then

doPlayerSendTextMessage(cid,22,"Você Precisa estar sem Battle para Resetar.")

return TRUE

end

 

if (getPlayerStorageValue(cid, 11548) >= os.time()) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED,"Por medidas de segurança você só pode utilizar este comando em " .. (getPlayerStorageValue(cid, 11548)-os.time()+(0)) .. " segundos.")

return TRUE

end

 

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 85 then

if getPlayerLevel(cid) >= 780 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 780 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 80 then

if getPlayerLevel(cid) >= 730 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 730 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 75 then

if getPlayerLevel(cid) >= 680 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 680 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 70 then

if getPlayerLevel(cid) >= 630 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 630 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 65 then

if getPlayerLevel(cid) >= 590 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 590 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 60 then

if getPlayerLevel(cid) >= 550 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 550 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 55 then

if getPlayerLevel(cid) >= 510 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 510.")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 50 then

if getPlayerLevel(cid) >= 480 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 480 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 45 then

if getPlayerLevel(cid) >= 450 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 450 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 40 then

if getPlayerLevel(cid) >= 430 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 430 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 35 then

if getPlayerLevel(cid) >= 410 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 410 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 30 then

if getPlayerLevel(cid) >= 390 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 390")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 25 then

if getPlayerLevel(cid) >= 380 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 380 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 20 then

if getPlayerLevel(cid) >= 365 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 365 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 15 then

if getPlayerLevel(cid) >= 360 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 360 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 10 then

if getPlayerLevel(cid) >= 355 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 355 .")

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if getPlayerStorageValue(cid,1020) < 5 then

if getPlayerLevel(cid) >= 350 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 350 .")

end

end

-- Resets Vips --

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 85 then

if getPlayerLevel(cid) >= 770 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 770 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 80 then

if getPlayerLevel(cid) >= 720 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 720 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 75 then

if getPlayerLevel(cid) >= 670 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 670 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 70 then

if getPlayerLevel(cid) >= 620 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 620 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 65 then

if getPlayerLevel(cid) >= 580 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 580 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 60 then

if getPlayerLevel(cid) >= 540 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 540 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 55 then

if getPlayerLevel(cid) >= 500 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 500 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 50 then

if getPlayerLevel(cid) >= 470 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 470 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 45 then

if getPlayerLevel(cid) >= 440 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 440 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 40 then

if getPlayerLevel(cid) >= 420 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 420 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 35 then

if getPlayerLevel(cid) >= 400 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 400 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 30 then

if getPlayerLevel(cid) >= 380 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 380 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 25 then

if getPlayerLevel(cid) >= 370 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 370 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 20 then

if getPlayerLevel(cid) >= 360 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 360 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 15 then

if getPlayerLevel(cid) >= 355 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 355 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 10 then

if getPlayerLevel(cid) >= 340 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 340 .")

end

end

end

----------------------------------------------------------------------------------------------------------------------------------------

if isPremium(cid) == TRUE then

if getPlayerStorageValue(cid,1020) < 5 then

if getPlayerLevel(cid) >= 330 then

setPlayerStorageValue(cid,1020,getPlayerResets(cid)+1)

setPlayerStorageValue(cid,11548,os.time()+30)

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1 WHERE `id` = "..config.pid)

else

doPlayerSendCancel(cid,"Você precisa ter level 330 .")

end

end

end

return true

end

Link para o comentário
Compartilhar em outros sites

quest log é facim.

 

coloca isso em data/xml/quests.xml, se você não tiver copie um arquivo xml e cole, renomeie quests.xml e cole isso dentro:

 

 

<quests>
<quest>
<quest name="The Pits Of Inferno" startstorageid="10544" startstoragevalue="1">
 <mission name="Throneroom of Damnation" storageid="10004" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Throneroom of Damnation is succesfully completed."/>
</mission>
 <mission name="Throneroom of Decay" storageid="10007" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Throneroom of Decay is succesfully completed."/>
</mission>
 <mission name="Throneroom of Deceit" storageid="10008" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Throneroom of Deceit is succesfully completed."/>
</mission>
 <mission name="Throneroom of Despair" storageid="10002" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Throneroom of Despair is succesfully completed."/>
</mission>
 <mission name="Throneroom of Destruction" storageid="10005" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Throneroom of Destruction is succesfully completed."/>
</mission>
 <mission name="Throneroom of Iferno" storageid="10003" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Throneroom of Iferno is succesfully completed."/>
</mission>
 <mission name="Throneroom of Plague" storageid="10001" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Throneroom of Plague is succesfully completed."/>
</mission>
</quest>
<quest name="The Queen of the Banshees" startstorageid="21852" startstoragevalue="1">
 <mission name="The Hidden Seal" storageid="10101" startvalue="0" endvalue="1">
			  <missionstate id="1" description="The Hidden Seal is succesfully completed."/>
</mission>
 <mission name="The Seal of Logic" storageid="10102" startvalue="0" endvalue="1">
			  <missionstate id="1" description="The Seal of Logic is succesfully completed."/>
</mission>
 <mission name="The Seal of True Path" storageid="10103" startvalue="0" endvalue="1">
			  <missionstate id="1" description="The Seal of True Path is succesfully completed."/>
</mission>
 <mission name="The Seal of Sacrifice" storageid="10104" startvalue="0" endvalue="1">
			  <missionstate id="1" description="The Seal of Sacrifice is succesfully completed."/>
</mission>
 <mission name="The Seal of Demonrage" storageid="10105" startvalue="0" endvalue="1">
			  <missionstate id="1" description="The Seal of Demonrage is succesfully completed."/>
</mission>
 <mission name="The Plague Seal" storageid="10106" startvalue="0" endvalue="1">
			  <missionstate id="1" description="The Plague Seal is succesfully completed."/>
</mission>
 <mission name="The Kiss of the Banshee Queen" storageid="10107" startvalue="0" endvalue="1">
			  <missionstate id="1" description="The Kiss of the Banshee Queen is succesfully completed."/>
</mission>
 <mission name="The Final Battle" storageid="10108" startvalue="0" endvalue="1">
			  <missionstate id="1" description="The Queen of the Banshees is succesfully completed."/>
</mission>
</quest>
	   <quest name="The Ultimate Challenges" startstorageid="42355" startstoragevalue="1">
 <mission name="Barbarian Arena - Greenhorn Mode" storageid="42361" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You Have Defeated All enemies in this mode."/>
</mission>
 <mission name="Barbarian Arena - Scrapper Mode" storageid="42371" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You Have Defeated All enemies in this mode."/>
</mission>
 <mission name="Barbarian Arena - Warlord Mode" storageid="42381" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You Have Defeated All enemies in this mode."/>
</mission>
</quest>
	   <quest name="Children of the Revolution" startstorageid="13417" startstoragevalue="1">
 <mission name="Mission Phantom Army" storageid="13417" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You Have Defeated, is succesfully completed."/>
</mission>
</quest>
	   <quest name="The New Frontier" startstorageid="4767" startstoragevalue="1">
 <mission name="Tome of Knowledge" storageid="85300" startvalue="0" endvalue="11">
<missionstate id="0" description="Have you brought 1/12 tome of knowledge."/>
<missionstate id="1" description="Have you brought 2/12 tome of knowledge."/>
<missionstate id="2" description="Have you brought 3/12 tome of knowledge."/>
<missionstate id="3" description="Have you brought 4/12 tome of knowledge."/>
<missionstate id="4" description="Have you brought 5/12 tome of knowledge."/>
<missionstate id="5" description="Have you brought 6/12 tome of knowledge."/>
<missionstate id="6" description="Have you brought 7/12 tome of knowledge."/>
<missionstate id="7" description="Have you brought 8/12 tome of knowledge."/>
<missionstate id="8" description="Have you brought 9/12 tome of knowledge."/>
<missionstate id="9" description="Have you brought 10/12 tome of knowledge."/>
<missionstate id="10" description="Have you brought 11/12 tome of knowledge."/>
<missionstate id="11" description="Have you brought 12/12 tome of knowledge."/>
</mission>
 <mission name="Mortal Combat" storageid="4767" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You Have Defeated All enemies in this mode."/>
</mission>
</quest>
	   <quest name="Inservice Of Yalahar" startstorageid="10254" startstoragevalue="1">
 <mission name="The Final Battle" storageid="10510" startvalue="0" endvalue="1">
			  <missionstate id="1" description=""/>
</mission>
</quest>
	   <quest name="Wrath of the Emperor" startstorageid="13870" startstoragevalue="1">
 <mission name="Mission 01: Catering the Lions Den" storageid="14910" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Catering the Lions Den is succesfully completed."/>
</mission>
 <mission name="Mission 02: The Keeper" storageid="14915" startvalue="0" endvalue="1">
			  <missionstate id="1" description="The Keeper is succesfully defeated."/>
</mission>
 <mission name="Mission 03: Sacrament of the Snake" storageid="14920" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Sacrament of the Snake succesfully created."/>
</mission>
 <mission name="Mission 04: New in Town" storageid="14925" startvalue="0" endvalue="1">
			  <missionstate id="1" description="New in Town succesfully completed."/>
</mission>
 <mission name="Mission 05: Uninvited Guests" storageid="17617" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Uninvited Guests succesfully completed."/>
</mission>
 <mission name="Mission 06: Scorn of the Emperor" storageid="10021" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You already kill Scorn of the Emperor."/>
</mission>
 <mission name="Mission 06: Spite of the Emperor" storageid="10022" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You already kill Spite of the Emperor."/>
</mission>
 <mission name="Mission 06: Fury of the Emperor" storageid="10023" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You already kill Fury of the Emperor."/>
</mission>
 <mission name="Mission 06: Wrath of the Emperor" storageid="10024" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You already kill Wrath of the Emperor."/>
</mission>
 <mission name="Mission 07: Payback Time" storageid="10057" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Congratulations! You already killed Mutated Zalamon, pick up your Rewards."/>
</mission>
 <mission name="Mission 08: Just Rewards" storageid="13880" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Congratulations! Wrath of the Emperor is succesfully completed."/>
</mission>
</quest>
	   <quest name="Bigfoot's Burden Quest" startstorageid="19985" startstoragevalue="1">
 <mission name="Warzone I" storageid="19975" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You Have Defeated All enemies and Deathstrike in this mode."/>
</mission>
 <mission name="Warzone II" storageid="19980" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You Have Defeated All enemies and Gnomevil in this mode."/>
</mission>
 <mission name="Warzone III" storageid="19985" startvalue="0" endvalue="1">
			  <missionstate id="1" description="You Have Defeated All enemies and Abyssador in this mode."/>
</mission>
</quest>
	   <quest name="The Demon Oak Quest" startstorageid="12900" startstoragevalue="1">
 <mission name="The Final Battle" storageid="12900" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Congratulations! You are a demon killer hit."/>
</mission>
</quest>
	   <quest name="Elemental Spheres Quest" startstorageid="12900" startstoragevalue="1">
 <mission name="Fire Overlord" storageid="42458" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Congratulations. You are a Fire Overlord killer. Now you have access to the final battle!"/>
</mission>
 <mission name="Earth Overlord" storageid="42456" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Congratulations. You are a Earth Overlord killer. Now you have access to the final battle!"/>
</mission>
 <mission name="Energy Overlord" storageid="42457" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Congratulations. You are a Energy Overlord killer. Now you have access to the final battle!"/>
</mission>
 <mission name="Ice Overlord" storageid="42459" startvalue="0" endvalue="1">
			  <missionstate id="1" description="Congratulations. You are a Ice Overlord killer. Now you have access to the final battle!"/>
</mission>
</quest>
</quests>

 

The Pits Of Inferno: é o nome da quest, 10544 é o storage id quando completa ela.

Throneroom of Decay: são as missões da quest, 10004 é o storage id dessa missão.

 

você ve o storage da quest, por exemplo: data/actions/scripts/quests/annihilator.

procure essa linha

			setPlayerStorageValue(cid,5000,1)

 

isso é o storage que o player irá ganhar quando fazer a quest e se estiver no quest irá aparecer update quest log.

 

agora use isso como base e divirta-se.

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

  • 3 weeks later...
  • 5 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...