Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Hello everyone here's some actions I used to unblock quest/access in some of the available data packs around.

You can try using different items to unblock each quest or you can use one to unblock all of them at once (I think, I haven't try it that way but it should hahaha)

Anyways let me tell how is done, and I hope it will help someone ;D..

 

1. Think the name of the Item you want to use to unblock the quest, in this case I will be using the Draken Doll (ID:20625)(It may vary on your items.obt make sure you have the right ID.)

2. make a file in actions/other/zao_doll.lua. with the fallowing code.

function onUse(player, cid, item, fromPosition, target, toPosition, isHotkey)
	if player:getStorageValue(Storage.TheNewFrontier.Questline) <=27 then
		player:removeItem(20625, 1)
		doSendMagicEffect(getCreaturePosition(cid), 28)
		player:setStorageValue(Storage.TheNewFrontier.Questline, 28)
		player:setStorageValue(Storage.TheNewFrontier.Mission01, 3)
		player:setStorageValue(Storage.TheNewFrontier.Mission02, 6)
		player:setStorageValue(Storage.TheNewFrontier.Mission03, 3)
		player:setStorageValue(Storage.TheNewFrontier.Mission04, 2)
		player:setStorageValue(Storage.TheNewFrontier.Mission05, 7)
		player:setStorageValue(Storage.TheNewFrontier.Mission06, 3)
		player:setStorageValue(Storage.TheNewFrontier.Mission07, 3)
		player:setStorageValue(Storage.TheNewFrontier.Mission08, 2)
		player:setStorageValue(Storage.TheNewFrontier.Mission09, 3)
		player:setStorageValue(Storage.TheNewFrontier.Mission10, 1)
		player:setStorageValue(Storage.TheNewFrontier.TomeofKnowledge, 12)
		player:setStorageValue(Storage.TheNewFrontier.Beaver1, 1)
		player:setStorageValue(Storage.TheNewFrontier.Beaver2, 1)
		player:setStorageValue(Storage.TheNewFrontier.Beaver3, 1)
		player:setStorageValue(Storage.TheNewFrontier.BribeKing, 1)
		player:setStorageValue(Storage.TheNewFrontier.BribeLeeland, 1)
		player:setStorageValue(Storage.TheNewFrontier.BribeExplorerSociety, 1)
		player:setStorageValue(Storage.TheNewFrontier.BribeWydrin, 1)
		player:setStorageValue(Storage.TheNewFrontier.BribeTelas, 1)
		player:setStorageValue(Storage.TheNewFrontier.BribeHumgolf, 1)
		player:setStorageValue(Storage.ChildrenoftheRevolution.Questline, 21)
		player:setStorageValue(Storage.ChildrenoftheRevolution.Mission00, 2)
		player:setStorageValue(Storage.ChildrenoftheRevolution.Mission01, 3)
		player:setStorageValue(Storage.ChildrenoftheRevolution.Mission02, 5)
		player:setStorageValue(Storage.ChildrenoftheRevolution.Mission03, 3)
		player:setStorageValue(Storage.ChildrenoftheRevolution.Mission04, 6)
		player:setStorageValue(Storage.ChildrenoftheRevolution.Mission05, 3)
		player:setStorageValue(Storage.ChildrenoftheRevolution.SpyBuilding01, 1)
		player:setStorageValue(Storage.ChildrenoftheRevolution.SpyBuilding02, 1)
		player:setStorageValue(Storage.ChildrenoftheRevolution.SpyBuilding03, 1)
		player:setStorageValue(Storage.ChildrenoftheRevolution.StrangeSymbols, 1)
		player:setStorageValue(Storage.WrathoftheEmperor.Questline, 34)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission01, 3)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission02, 3)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission03, 3)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission04, 3)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission05, 3)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission06, 4)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission07, 6)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission08, 2)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission09, 2)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission10, 6)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission11, 2)
		player:setStorageValue(Storage.WrathoftheEmperor.Mission12, 0)
		player:setStorageValue(Storage.WrathoftheEmperor.CrateStatus, 1)
		player:setStorageValue(Storage.WrathoftheEmperor.GuardcaughtYou, 1)
		player:setStorageValue(Storage.WrathoftheEmperor.ZumtahStatus, 1)
		player:setStorageValue(Storage.WrathoftheEmperor.PrisonReleaseStatus, 1)
		player:setStorageValue(Storage.WrathoftheEmperor.GhostOfAPriest01, 1)
		player:setStorageValue(Storage.WrathoftheEmperor.GhostOfAPriest02, 1)
		player:setStorageValue(Storage.WrathoftheEmperor.GhostOfAPriest03, 1)
		player:setStorageValue(Storage.WrathoftheEmperor.InterdimensionalPotion, 1)
		player:setStorageValue(Storage.WrathoftheEmperor.BossStatus, 1)
		player:setStorageValue(Storage.WrathoftheEmperor.platinumReward, 0)
		player:setStorageValue(Storage.WrathoftheEmperor.backpackReward, 0)
		player:setStorageValue(Storage.WrathoftheEmperor.mainReward, 0)
		player:setStorageValue(Storage.WrathoftheEmperor.TeleportAcess, 1)
		player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
        -- Quest Addons
		player:addOutfit(335, 2)
		player:addOutfit(336, 2)
		player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Quest Unlocked...")
	else
		player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You already unlocked this quest.")
	end
	return true
end

3. Edit file scripts/scripts.xml and add this: (make sure you use the ID of the Item you choose).

<action itemid="20625" script="other/zao_doll.lua" />

4. Reload actions and that's it it should work. You can make as many as you want for different quest or what not.

 

 

 

 

Here's a list of some quest I have tested just copy the values and add them or exchange them for your convenience just change the value of the quest line -1  from the value of each quest

 

Inquisition Quest Values:

player:setStorageValue(Storage.TheInquisition.Questline, 25)
player:setStorageValue(Storage.TheInquisition.Mission01, 7)
player:setStorageValue(Storage.TheInquisition.Mission02, 3)
player:setStorageValue(Storage.TheInquisition.Mission03, 6)
player:setStorageValue(Storage.TheInquisition.Mission04, 3)
player:setStorageValue(Storage.TheInquisition.Mission05, 3)
player:setStorageValue(Storage.TheInquisition.Mission06, 3)
player:setStorageValue(Storage.TheInquisition.Mission07, 4)
player:setStorageValue(Storage.TheInquisition.GrofGuard, 1)
player:setStorageValue(Storage.TheInquisition.KulagGuard, 1)
player:setStorageValue(Storage.TheInquisition.TimGuard, 1)
player:setStorageValue(Storage.TheInquisition.WalterGuard, 1)
player:setStorageValue(Storage.TheInquisition.StorkusVampiredust, 1)
player:setStorageValue(Storage.TheInquisition.EnterTeleport, 1)
player:addOutfitAddon(288, 3)
player:addOutfitAddon(289, 3)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
player:addAchievement('Demonbane')

Shattered Islands Values:

player:setStorageValue(Storage.TheShatteredIsles.DefaultStart, 1)
player:setStorageValue(Storage.TheShatteredIsles.TheGovernorDaughter, 3)
player:setStorageValue(Storage.TheShatteredIsles.TheErrand, 2)
player:setStorageValue(Storage.TheShatteredIsles.AccessToMeriana, 1)
player:setStorageValue(Storage.TheShatteredIsles.APoemForTheMermaid, 3)
player:setStorageValue(Storage.TheShatteredIsles.ADjinnInLove, 5)
player:setStorageValue(Storage.TheShatteredIsles.AccessToLagunaIsland, 1)
player:setStorageValue(Storage.TheShatteredIsles.AccessToGoroma, 1)
player:setStorageValue(Storage.TheShatteredIsles.Shipwrecked, 2)
player:setStorageValue(Storage.TheShatteredIsles.DragahsSpellbook, 1)
player:setStorageValue(Storage.TheShatteredIsles.TheCounterspell, 4)

Yalahar Quest:

player:setStorageValue(Storage.InServiceofYalahar.Questline, 53)
player:setStorageValue(Storage.InServiceofYalahar.Mission01, 6)
player:setStorageValue(Storage.InServiceofYalahar.Mission02, 8)
player:setStorageValue(Storage.InServiceofYalahar.Mission03, 6)
player:setStorageValue(Storage.InServiceofYalahar.Mission04, 6)
player:setStorageValue(Storage.InServiceofYalahar.Mission05, 8)
player:setStorageValue(Storage.InServiceofYalahar.Mission06, 5)
player:setStorageValue(Storage.InServiceofYalahar.Mission07, 5)
player:setStorageValue(Storage.InServiceofYalahar.Mission08, 4)
player:setStorageValue(Storage.InServiceofYalahar.Mission09, 2)
player:setStorageValue(Storage.InServiceofYalahar.Mission10, 5)
player:setStorageValue(Storage.InServiceofYalahar.SewerPipe01, 1)
player:setStorageValue(Storage.InServiceofYalahar.SewerPipe02, 1)
player:setStorageValue(Storage.InServiceofYalahar.SewerPipe03, 1)
player:setStorageValue(Storage.InServiceofYalahar.SewerPipe04, 1)
player:setStorageValue(Storage.InServiceofYalahar.DiseasedDan, 1)
player:setStorageValue(Storage.InServiceofYalahar.DiseasedBill, 1)
player:setStorageValue(Storage.InServiceofYalahar.DiseasedFred, 1)
player:setStorageValue(Storage.InServiceofYalahar.AlchemistFormula, 1)
player:setStorageValue(Storage.InServiceofYalahar.BadSide, 1)
player:setStorageValue(Storage.InServiceofYalahar.GoodSide , 1)
player:setStorageValue(Storage.InServiceofYalahar.MrWestDoor, 1)
player:setStorageValue(Storage.InServiceofYalahar.MrWestStatus, 1)
player:setStorageValue(Storage.InServiceofYalahar.TamerinStatus, 1)
player:setStorageValue(Storage.InServiceofYalahar.MorikSummon, 1)
player:setStorageValue(Storage.InServiceofYalahar.QuaraState, 1)
player:setStorageValue(Storage.InServiceofYalahar.QuaraSplasher, 1)
player:setStorageValue(Storage.InServiceofYalahar.QuaraSharptooth, 1)
player:setStorageValue(Storage.InServiceofYalahar.QuaraInky, 1)
player:setStorageValue(Storage.InServiceofYalahar.MatrixState, 1)
player:setStorageValue(Storage.InServiceofYalahar.NotesPalimuth, 1)
player:setStorageValue(Storage.InServiceofYalahar.NotesAzerus, 1)
player:setStorageValue(Storage.InServiceofYalahar.DoorToAzerus, 1)
player:setStorageValue(Storage.InServiceofYalahar.DoorToBog, 1)
player:setStorageValue(Storage.InServiceofYalahar.DoorToLastFight, 1)
player:setStorageValue(Storage.InServiceofYalahar.DoorToMatrix, 1)
player:setStorageValue(Storage.InServiceofYalahar.DoorToQuara, 1)
player:setStorageValue(Storage.InServiceofYalahar.DoorToReward, 1)

 

 

I will be posting some others as soon as I finish them.. 

any questions I'll be glad to help:)

I'm sorry for writing in English but I can't speak Portuguese:(

Editado por Reeke
Typos and Errors (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

51mutNo.png Parabéns, seu tópico de conteúdo foi aprovado!
 Muito obrigado pela sua contribuição, nós do Tibia King agradecemos.
 Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.

Link para o post
Compartilhar em outros sites
1 minute ago, sirarcken said:

 

More putting it on the server will be appearing that questlog has been updated , every entry in the server?

 

The message shows once every each mission its updated, it will take a few seconds/minutes to not show the message by itself depending how many you added or you can just log out and log in..

Its pretty much the same thing when you raise your levels/skills with the /addskill command it will show all advancements until its done, I don't know how to fix that thou but to be honest it doesn't bother me, Just log out and log in haha

Link para o post
Compartilhar em outros sites
1 minuto atrás, Reeke disse:

 

The message shows once every each mission its updated, it will take a few seconds/minutes to not show the message by itself depending how many you added or you can just log out and log in..

Its pretty much the same thing when you raise your levels/skills with the /addskill command it will show all advancements until its done, I don't know how to fix that thou but to be honest it doesn't bother me, Just log out and log in haha

 

I got it , because yesterday I did, and the way I had done every time I go out and entered the server appeared , his questlog been updated ... more was not her that I had used was one that I could do msm kkk thank you friend.

Link para o post
Compartilhar em outros sites
1 minute ago, sirarcken said:

 

I got it , because yesterday I did, and the way I had done every time I go out and entered the server appeared , his questlog been updated ... more was not her that I had used was one that I could do msm kkk thank you friend.

 

I'm not sure if I understand what you mean but

If you use each doll for each quest make sure you change the line:

if player:getStorageValue(Storage.TheNewFrontier.Questline) <=27 then

and change the value Questline <=27 for -1 of the FINAL quest value so they won't be using the dolls each time and collect the rewards many times

for example:

 

Yalahar QuestLine is this

player:setStorageValue(Storage.InServiceofYalahar.Questline, 53)

the code in the doll should be like this

if player:getStorageValue(Storage.InServiceofYalahar.Questline) <=52 then

hope that was what you asked and hoped it helped haha

Link para o post
Compartilhar em outros sites
On 3/30/2016 at 1:10 PM, zimny36 said:

how i can make quest with this script without using a doll, i want to do access to all playesr to yala wrath an inq without making missions?

 You have to edit pretty much the Id's of the destinations, remove the required quest storage, its alot of work thats why i tried to used this instead.. there should be another way but I just haven't try anything else;<

Link para o post
Compartilhar em outros sites
5 minutes ago, ramses82 said:

NIIICEE

;D Hope its usefull, any problems or questions i'll be glad to help

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por Tricoder
      Preview

       
      Script
      data/items/items.xml
      <item id="8981" article="a" name="gold premium card"> <attribute key="weight" value="0" /> <attribute key="description" value="Use this card to receive 7 premium days." /> </item> data/actions/actions.xml
      <action itemid="8981" script="other/premiumcard.lua"/> data/actions/scripts/premium_card
      local t = { days = 7, effect = CONST_ME_HOLYAREA } function onUse(cid, item, fromPosition, itemEx, toPosition) doPlayerRemoveItem(cid, 8981, 1) return TRUE, doPlayerAddPremiumDays(cid, t.days), doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You now have +" .. t.days .. " premium days!"), doSendMagicEffect(fromPosition, t.effect) end Créditos: God Mythera
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo