Jump to content

npc [OTG][NPC][Storages][Dawnport] Liberando os acessos das Quests e Missões pelo NPC Captain Dreadnought


Recommended Posts

 otgskull.gif

otgking0.png

 

Open Source MMORPG emulador de Tibia escrito em C++.

Servidor Oficial do Tibiaking!

 

 

 

 

 

Spoiler

 

 

 

separador.png

 

[OTG][NPC][Storages][Dawnport] Liberando os acessos das Quests e Missões pelo NPC Captain Dreadnought

Tutorial explicado de como liberar os acessos, missões e quests para todos os jogadores!

 

separador.png

NPC Captain Dreadnought

Abra o script do npc captain_dreadnought.lua localizado na pasta data/npc/scripts/ e substitua todo o código pelo código abaixo:

 

Spoiler


local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)
	npcHandler:onCreatureAppear(cid)
end
function onCreatureDisappear(cid)
	npcHandler:onCreatureDisappear(cid)
end
function onCreatureSay(cid, type, msg)
	npcHandler:onCreatureSay(cid, type, msg)
end
function onThink()
	npcHandler:onThink()
end

local voices = {
	{text = "No smuggling aboard this ship! Only 20 pieces of any creature product allowed!"},
	{text = "No fear! The Sea Cat will ship you safely to the mainland!"},
	{text = "All aboard! Prepare to sail!"},
	{text = "Come hell or high water, we'll reach any port I sail you to!"},
	{text = "This island is too small. I need sea water around me."}
}

npcHandler:addModule(VoiceModule:new(voices))

--From topic of the citys name to topic of the "yes" msg
local topicTable = {
	[3] = 13,
	[4] = 14,
	[5] = 15,
	[6] = 16,
	[7] = 17,
	[8] = 18,
	[9] = 19,
	[10] = 20,
	[11] = 21,
	[12] = 22,
	[13] = 23
}

--From topic of final msg "yes" to select town
local townTable = {
	[13] = TOWNS_LIST.AB_DENDRIEL,
	[14] = TOWNS_LIST.ANKRAHMUN,
	[15] = TOWNS_LIST.CARLIN,
	[16] = TOWNS_LIST.DARASHIA,
	[17] = TOWNS_LIST.EDRON,
	[18] = TOWNS_LIST.KAZORDOON,
	[19] = TOWNS_LIST.LIBERTY_BAY,
	[20] = TOWNS_LIST.PORT_HOPE,
	[21] = TOWNS_LIST.SVARGROND,
	[22] = TOWNS_LIST.THAIS,
	[23] = TOWNS_LIST.VENORE
}

local function greetCallback(cid)
	local player = Player(cid)
	npcHandler:setMessage(
		MESSAGE_GREET,
		"Well, well, a new " ..
			player:getVocation():getName():lower() .. "! \z
		Want me to bring you somewhere nice? Just say {yes}."
	)
	return true
end

local function creatureSayCallback(cid, type, msg)
	if not npcHandler:isFocused(cid) then
		return false
	end

	local player = Player(cid)
	if msgcontains(msg, "yes") and npcHandler.topic[cid] == 0 then
		npcHandler:say("Good. Got all you want to take to the mainland, {yes}? Gear, limbs, loot?", cid)
		npcHandler.topic[cid] = 1
	elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 1 then
		npcHandler:say(
			"Well, I can tell you stuff about {Ab'Dendriel}, {Ankrahmun}, {Carlin}, \z
			{Darashia}, {Edron}, {Kazordoon}, {Liberty Bay}, {Port Hope}, {Svargrond}, {Thais}, {Venore} or {Yalahar}.",
			cid
		)
		npcHandler.topic[cid] = 2
	elseif msgcontains(msg, "ab'dendriel") and npcHandler.topic[cid] == 2 then
		npcHandler:say(
			{
				"Main city of the elves - lots of trees, bug milk and stuff that easily burns ...",
				"... Sorry, just thinking aloud. Ahem. Very cosy and safe I guess if you're fond of nature. \z
					I can {sail} there if you like."
			},
			cid,
			false,
			true,
			10
		)
		npcHandler.topic[cid] = 3
	elseif msgcontains(msg, "ankrahmun") and npcHandler.topic[cid] == 2 then
		if player:isPremium() then
			npcHandler:say(
				"Only for premium travelers! Desert pyramid city close to the ocean, \z
		some underground tombs where I heard it's not bad hunting. I can {sail} there if you like.",
				cid
			)
			npcHandler.topic[cid] = 4
		else
			npcHandler:say("You are not a premium account..", cid)
			npcHandler.topic[cid] = 0
		end
	elseif msgcontains(msg, "carlin") and npcHandler.topic[cid] == 2 then
		npcHandler:say(
			"A city ruled by forthright independent women. Very clean and safe, \z
			but also very strict on the booze, alas. But if that's what you like... I can {sail} there if you like.",
			cid
		)
		npcHandler.topic[cid] = 5
	elseif msgcontains(msg, "darashia") and npcHandler.topic[cid] == 2 then
		if player:isPremium() then
			npcHandler:say(
				"Only for premium travelers! One of the two desert cities. \z
			Built around a lovely oasis. Lions, dragons... decent location for a newcomer. I can {sail} there if you like.",
				cid
			)
			npcHandler.topic[cid] = 6
		else
			npcHandler:say("You are not a premium account..", cid)
			npcHandler.topic[cid] = 0
		end
	elseif msgcontains(msg, "edron") and npcHandler.topic[cid] == 2 then
		if player:isPremium() then
			npcHandler:say(
				"Only for premium travelers! Quiet little castle city on an island in the north-eastern \z
			part of Tibia. Trolls, goblins, rotworms... good place for starters, too. I can {sail} there if you like.",
				cid
			)
			npcHandler.topic[cid] = 7
		else
			npcHandler:say("You are not a premium account..", cid)
			npcHandler.topic[cid] = 0
		end
	elseif msgcontains(msg, "kazordoon") and npcHandler.topic[cid] == 2 then
		npcHandler:say("The underground dwarven city. Doesn't have a real harbour, so I can't bring you there, sorry.", cid)
		npcHandler.topic[cid] = 8
	elseif msgcontains(msg, "liberty bay") and npcHandler.topic[cid] == 2 then
		if player:isPremium() then
			npcHandler:say(
				"Only for premium travelers! Liberty Bay is on an island group in the South Seas. \z
			Ah, home sweet home. Err. I mean, it's pirates galore. Good deal of tortoises, too. \z
			Just be careful, then it's a good hunting location. I can {sail} there if you like.",
				cid
			)
			npcHandler.topic[cid] = 9
		else
			npcHandler:say("You are not a premium account..", cid)
			npcHandler.topic[cid] = 0
		end
	elseif msgcontains(msg, "port hope") and npcHandler.topic[cid] == 2 then
		if player:isPremium() then
			npcHandler:say(
				{
					"Only for premium travelers! Port Hope is an outpost right in the middle of the jungle. ...",
					"Apes, bananas, hydras, tarantulas... Who'd want to go there? \z
				Except for crazy adventurers like these guys here on the island, obviously. Still, I can {sail} there if you like."
				},
				cid,
				false,
				true,
				10
			)
			npcHandler.topic[cid] = 10
		else
			npcHandler:say("You are not a premium account..", cid)
			npcHandler.topic[cid] = 0
		end
	elseif msgcontains(msg, "svargrond") and npcHandler.topic[cid] == 2 then
		if player:isPremium() then
			npcHandler:say(
				"Negative, can't bring you there. \z
			You gotta pass some sort of Barbarian test before they let you live there. \z
			Still, you should go there sometime, I heard it's quite interesting.",
				cid
			)
			npcHandler.topic[cid] = 11
		else
			npcHandler:say("You are not a premium account..", cid)
			npcHandler.topic[cid] = 0
		end
	elseif msgcontains(msg, "thais") and npcHandler.topic[cid] == 2 then
		npcHandler:say(
			"Old-school city. Actually the oldest main city in Tibia. \z
			Be careful on those streets, there are bandits everywhere. But I can {sail} there if you like.",
			cid
		)
		npcHandler.topic[cid] = 12
	elseif msgcontains(msg, "venore") and npcHandler.topic[cid] == 2 then
		npcHandler:say(
			"Hohoh, one of the richest cities, filled with merchants and LOOT! Err. \z
			I mean, it is HIGHLY recommendable for unexperienced and first-time adventurers. \z
			Don't know why they built it over a stinking swamp though. I can {sail} there if you like.",
			cid
		)
		npcHandler.topic[cid] = 13
	elseif msgcontains(msg, "sail") then
		for index, value in pairs(topicTable) do
			if npcHandler.topic[cid] == index then
				npcHandler:say("So, you've decided on your new home city?", cid)
				npcHandler.topic[cid] = value
			end
		end
	elseif msgcontains(msg, "yes") then
		for index, value in pairs(townTable) do
			local townId = Town(value)
			if npcHandler.topic[cid] == index then
				player:setTown(townId)
				player:teleportTo(townId:getTemplePosition())
				player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
				player:setStorageValue(Storage.Dawnport.Mainland, 1)
				
				-- The Mermaid Marina
                player:setStorageValue(Storage.FriendsandTraders.DefaultStart, 1)
                player:setStorageValue(Storage.FriendsandTraders.TheMermaidMarina, 2)

                -- Forgotten Knowledge
                player:setStorageValue(Storage.ForgottenKnowledge.Tomes, 1)
                player:setStorageValue(Storage.ForgottenKnowledge.LastLoreKilled, 1)
                player:setStorageValue(Storage.ForgottenKnowledge.TimeGuardianKilled, 1)
                player:setStorageValue(Storage.ForgottenKnowledge.HorrorKilled, 1)
                player:setStorageValue(Storage.ForgottenKnowledge.DragonkingKilled, 1)
                player:setStorageValue(Storage.ForgottenKnowledge.ThornKnightKilled, 1)
                player:setStorageValue(Storage.ForgottenKnowledge.LloydKilled, 1)
                player:setStorageValue(Storage.ForgottenKnowledge.LadyTenebrisKilled, 1)
                player:setStorageValue(Storage.ForgottenKnowledge.AccessMachine, 1)

                -- The Explorer Society Quest
                player:setStorageValue(Storage.ExplorerSociety.QuestLine, 61)
                player:setStorageValue(Storage.ExplorerSociety.JoiningtheExplorers, 4)
                player:setStorageValue(Storage.ExplorerSociety.TheIceDelivery, 7)
                player:setStorageValue(Storage.ExplorerSociety.TheButterflyHunt, 16)
                player:setStorageValue(Storage.ExplorerSociety.ThePlantCollection, 26)
                player:setStorageValue(Storage.ExplorerSociety.TheLizardUrn, 29)
                player:setStorageValue(Storage.ExplorerSociety.TheBonelordSecret, 32)
                player:setStorageValue(Storage.ExplorerSociety.TheOrcPowder, 35)
                player:setStorageValue(Storage.ExplorerSociety.TheElvenPoetry, 38)
                player:setStorageValue(Storage.ExplorerSociety.TheMemoryStone, 41)
                player:setStorageValue(Storage.ExplorerSociety.TheRuneWritings, 44)
                player:setStorageValue(Storage.ExplorerSociety.TheEctoplasm, 47)
                player:setStorageValue(Storage.ExplorerSociety.TheSpectralDress, 50)
                player:setStorageValue(Storage.ExplorerSociety.TheSpectralStone, 55)
                player:setStorageValue(Storage.ExplorerSociety.TheAstralPortals, 56)
                player:setStorageValue(Storage.ExplorerSociety.TheIslandofDragons, 59)
                player:setStorageValue(Storage.ExplorerSociety.TheIceMusic, 62)
                player:setStorageValue(Storage.ExplorerSociety.CalassaQuest, 3)

                -- In Service Of Yalahar
                player:setStorageValue(Storage.InServiceofYalahar.Questline, 48)
                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.TheWayToYalahar.QuestLine, 30)

                -- Searoutes Around Yalahar
                player:setStorageValue(Storage.SearoutesAroundYalahar.TownsCounter, 8)
                player:setStorageValue(Storage.SearoutesAroundYalahar.AbDendriel, 1)
                player:setStorageValue(Storage.SearoutesAroundYalahar.Darashia, 1)
                player:setStorageValue(Storage.SearoutesAroundYalahar.Venore, 1)
                player:setStorageValue(Storage.SearoutesAroundYalahar.Ankrahmun, 1)
                player:setStorageValue(Storage.SearoutesAroundYalahar.PortHope, 1)
                player:setStorageValue(Storage.SearoutesAroundYalahar.Thais, 1)
                player:setStorageValue(Storage.SearoutesAroundYalahar.LibertyBay, 1)
                player:setStorageValue(Storage.SearoutesAroundYalahar.Carlin, 1)

                -- Children Of The Revolution
                player:setStorageValue(Storage.ChildrenoftheRevolution.Questline, 18)
                player:setStorageValue(Storage.ChildrenoftheRevolution.Mission00, 2)
                player:setStorageValue(Storage.ChildrenoftheRevolution.Mission01, 3)
                player:setStorageValue(Storage.ChildrenoftheRevolution.Mission02, 5)
                player:setStorageValue(Storage.ChildrenoftheRevolution.Mission04, 3)
                player:setStorageValue(Storage.ChildrenoftheRevolution.Mission05, 6)

                -- The Travelling Trader
                player:setStorageValue(Storage.TravellingTrader.Mission01, 2)
                player:setStorageValue(Storage.TravellingTrader.Mission02, 5)
                player:setStorageValue(Storage.TravellingTrader.Mission03, 3)
                player:setStorageValue(Storage.TravellingTrader.Mission04, 3)
                player:setStorageValue(Storage.TravellingTrader.Mission05, 3)
                player:setStorageValue(Storage.TravellingTrader.Mission06, 2)
                player:setStorageValue(Storage.TravellingTrader.Mission07, 1)
                player:setStorageValue(Storage.TravellingTrader.packageDoor, 1)

                -- The Inquisition
                player:setStorageValue(Storage.TheInquisition.Questline, 14)
                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.PitsOfInferno.ThronePumin, 1)

                -- The New Frontier
                player:setStorageValue(Storage.TheNewFrontier.Questline, 24)
                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.TomeofKnowledge, 12)

                -- Barbarian Test
                player:setStorageValue(Storage.BarbarianTest.Questline, 8)
                player:setStorageValue(Storage.BarbarianTest.Mission01, 3)
                player:setStorageValue(Storage.BarbarianTest.Mission02, 3)
                player:setStorageValue(Storage.BarbarianTest.Mission03, 3)

                -- Wrath Of The Emperor
                player:setStorageValue(Storage.WrathoftheEmperor.Questline, 24)
                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)

                -- Djinn War Factions
                player:setStorageValue(Storage.DjinnWar.EfreetFaction.Start, 1)
                player:setStorageValue(Storage.DjinnWar.EfreetFaction.Mission01, 3)
                player:setStorageValue(Storage.DjinnWar.EfreetFaction.Mission02, 3)
                player:setStorageValue(Storage.DjinnWar.EfreetFaction.Mission03, 3)
                player:setStorageValue(Storage.DjinnWar.MaridFaction.Start, 1)
                player:setStorageValue(Storage.DjinnWar.MaridFaction.Mission01, 2)
                player:setStorageValue(Storage.DjinnWar.MaridFaction.Mission02, 2)
                player:setStorageValue(Storage.DjinnWar.MaridFaction.Mission03, 3)
                player:setStorageValue(Storage.DjinnWar.MaridFaction.RataMari, 2)

                -- Big Foot Burden
                player:setStorageValue(Storage.BigfootBurden.QuestLine, 30)
                player:setStorageValue(Storage.BigfootBurden.Rank, 30)
                player:setStorageValue(Storage.BigfootBurden.Warzone1Access, 2)
                player:setStorageValue(Storage.BigfootBurden.Warzone2Access, 2)
                player:setStorageValue(Storage.BigfootBurden.Warzone3Access, 2)
                player:setStorageValue(Storage.BigfootBurden.WarzoneStatus, 1)

                -- The Shattered Isles
                player:setStorageValue(Storage.TheShatteredIsles.DefaultStart, 1)
                player:setStorageValue(Storage.TheShatteredIsles.ADjinnInLove, 5)
                player:setStorageValue(Storage.TheShatteredIsles.APoemForTheMermaid, 3)
                player:setStorageValue(Storage.TheShatteredIsles.AccessToGoroma, 1)
                player:setStorageValue(Storage.TheShatteredIsles.AccessToLagunaIsland, 1)
                player:setStorageValue(Storage.TheShatteredIsles.AccessToMeriana, 1)
                player:setStorageValue(Storage.TheShatteredIsles.TheCounterspell, 4)
                player:setStorageValue(Storage.TheShatteredIsles.TheErrand, 2)
                player:setStorageValue(Storage.TheShatteredIsles.TheGovernorDaughter, 3)

                -- Cults of Tibia
                player:setStorageValue(Storage.CultsOfTibia.Questline, 1)
                player:setStorageValue(Storage.CultsOfTibia.Minotaurs.Mission, 1)
                player:setStorageValue(Storage.CultsOfTibia.MotA.Mission, 1)
                player:setStorageValue(Storage.CultsOfTibia.Barkless.Mission, 1)
                player:setStorageValue(Storage.CultsOfTibia.Misguided.Mission, 1)
                player:setStorageValue(Storage.CultsOfTibia.Orcs.Mission, 1)
                player:setStorageValue(Storage.CultsOfTibia.Life.Mission, 1)
                player:setStorageValue(Storage.CultsOfTibia.Humans.Mission, 1)

                -- The First Dragon
                player:setStorageValue(Storage.TheFirstDragon.tamorilTasks, 1)
                player:setStorageValue(Storage.TheFirstDragon.tamorilTasksPower, 0)
                player:setStorageValue(Storage.TheFirstDragon.tamorilTasksKnowledge, 0)
                player:setStorageValue(Storage.TheFirstDragon.tamorilTasksLife, 0)
                player:setStorageValue(Storage.TheFirstDragon.tamorilTasksTreasure, 0)
                player:setStorageValue(Storage.TheFirstDragon.tamorilTasksTreasure, 0)

                -- Achievements
                player:addAchievement("Just in Time")
                player:addAchievement("Recognised Trader")
                player:addAchievement("Bearhugger")
                player:addAchievement("Honorary Barbarian")
                player:addAchievement("Ghostwhisperer")
                player:addAchievement("Efreet Ally")
                player:addAchievement("Marid Ally")
                player:addAchievement("Explorer")
                player:addAchievement("Sea Scout")
				
				npcHandler:say(
					"Cast off! Don't forget to talk to the guide at the port for directions to nearest bars... \z
					err, shops and bank and such!",
					cid
				)
				npcHandler.topic[cid] = 0
			end
		end
	else
		npcHandler:say(
			"Kid, listen. Answering with a clear {yes} will get you much further in World. \z
			Most people are not as sharp-eared as I am. Got that?",
			cid
		)
		npcHandler.topic[cid] = 0
	end
	return true
end

npcHandler:setMessage(
	MESSAGE_FAREWELL,
	"You sure you want to spend time on this piece of rock? \z
I can show you the world! Huh."
)

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:setCallback(CALLBACK_GREET, greetCallback)

npcHandler:addModule(FocusModule:new())

 

 

separador.png

CRÉDITOS:

@EddyHavoc

@Marco Oliveira

Edited by EddyHavoc (see edit history)
Link to post
Share on other sites

  • Director

Sempre atento aos mínimos detalhes, parabéns pelo notável e exemplar conteúdo doado ao TibiaKing @EddyHavoc 👑

Tutoriais, lives, suporte, desafios, classificados e freelancer você encontra na Academia de Otserver.

separa10.png

 

Conheça nossos grupos:

 

academiaicone1.png                        academiaicone2.png

Academia de Mapping!        Academia de Coding!

 

academiaicone3.png

Academia de Design!

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

 

 

Precisando de Sprites?

 

 

Academia de Spriting

Academia de Spriting - Baixe Sprites gratuitas (FREE) em nosso blog!

 

 

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

« Mapas do Nolis »

 

 

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Maniaco
      Boa Tarde TibiaKing!!!
       
      Bom estou precisando de um script não deve ser muito difícil !! (pra quem sabe  !)
      Quem poder ajudar já agradeço. ++ Rep
       
       
      Seria um Npc Exemplo
      Player :Hi
      Npc: Ola (PLAYERNAME) gostaria de receber {buff} ?
       
      Player: Buff 
      Npc: Gostaria de receber qual, Buff 1, buff 2, buff 3,..... buff 12.
       
      Player: Buff 12
      Npc: voce precisar ter recebido o Buff Anterior (Buff 11) para receber o próximo Buff (Buff 12)
       
      Player: Buff 1
      Npc: você precisa do item xxxx <<< !! Alem do item uma storage certa e o level!
       
      Player: Buff 1 "novamente <"
      Npc: você já recebeu esse buff!
       
      Config do npc
       
      [buff 01] = life 1000000 (Permanente)
                        mana = 10000000 ( Permanente)
      Level = 100 <!! ele so pode receber buff 01 no level 100 e assim em diante
      Storage = 211100 ( caso ele não tenha < vai aparecer o seguinte "você não completou a missão dos buffs"
      [buff 02] = life 1000000 (Permanente)
                        mana = 10000000 (Permanente)
      Level = 200
      Storage = 211101
       
       
       
      o player só poderá receber o próximo buff se ele Receber o primeiro Buff antes (Ex ele so pode ter buff 02 se tiver recebido o buff 01) 
       
      Espero que de para entender tudo!! 
       
       
       
       
       
       
       
    • By Fakeownerz
      Olá!
      Primeiramente peço desculpas pelo que vão ler, pois não entendo muito do assunto (por isso vim fazer o tópico '-')
       
      Vamos lá.
       
      Ao tentar abrir o servidor , me deparo com o seguinte erro:
       
       
      Meu config.lua está assim:
       
       
      Gostaria de saber como arrumar (só para abrir em meu pc , pra dar uma olhada pra arrumar algums bugs...) ou até mesmo só passar pra sqlite (que eu acho bem mais simples e tenho o mínimo de noção... Agradeço a atenção e peço desculpas novamente pela ignorância sobre o assunto caso seja algo extremamente simples.
    • By marvadon
      Bom Dia pessoal do TK
       
      estou com problemas com o npc xodet.
      ele não entrega e nem vende a wand of dragonbreath, aparece na lista de compra mas não ocorre nehuma ação referente a entrega e cobrança de gold.
       
      todos os outros itens ele entrega normalmente.
       
      alguém poderia me ajudar.
       
       
      Obrigado
      local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addBuyableItem({'spellbook'}, 2175, 150, 1, 'spellbook') shopModule:addBuyableItem({'small health'}, 8704, 20, 1, 'small health potion') shopModule:addBuyableItem({'health potion'}, 7618, 45, 1, 'health potion') shopModule:addBuyableItem({'mana potion'}, 7620, 50, 1, 'mana potion') shopModule:addBuyableItem({'strong health'}, 7588, 100, 1, 'strong health potion') shopModule:addBuyableItem({'strong mana'}, 7589, 80, 1, 'strong mana potion') shopModule:addBuyableItem({'great health'}, 7591, 190, 1, 'great health potion') shopModule:addBuyableItem({'great mana'}, 7590, 120, 1, 'great mana potion') shopModule:addBuyableItem({'great spirit'}, 8472, 190, 1, 'great spirit potion') shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 1, 'ultimate health potion') shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask') shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 10, 'empty strong potion flask') shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 15, 'empty great potion flask') shopModule:addBuyableItem({'instense healing'}, 2265, 95, 1, 'intense healing rune') shopModule:addBuyableItem({'ultimate healing'}, 2273, 100, 1, 'ultimate healing rune') shopModule:addBuyableItem({'fire bomb'}, 2305, 117, 1, 'fire bomb') shopModule:addBuyableItem({'destroy field'}, 2261, 15, 1, 'destroy field rune') shopModule:addBuyableItem({'light magic missile'}, 2287, 4, 1, 'light magic missile rune') shopModule:addBuyableItem({'heavy magic missile'}, 2311, 12, 1, 'heavy magic missile rune') shopModule:addBuyableItem({'great fireball'}, 2304, 45, 1, 'great fireball rune') shopModule:addBuyableItem({'explosion'}, 2313, 31, 1, 'explosion rune') shopModule:addBuyableItem({'sudden death'}, 2268, 40, 1, 'sudden death rune') shopModule:addBuyableItem({'convince creature'}, 2290, 80, 1, 'convince creature rune') shopModule:addBuyableItem({'chameleon'}, 2291, 210, 1, 'chameleon rune') shopModule:addBuyableItem({'desintegrate'}, 2310, 80, 1, 'desintegreate rune') shopModule:addBuyableItem({'fire field'}, 2301, 28, 1, 'fire field rune') shopModule:addBuyableItem({'energy field'}, 2301, 38, 1, 'energy field rune') shopModule:addBuyableItem({'avalanche rune'}, 2274, 45, 1, 'avalanche rune') shopModule:addBuyableItem({'antidote rune'}, 2266, 65, 1, 'antidote rune') shopModule:addBuyableItem({'energy wall'}, 2279, 85, 1, 'energy wall rune') shopModule:addBuyableItem({'icicle'}, 2271, 30, 1, 'icicle rune') shopModule:addBuyableItem({'magic wall rune'}, 2293, 30, 1, 'magic wall rune') shopModule:addBuyableItem({'wild growth rune'}, 2269, 15, 1, 'wild growth rune') shopModule:addBuyableItem({'poison field'}, 2285, 21, 1, 'poison field rune') shopModule:addBuyableItem({'poison wall'}, 2289, 52, 1, 'poison wall rune') shopModule:addBuyableItem({'blank'}, 2260, 10, 1, 'blank rune') shopModule:addBuyableItem({'paralyze rune'}, 2278, 5, 1, 'paralyze rune') shopModule:addBuyableItem({'fire ball'}, 2302, 30, 1, 'fire ball rune') shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 500, 'wand of vortex') shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 1000, 1, 'wand of dragonbreath') shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 5000, 'wand of decay') shopModule:addBuyableItem({'wand of draconia', 'draconia'}, 8921, 7500, 'wand of draconia') shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 10000, 'wand of cosmic energy') shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 15000, 'wand of inferno') shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 18000, 'wand of starstorm') shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 'wand of voodoo') shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask') shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 10, 'empty strong potion flask') shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 15, 'empty great potion flask') shopModule:addSellableItem({'wand of vortex', 'vortex'}, 2190, 250, 'wand of vortex') shopModule:addSellableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 500, 'wand of dragonbreath') shopModule:addSellableItem({'wand of decay', 'decay'}, 2188, 2500, 'wand of decay') shopModule:addSellableItem({'wand of draconia', 'draconia'}, 8921, 3750, 'wand of draconia') shopModule:addSellableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 5000, 'wand of cosmic energy') shopModule:addSellableItem({'wand of inferno', 'inferno'},2187, 7500, 'wand of inferno') shopModule:addSellableItem({'wand of starstorm', 'starstorm'}, 8920, 9000, 'wand of starstorm') shopModule:addSellableItem({'wand of voodoo', 'voodoo'}, 8922, 11000, 'wand of voodoo') shopModule:addSellableItem({'snakebite rod', 'snakebite'}, 2182, 250, 1, 'snakebite rod') shopModule:addSellableItem({'moonlight rod', 'moonlight'}, 2186, 500, 1, 'moonlight rod') shopModule:addSellableItem({'necrotic rod', 'necrotic'}, 2185, 2500, 1, 'necrotic rod') shopModule:addSellableItem({'northwind rod', 'northwind'}, 8911, 3750, 1, 'northwind rod') shopModule:addSellableItem({'terra rod', 'terra'}, 2181, 5000, 1, 'terra rod') shopModule:addSellableItem({'hailstorm rod', 'hailstorm'}, 2183, 7500, 1, 'hailstorm rod') shopModule:addSellableItem({'springsprout rod', 'springsprout'}, 8912, 9000, 1, 'springsprout rod') shopModule:addSellableItem({'underworld rod', 'underworld'}, 8910, 11000, 1, 'underworld rod') shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 500, 'snakebite rod') shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 'moonlight rod') shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 5000, 'necrotic rod') shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 7500, 'northwind rod') shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 10000, 'terra rod') shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 2183, 15000, 'hailstorm rod') shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 18000, 'springsprout rod') shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 'underworld rod') npcHandler:addModule(FocusModule:new())
    • By Digoshow
      Gente e o seguinte, eu fiz uma quest com o RME, e no final da quest quero que um player de use no Bau e Catar um item, o item seria Document = ID: 952, e apos ele dar use nesse document, e liberado e certo lugar para ele passar.
      Ele faz a quest, e quando ele pega o Document e ele der use, ira sair uma mensagem assim, Parabens, Voce conseguiu Acesso Full.
      E ai ia liberar tiles para ele passa para um Hunt sempre que ele quiser, entendero?
      Tipo uma quest da vip 2, Os player que termina a quest, e liberado acesso a vip 2 !
      Alguem pode me ajudar, sim eu procurei nao como eu nao so la aquelas coisas nao consegui, eu ate tentei mais deu o erro a seguir, e ainda o script nem dava item, mais tentei mesmo assim, olhem o erro que da.
       


        Ai gente alguem pode me ajudar com esse script? Que ao da use la no bau pega o item e quando usar, voce ganha acesso a lugares novos, tipo voce usa o item, e voce podera passar nos tiles. Obrigado, REP+ .
    • By O.J
      Olá amigos estou aqui mais uma vez para pedir uma coisa, um NPC que peça items para o player e se o player trazer os itens ele ganha um prêmio, só que depois que ele pegasse o prêmio ele não pudesse fazer a quest novamente colocassem tipo uma storage que checa se ele ja fez a quest entendem? Por favor se puderem ajudar agradeço muito meu Ot é 8.60 obrigado comunidade .
  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...

Important Information

Confirmação de Termo