Postado Setembro 27, 2017 7 anos Como colocar a função fly no NPC? Não consta e não sei pra onde vai. 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 -- Travel local function addTravelKeyword(keyword, text, cost, destination) local travelKeyword = keywordHandler:addKeyword({keyword}, StdModule.say, {npcHandler = npcHandler, text = 'Do you seek a ride to ' .. text .. ' for |TRAVELCOST|?', cost = cost, discount = 'postman'}) travelKeyword:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, cost = cost, discount = 'postman', destination = destination}) travelKeyword:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, text = 'You shouldn\'t miss the experience.', reset = true}) end addTravelKeyword('darashia', 'Darashia on Darama', 60, Position(33270, 32441, 6)) addTravelKeyword('svargrond', 'Svargrond', 60, Position(32253, 31097, 4)) addTravelKeyword('femor hills', 'the Femor Hills', 60, Position(32536, 31837, 4)) addTravelKeyword('edron', 'Edron', 60, Position(33193, 31784, 3)) addTravelKeyword('kazordoon', 'Kazordoon', 70, Position(33193, 31784, 3)) npcHandler:setMessage(MESSAGE_GREET, "Ah, the wind brings in another visitor. Feel welcome |PLAYERNAME|. Where do you want me to {fly} you?") npcHandler:setMessage(MESSAGE_FAREWELL, "Daraman's blessings!") npcHandler:setMessage(MESSAGE_WALKAWAY, "Daraman's blessings!") npcHandler:addModule(FocusModule:new()) Se alguém poder me ajudar, agradeço desde já! :D
Postado Setembro 28, 2017 7 anos @TheAndB função fly ? O que seria ? Um poketibia ? O problema para adicionar é saber como é e como funciona tal feature.
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.