Ir para conteúdo

luanluciano93

Héroi
  • Registro em

  • Última visita

Tudo que luanluciano93 postou

  1. https://github.com/otland/forgottenserver/issues/3102
  2. Cara, estou fazendo uns testes em um VPS na locaweb. Tive uma grande dificuldade para aprovação da conta e pagamento, eles tem vários procedimentos, envio de documentos e etc, porém gostei muito dos resultados. O melhor é o ping, coisa de 30ms.
  3. if isMonster(target) == true and getCreatureName(target) == "Renegade" then local amount = getPlayerStorageValue(cid,19100) <= 0 and 0 or getPlayerStorageValue(cid, 19100) if amount < 75 then setPlayerStorageValue(cid, 19100, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19100).."/75 Renegades.") end
  4. com esse script não é nem pra logar outro mc. Você fez algo errado.
  5. if player:getStorageValue(Storage.SvargrondArena.Pit) ~= nil then if player:getStorageValue(Storage.SvargrondArena.Pit) > 0 then player:setStorageValue(Storage.SvargrondArena.Pit, 0) end end
  6. Explica certinho o que você quer fazer, do zero.
  7. A função getTourneyLevel esta retornando nula. Tenta: domodlib('TourneyPVP_func') function onKill(cid, target, damage, flags) if not isPlayer(target) or not isPlayer(cid) then return true end addEvent(doCleanArena, 100) local shield = getCreaturePartyShield(cid) local players = getPlayersInArea(TOURNEY_CONFIG.ARENA.AREA[1], TOURNEY_CONFIG.ARENA.AREA[2]) local t = getTourneyLevel() if isInArray(players, target) then for _, dead in pairs(players) do if dead == target then table.remove(players, _) doRemovePlayerTourney(target) end end end local check = true local check_again = false for i = 1, #players do if getCreaturePartyShield(players) ~= shield then check = false break end end if t then local tourney_players = getPlayersTourneyByLevel(t.level) if check == true then local r = t.round_rewards for i = 1, #players do for k = 1, #r do if not isItemStackable(r[k][1]) then for j = 1, r[k][2] do doPlayerAddItem(players, r[k][1], 1) end else doPlayerAddItem(players, r[k][1], r[k][2]) end end doSendAnimatedText(getPlayerPosition(players), "WINNER!", COLOR_ORANGE) end if #tourney_players < TOURNEY_CONFIG.GROUP and #tourney_players > 0 then for i = 1, #tourney_players do local tid = tourney_players if isPlayer(tid) then if (not isInArray(TOURNEY_CONFIG.NOT_ALLOWED, getCreatureSkullType(tid))) then doCreatureSetPartyShield(tid, (shield == SHIELD_YELLOW and SHIELD_BLUE or SHIELD_YELLOW)) doTeleportThing(tid, TOURNEY_CONFIG.ARENA.FIGHT[1]) doPlayerSendTextMessage(tid, MESSAGE_INFO_DESCR, "IT'S TIME!") doRemovePlayerTourney(tid) else doRemovePlayerTourney(tid) if #getPlayersTourneyByLevel(t.level) == 0 then check_again = true break end end end end elseif #tourney_players >= TOURNEY_CONFIG.GROUP then g = doPlayersGroups(tourney_players, TOURNEY_CONFIG.GROUP)[1] for i = 1, TOURNEY_CONFIG.GROUP do if isPlayer(g) then if (not isInArray(TOURNEY_CONFIG.NOT_ALLOWED, getCreatureSkullType(g))) then doCreatureSetPartyShield(g, (shield == SHIELD_YELLOW and SHIELD_BLUE or SHIELD_YELLOW)) doTeleportThing(g, TOURNEY_CONFIG.ARENA.FIGHT[1]) doPlayerSendTextMessage(g, MESSAGE_INFO_DESCR, "IT'S TIME!") doRemovePlayerTourney(g) else doRemovePlayerTourney(g) if #getPlayersTourneyByLevel(t.level) == 0 then check_again = true break end end end end doSendMagicEffect(TOURNEY_CONFIG.ARENA.FIGHT[1], CONST_ME_TELEPORT) else for i = 1, #players do doTeleportThing(players, TOURNEY_CONFIG.ARENA.EXIT) doPlayerSendTextMessage(players, MESSAGE_STATUS_CONSOLE_ORANGE, "Voc▒ n▒o tem mais oponentes para lutar.") doCreatureSetPartyShield(players, SHIELD_NONE) end doSendMagicEffect(TOURNEY_CONFIG.ARENA.EXIT, CONST_ME_TELEPORT) end end if check_again == true then local new_players = getPlayersInArea(TOURNEY_CONFIG.ARENA.AREA[1], TOURNEY_CONFIG.ARENA.AREA[2]) for i = 1, #new_players do doTeleportThing(new_players, TOURNEY_CONFIG.ARENA.EXIT) doPlayerSendTextMessage(new_players, MESSAGE_STATUS_CONSOLE_ORANGE, "Voc▒ n▒o tem mais oponentes para lutar.") doCreatureSetPartyShield(new_players, SHIELD_NONE) end doSendMagicEffect(TOURNEY_CONFIG.ARENA.EXIT, CONST_ME_TELEPORT) end end return true end:onKill
  8. local deathListEnabled = true function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local playerId = player:getId() if nextUseStaminaTime[playerId] ~= nil then nextUseStaminaTime[playerId] = nil end player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You are dead.') local SvargrondArenaPit = player:getStorageValue(Storage.SvargrondArena.Pit) if SvargrondArenaPit then if SvargrondArenaPit > 0 then player:setStorageValue(Storage.SvargrondArena.Pit, 0) end end if not deathListEnabled then return end local byPlayer = 0 local killerName if killer ~= nil then if killer:isPlayer() then byPlayer = 1 else local master = killer:getMaster() if master and master ~= killer and master:isPlayer() then killer = master byPlayer = 1 end end killerName = killer:isMonster() and killer:getType():getNameDescription() or killer:getName() else killerName = 'field item' end local byPlayerMostDamage = 0 local mostDamageKillerName if mostDamageKiller ~= nil then if mostDamageKiller:isPlayer() then byPlayerMostDamage = 1 else local master = mostDamageKiller:getMaster() if master and master ~= mostDamageKiller and master:isPlayer() then mostDamageKiller = master byPlayerMostDamage = 1 end end mostDamageName = mostDamageKiller:isMonster() and mostDamageKiller:getType():getNameDescription() or mostDamageKiller:getName() else mostDamageName = 'field item' end local playerGuid = player:getGuid() db.query('INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `is_player`, `mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`) VALUES (' .. playerGuid .. ', ' .. os.time() .. ', ' .. player:getLevel() .. ', ' .. db.escapeString(killerName) .. ', ' .. byPlayer .. ', ' .. db.escapeString(mostDamageName) .. ', ' .. byPlayerMostDamage .. ', ' .. (unjustified and 1 or 0) .. ', ' .. (mostDamageUnjustified and 1 or 0) .. ')') local resultId = db.storeQuery('SELECT `player_id` FROM `player_deaths` WHERE `player_id` = ' .. playerGuid) local deathRecords = 0 local tmpResultId = resultId while tmpResultId ~= false do tmpResultId = result.next(resultId) deathRecords = deathRecords + 1 end if resultId ~= false then result.free(resultId) end if byPlayer == 1 then local targetGuild = player:getGuild() targetGuild = targetGuild and targetGuild:getId() or 0 if targetGuild ~= 0 then local killerGuild = killer:getGuild() killerGuild = killerGuild and killerGuild:getId() or 0 if killerGuild ~= 0 and targetGuild ~= killerGuild and isInWar(playerId, killer.uid) then local warId = false resultId = db.storeQuery('SELECT `id` FROM `guild_wars` WHERE `status` = 1 AND ((`guild1` = ' .. killerGuild .. ' AND `guild2` = ' .. targetGuild .. ') OR (`guild1` = ' .. targetGuild .. ' AND `guild2` = ' .. killerGuild .. '))') if resultId ~= false then warId = result.getNumber(resultId, 'id') result.free(resultId) end if warId ~= false then db.asyncQuery('INSERT INTO `guildwar_kills` (`killer`, `target`, `killerguild`, `targetguild`, `time`, `warid`) VALUES (' .. db.escapeString(killerName) .. ', ' .. db.escapeString(player:getName()) .. ', ' .. killerGuild .. ', ' .. targetGuild .. ', ' .. os.time() .. ', ' .. warId .. ')') end end end end end
  9. Desconheço função que faz ele "montar" a criatura, o que daria seria adicionar a montaria ... https://github.com/otland/forgottenserver/issues/2873
  10. if(isMonster(target) == true) then if getCreatureName(target) == "Renegade" then if(getPlayerStorageValue(cid,19100) <= 0) then setPlayerStorageValue(cid, 19100, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "1/75 Renegades mortos.") else setPlayerStorageValue(cid, 19100, getPlayerStorageValue(cid,19100) + 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerStorageValue(cid,19100) .. "/75 monstros Renegades mortos.") end end
  11. local antiMc = CreatureEvent("AntiMc") function antiMc.onLogin(player) local mc = 0 for _, check in ipairs(Game.getPlayers()) do if player:getIp() == check:getIp() then mc = mc + 1 if mc > 1 then return false end end end return true end antiMc:register()
  12. Para TFS 1.3 a questão do look fica nessa parte: https://github.com/otland/forgottenserver/blob/master/data/events/scripts/player.lua#L5-L56
  13. Qual o sistema operacional do seu VPS? tenta ver algum tutorial na seção de infraestrutura https://tibiaking.com/forums/forum/123-tutoriais-infraestrutura-proteção/
  14. Desconheço esse erro
  15. 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local player = Player(cid) if(msgcontains(msg, "mission")) then if(os.date("%A") == "Monday") then if(player:getStorageValue(Storage.TravellingTrader.Mission01) < 1) then npcHandler:say("Well, you could attempt the mission to become a recognised trader, but it requires a lot of travelling. Are you willing to try?", cid) npcHandler.topic[cid] = 1 elseif(player:getStorageValue(Storage.TravellingTrader.Mission01) == 1) then npcHandler:say("Have you managed to obtain a rare deer trophy for my customer?", cid) npcHandler.topic[cid] = 3 end elseif(os.date("%A") == "Tuesday") then if(player:getStorageValue(Storage.TravellingTrader.Mission01) == 2 and player:getStorageValue(Storage.TravellingTrader.Mission02) < 1 ) then npcHandler:say("So, my friend, are you willing to proceed to the next mission to become a recognised trader?", cid) npcHandler.topic[cid] = 4 elseif(player:getStorageValue(Storage.TravellingTrader.Mission02) == 4) then npcHandler:say("Did you bring me the package?", cid) npcHandler.topic[cid] = 6 end elseif(os.date("%A") == "Wednesday") then if(player:getStorageValue(Storage.TravellingTrader.Mission02) == 5 and player:getStorageValue(Storage.TravellingTrader.Mission03) < 1 ) then npcHandler:say("So, my friend, are you willing to proceed to the next mission to become a recognised trader?", cid) npcHandler.topic[cid] = 7 elseif(player:getStorageValue(Storage.TravellingTrader.Mission03) == 2) then npcHandler:say("Have you brought the cheese?", cid) npcHandler.topic[cid] = 9 end elseif(os.date("%A") == "Thursday") then if(player:getStorageValue(Storage.TravellingTrader.Mission03) == 3 and player:getStorageValue(Storage.TravellingTrader.Mission04) < 1) then npcHandler:say("So, my friend, are you willing to proceed to the next mission to become a recognised trader?", cid) npcHandler.topic[cid] = 10 elseif(player:getStorageValue(Storage.TravellingTrader.Mission04) == 2) then npcHandler:say("Have you brought the vase?", cid) npcHandler.topic[cid] = 12 end elseif(os.date("%A") == "Friday") then if(player:getStorageValue(Storage.TravellingTrader.Mission04) == 3 and player:getStorageValue(Storage.TravellingTrader.Mission05) < 1) then npcHandler:say("So, my friend, are you willing to proceed to the next mission to become a recognised trader?", cid) npcHandler.topic[cid] = 13 elseif(player:getStorageValue(Storage.TravellingTrader.Mission05) == 2) then npcHandler:say("Have you brought a cheap but good crimson sword?", cid) npcHandler.topic[cid] = 15 end elseif(os.date("%A") == "Saturday") then if(player:getStorageValue(Storage.TravellingTrader.Mission05) == 3 and player:getStorageValue(Storage.TravellingTrader.Mission06) < 1) then npcHandler:say("So, my friend, are you willing to proceed to the next mission to become a recognised trader?", cid) npcHandler.topic[cid] = 16 elseif(player:getStorageValue(Storage.TravellingTrader.Mission06) == 1) then npcHandler:say("Have you brought me a gold fish??", cid) npcHandler.topic[cid] = 18 end elseif(os.date("%A") == "Sunday") then if(player:getStorageValue(Storage.TravellingTrader.Mission06) == 2 and player:getStorageValue(Storage.TravellingTrader.Mission07) ~= 1) then npcHandler:say("Ah, right. <ahem> I hereby declare you - one of my recognised traders! Feel free to offer me your wares!", cid) player:setStorageValue(Storage.TravellingTrader.Mission07, 1) player:addAchievement('Recognised Trader') npcHandler.topic[cid] = 0 end end elseif(msgcontains(msg, "yes")) then if(npcHandler.topic[cid] == 1) then npcHandler:say({ "Very good! I need talented people who are able to handle my wares with care, find good offers and the like, so I'm going to test you. ...", "First, I'd like to see if you can dig up rare wares. Something like a ... mastermind shield! ...", "Haha, just kidding, fooled you there, didn't I? Always control your nerves, that's quite important during bargaining. ...", "Okay, all I want from you is one of these rare deer trophies. I have a customer here in Svargrond who ordered one, so I'd like you to deliver it tome while I'm in Svargrond. ...", "Everything clear and understood?" }, cid) npcHandler.topic[cid] = 2 elseif(npcHandler.topic[cid] == 2) then npcHandler:say("Fine. Then get a hold of that deer trophy and bring it to me while I'm in Svargrond. Just ask me about your mission.", cid) player:setStorageValue(Storage.TravellingTrader.Mission01, 1) npcHandler.topic[cid] = 0 elseif(npcHandler.topic[cid] == 3) then if player:removeItem(7397, 1) then npcHandler:say("Well done! I'll take that from you. <snags it> Come see me another day, I'll be busy for a while now. ", cid) player:setStorageValue(Storage.TravellingTrader.Mission01, 2) npcHandler.topic[cid] = 0 end elseif(npcHandler.topic[cid] == 4) then npcHandler:say({ "Alright, that's good to hear. From you as my trader and deliveryman, I expect more than finding rare items. ...", "You also need to be able to transport heavy wares, weaklings won't get far here. I have ordered a special package from Edron. ...", "Pick it up from Willard and bring it back to me while I'm in Liberty Bay. Everything clear and understood?" }, cid) npcHandler.topic[cid] = 5 elseif(npcHandler.topic[cid] == 5) then npcHandler:say("Fine. Then off you go, just ask Willard about the 'package for Rashid'.", cid) player:setStorageValue(Storage.TravellingTrader.Mission02, 1) npcHandler.topic[cid] = 0 elseif(npcHandler.topic[cid] == 6) then if player:removeItem(7503, 1) then npcHandler:say("Great. Just place it over there - yes, thanks, that's it. Come see me another day, I'll be busy for a while now. ", cid) player:setStorageValue(Storage.TravellingTrader.Mission02, 5) npcHandler.topic[cid] = 0 end elseif(npcHandler.topic[cid] == 7) then npcHandler:say({ "Well, that's good to hear. From you as my trader and deliveryman, I expect more than carrying heavy packages. ...", "You also need to be fast and deliver wares in time. I have ordered a very special cheese wheel made from Darashian milk. ...", "Unfortunately, the high temperature in the desert makes it rot really fast, so it must not stay in the sun for too long. ...", "I'm also afraid that you might not be able to use ships because of the smell of the cheese. ...", "Please get the cheese from Miraia and bring it to me while I'm in Port Hope. Everything clear and understood?" }, cid) npcHandler.topic[cid] = 8 elseif(npcHandler.topic[cid] == ? then npcHandler:say("Okay, then please find Miraia in Darashia and ask her about the {'scarab cheese'}.", cid) player:setStorageValue(Storage.TravellingTrader.Mission03, 1) npcHandler.topic[cid] = 0 elseif(npcHandler.topic[cid] == 9) then if player:removeItem(8112, 1) then npcHandler:say("Mmmhh, the lovely odeur of scarab cheese! I really can't understand why most people can't stand it. Thanks, well done! ", cid) player:setStorageValue(Storage.TravellingTrader.Mission03, 3) npcHandler.topic[cid] = 0 end elseif(npcHandler.topic[cid] == 10) then npcHandler:say({ "Well, that's good to hear. From you as my trader and deliveryman, I expect more than bringing stinky cheese. ...", "I wonder if you are able to deliver goods so fragile they almost break when looked at. ...", "I have ordered a special elven vase from Briasol in Ab'Dendriel. Get it from him and don't even touch it, just bring it to me while I'm in Ankrahmun. Everything clear and understood?" }, cid) npcHandler.topic[cid] = 11 elseif(npcHandler.topic[cid] == 11) then npcHandler:say("Okay, then please find {Briasol} in {Ab'Dendriel} and ask for a {'fine vase'}.", cid) player:setStorageValue(Storage.TravellingTrader.Mission04, 1) player:addMoney(1000) npcHandler.topic[cid] = 0 elseif(npcHandler.topic[cid] == 12) then if player:removeItem(7582, 1) then npcHandler:say("I'm surprised that you managed to bring this vase without a single crack. That was what I needed to know, thank you. ", cid) player:setStorageValue(Storage.TravellingTrader.Mission04, 3) npcHandler.topic[cid] = 0 end elseif(npcHandler.topic[cid] == 13) then npcHandler:say({ "Fine! There's one more skill that I need to test and which is cruicial for a successful trader. ...", "Of course you must be able to haggle, else you won't survive long in this business. To make things as hard as possible for you, I have the perfect trade partner for you. ...", "Dwarves are said to be the most stubborn of all traders. Travel to {Kazordoon} and try to get the smith {Uzgod} to sell a {crimson sword} to you. ...", "Of course, it has to be cheap. Don't come back with anything more expensive than 400 gold. ...", "And the quality must not suffer, of course! Everything clear and understood?", "Dwarves are said to be the most stubborn of all traders. Travel to Kazordoon and try to get the smith Uzgod to sell a crimson sword to you. ..." }, cid) npcHandler.topic[cid] = 14 elseif(npcHandler.topic[cid] == 14) then npcHandler:say("Okay, I'm curious how you will do with {Uzgod}. Good luck!", cid) player:setStorageValue(Storage.TravellingTrader.Mission05, 1) npcHandler.topic[cid] = 0 elseif(npcHandler.topic[cid] == 15) then if player:removeItem(7385, 1) then npcHandler:say("Ha! You are clever indeed, well done! I'll take this from you. Come see me tomorrow, I think we two might get into business after all.", cid) player:setStorageValue(Storage.TravellingTrader.Mission05, 3) npcHandler.topic[cid] = 0 end elseif(npcHandler.topic[cid] == 16) then npcHandler:say({ "My friend, it seems you have already learnt a lot about the art of trading. I think you are more than worthy to become a recognised trader. ...", "There is just one little favour that I would ask from you... something personal, actually, forgive my boldness. ...", "I have always dreamed to have a small pet, one that I could take with me and which wouldn't cause problems. ...", "Could you - just maybe - bring me a small goldfish in a bowl? I know that you would be able to get one, wouldn't you?" }, cid) npcHandler.topic[cid] = 17 elseif(npcHandler.topic[cid] == 17) then npcHandler:say("Thanks so much! I'll be waiting eagerly for your return then.", cid) player:setStorageValue(Storage.TravellingTrader.Mission06, 1) npcHandler.topic[cid] = 0 elseif(npcHandler.topic[cid] == 18) then if player:removeItem(5929, 1) then npcHandler:say("Thank you!! Ah, this makes my day! I'll take the rest of the day off to get to know this little guy. Come see me tomorrow, if you like.", cid) player:setStorageValue(Storage.TravellingTrader.Mission06, 2) npcHandler.topic[cid] = 0 end end end return true end keywordHandler:addKeyword({"job"}, StdModule.say, {npcHandler = npcHandler, text = "I am a travelling trader. I don't buy everything, though. And not from everyone, for that matter."}) keywordHandler:addKeyword({"name"}, StdModule.say, {npcHandler = npcHandler, text = "I am Rashid, son of the desert."}) keywordHandler:addKeyword({"offers"}, StdModule.say, {npcHandler = npcHandler, text = "Of course, old friend. You can also browse only armor, legs, shields, helmets, boots, weapons, enchanted weapons, jewelry or miscellaneous stuff."}) keywordHandler:addKeyword({"ab'dendriel"}, StdModule.say, {npcHandler = npcHandler, text = "Elves... I don't really trust them. All this talk about nature and flowers and treehugging... I'm sure there's some wicked scheme behind all this."}) keywordHandler:addKeyword({"desert"}, StdModule.say, {npcHandler = npcHandler, text = "My beloved hometown! Ah, the sweet scent of the desert sands, the perfect shape of the pyramids... stunningly beautiful."}) keywordHandler:addKeyword({"carlin"}, StdModule.say, {npcHandler = npcHandler, text = "I have to go to Carlin once in a while, since the queen wishes to see my exclusive wares in regular intervals."}) keywordHandler:addKeyword({"cormaya"}, StdModule.say, {npcHandler = npcHandler, text = "Cormaya? Not a good place to make business, it's way too far and small."}) keywordHandler:addKeyword({"darashia"}, StdModule.say, {npcHandler = npcHandler, text = "It's not the real thing, but almost as good. The merchants there claim ridiculous prices, which is fine for my own business."}) keywordHandler:addKeyword({"edron"}, StdModule.say, {npcHandler = npcHandler, text = "Ah yes, Edron! Such a lovely and quiet island! I usually make some nice business there."}) keywordHandler:addKeyword({"fibula"}, StdModule.say, {npcHandler = npcHandler, text = "Too few customers there, it's not worth the trip."}) keywordHandler:addKeyword({"greenshore"}, StdModule.say, {npcHandler = npcHandler, text = "Um... I don't think so."}) keywordHandler:addKeyword({"kazordoon"}, StdModule.say, {npcHandler = npcHandler, text = "I don't like being underground much. I also tend to get lost in these labyrinthine dwarven tunnels, so I rather avoid them."}) keywordHandler:addKeyword({"liberty bay"}, StdModule.say, {npcHandler = npcHandler, text = "When you avoid the slums, it's a really pretty city. Almost as pretty as the governor's daughter."}) keywordHandler:addKeyword({"northport"}, StdModule.say, {npcHandler = npcHandler, text = "Um... I don't think so."}) keywordHandler:addKeyword({"port hope"}, StdModule.say, {npcHandler = npcHandler, text = "I like the settlement itself, but I don't set my foot into the jungle. Have you seen the size of these centipedes??"}) keywordHandler:addKeyword({"senja"}, StdModule.say, {npcHandler = npcHandler, text = "Um... I don't think so."}) keywordHandler:addKeyword({"svargrond"}, StdModule.say, {npcHandler = npcHandler, text = "I wish it was a little bit warmer there, but with a good mug of barbarian mead in your tummy everything gets a lot cosier."}) keywordHandler:addKeyword({"thais"}, StdModule.say, {npcHandler = npcHandler, text = "I feel uncomfortable and rather unsafe in Thais, so I don't really travel there."}) keywordHandler:addKeyword({"vega"}, StdModule.say, {npcHandler = npcHandler, text = "Um... I don't think so."}) keywordHandler:addKeyword({"venore"}, StdModule.say, {npcHandler = npcHandler, text = "Although it's the flourishing trade centre of Tibia, I don't like going there. Too much competition for my taste."}) keywordHandler:addKeyword({"time"}, StdModule.say, {npcHandler = npcHandler, text = "It's almost time to journey on."}) keywordHandler:addKeyword({"king"}, StdModule.say, {npcHandler = npcHandler, text = "Kings, queens, emperors and kaliphs... everyone claims to be different and unique, but actually it's the same thing everywhere."}) npcHandler:setMessage(MESSAGE_GREET, "Ah, a customer! Be greeted, |PLAYERNAME|!") npcHandler:setMessage(MESSAGE_FAREWELL, "Farewell, |PLAYERNAME|, may the winds guide your way.") npcHandler:setMessage(MESSAGE_WALKAWAY, "Come back soon!") npcHandler:setMessage(MESSAGE_SENDTRADE, "Take all the time you need to decide what you want!") local function onTradeRequest(cid) return true end npcHandler:setCallback(CALLBACK_ONTRADEREQUEST, onTradeRequest) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  16. Yaman: Rashid: o script não é esse que você mandou. Haroun: Nah Bob: Alesar:
  17. https://tibiaking.com/forums/topic/51573-recompensa-por-level-item-bank-addon-mount/
  18. Qual a engine do seu servidor? Você disse TF 1.3, ma tem o link dele?
  19. Poste em code o scripts dos npcs que você alterar ...
  20. Use a mais atualizado do próprio github do TFS: https://github.com/otland/forgottenserver Ubuntu 20.04
  21. Se fizer isso no TFS 1.3 é bem simples.
  22. https://github.com/otland/forgottenserver/wiki/Compiling
  23. Alocação falhou, Servidor fora de memória! Diminuir o tamanho do seu mapa ou compilar em modo 64 bits Esses mapas são muito grandes, as vezes seu PC não aguenta.
  24. Veja o wiki do projeto que te mandei: https://github.com/otland/forgottenserver/wiki Aqui fala sobre a compilação dele: https://github.com/otland/forgottenserver/wiki/Compiling

Informação Importante

Confirmação de Termo