Ir para conteúdo
  • Cadastre-se

Posts Recomendados

ola boa tarde!!. alguem ajudaria com esses erro na distro!! bom unica coisa que fiz foi mudar as dlls.. esta em milesegundos!!!21aiadz.jpg

Link para o post
Compartilhar em outros sites

Posta a tag que está utilizando no globalevents.xml e o script do zombie.

                                                                     Ajudei? De nada \o/                                            Att Rusherzin

Link para o post
Compartilhar em outros sites

        <globalevent name="zombieevent" time="14:28" event="script" value="zombie.lua"/>

 

globalevents/scripts/zombie

local config = {
    playerCount = 2001, -- Global storage for counting the players left/entered in the event
    zombieCount = 2002, -- Global storage for counting the zombies in the event
    teleportActionId = 2000, -- Action id of the teleport needed for the movement script
    teleportPosition = {x = 160, y = 54, z = 7, stackpos = 1}, -- Where the teleport will be created
    teleportToPosition = {x = 2350, y = 2016, z = 7}, -- Where the teleport will take you
    teleportId = 1387, -- Id of the teleport
    timeToStartEvent = 2, -- Minutes, after these minutes the teleport will be removed and the event will be declared started
    timeBetweenSpawns = 20, -- Seconds between each spawn of zombie
    zombieName = "event zombie", -- Name of the zombie that should be summoned
    playersNeededToStartEvent = 5, -- Players needed before the zombies can spawn.
    
    -- Should be the same as in the creaturescript!
    -- The zombies will spawn randomly inside this area
    fromPosition = {x = 2331, y = 1998, z = 7}, -- top left cornor of the playground
    toPosition = {x = 2376, y = 2038, z = 7}, -- bottom right cornor of the playground
    }
function onTimer()
    local tp = doCreateTeleport(config.teleportId, config.teleportToPosition, config.teleportPosition)
    doItemSetAttribute(tp, "aid", config.teleportActionId)
    doBroadcastMessage("Zombie event ira começar em " .. config.timeToStartEvent .. " minutos! O teleporte será fechado quando o evento iníciar!", MESSAGE_STATUS_WARNING)
    setGlobalStorageValue(config.playerCount, 0)
    setGlobalStorageValue(config.zombieCount, 0)
    addEvent(startEvent, config.timeToStartEvent * 1000 * 60)
    print(getGlobalStorageValue(2001))
end
function startEvent()
    local get = getThingfromPos(config.teleportPosition)
    if get.itemid == config.teleportId then
        doRemoveItem(get.uid, 1)
    end
    
    local fromp, top = config.fromPosition, config.toPosition
    if getGlobalStorageValue(config.playerCount) >= config.playersNeededToStartEvent then
        addEvent(spawnZombie, config.timeBetweenSpawns * 1000)
        doBroadcastMessage("Boa sorte dentro do zombie event ! O teleport fechou!", MESSAGE_STATUS_WARNING)
        
        for x = fromp.x, top.x do
            for y = fromp.y, top.y do
                for z = fromp.z, top.z do
                    areapos = {x = x, y = y, z = z, stackpos = 253}
                    getPlayers = getThingfromPos(areapos)
                    if isPlayer(getPlayers.uid) then
                        doPlayerSendTextMessage(getPlayers.uid, MESSAGE_EVENT_ADVANCE, "O primeiro zombie ira aparecer em " .. config.timeBetweenSpawns .. " segundos! Boa sorte!")
                    end
                end
            end
        end
    else
        doBroadcastMessage("O evento Zombie não pôde iniciar devido a poucos jogadores.\n É preciso pelo menos " .. config.playersNeededToStartEvent .. " players!", MESSAGE_STATUS_WARNING)
        for x = fromp.x, top.x do
            for y = fromp.y, top.y do
                for z = fromp.z, top.z do
                    areapos = {x = x, y = y, z = z, stackpos = 253}
                    getPlayers = getThingfromPos(areapos)
                    if isPlayer(getPlayers.uid) then
                        doTeleportThing(getPlayers.uid, getTownTemplePosition(getPlayerTown(getPlayers.uid)), false)
                        doSendMagicEffect(getPlayerPosition(getPlayers.uid), CONST_ME_TELEPORT)
                    end
                end
            end
        end
    end
end
function spawnZombie()
    if getGlobalStorageValue(config.playerCount) >= 2 then
        pos = {x = math.random(config.fromPosition.x, config.toPosition.x), y = math.random(config.fromPosition.y, config.toPosition.y), z = math.random(config.fromPosition.z, config.toPosition.z)}
        doSummonCreature(config.zombieName, pos)
        doSendMagicEffect(pos, CONST_ME_MORTAREA)
        setGlobalStorageValue(config.zombieCount, getGlobalStorageValue(config.zombieCount)+1)
        doBroadcastMessage("A zombie has spawned! há " .. getGlobalStorageValue(config.zombieCount) .. " zombies no evento!", MESSAGE_STATUS_CONSOLE_RED)
        addEvent(spawnZombie, config.timeBetweenSpawns * 1000)
    end
end

 

 

        <globalevent name="CTFCheck" time="01:10" event="script" value="CTFMax.lua"/>

 

globalevents/scripts/CTFMax

 

--[[
    Capture The Flag System
    Author: Maxwell Denisson(MaXwEllDeN)
    Version: 2.0
    Contact: [email protected]
]]

local CTF = CTF_LIB
local function sendEffect()
    if (getGlobalStorageValue(16505) > 0) then
        doSendAnimatedText(CTF.tppos, "CTF ON", math.random(180))
        addEvent(sendEffect, 750)
    end
end
function onTimer(interval)
    local time = os.date("*t")
    if (isInArray(CTF.days, time.wday)) then
        doBroadcastMessage("[CTF] Está aberto no Templo para novos participantes, em ".. CTF.timeclose .." minuto(s) não será mais possível entrar!")
        setGlobalStorageValue(16705, 1)
        addEvent(CTF.start, CTF.timeclose * 60 * 1000)
        local teelz = doCreateItem(1387, 1, CTF.tppos)
        doItemSetAttribute(teelz, "aid", 47521)
        sendEffect()
    end
    return true
end


 

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

Tenta mudar isso:

function onTimer()

Para:
 

function onTime()

 

                                                                     Ajudei? De nada \o/                                            Att Rusherzin

Link para o post
Compartilhar em outros sites

Certou vou fazer o teste ja te aviso!

esqueci de coloca o npc

-- Advanced NPC System (Created by Jiddo),
-- Modified by Talaturen.

if(NpcSystem == nil) then
	-- Loads the underlying classes of the npcsystem.
	dofile(getDataDir() .. 'npc/lib/npcsystem/keywordhandler.lua')
	dofile(getDataDir() .. 'npc/lib/npcsystem/queue.lua')
	dofile(getDataDir() .. 'npc/lib/npcsystem/npchandler.lua')
	dofile(getDataDir() .. 'npc/lib/npcsystem/modules.lua')

	-- Global npc constants:

	-- Keyword nestling behavior. For more information look at the top of keywordhandler.lua
	KEYWORD_BEHAVIOR = BEHAVIOR_NORMAL_EXTENDED

	-- Greeting and unGreeting keywords. For more information look at the top of modules.lua
	FOCUS_GREETWORDS = {'hi', 'hello', 'hey'}
	FOCUS_FAREWELLWORDS = {'bye', 'farewell', 'cya'}

	-- The word for requesting trade window. For more information look at the top of modules.lua
	SHOP_TRADEREQUEST = {'offer', 'trade'}

	-- The word for accepting/declining an offer. CAN ONLY CONTAIN ONE FIELD! For more information look at the top of modules.lua
	SHOP_YESWORD = {'yes'}
	SHOP_NOWORD = {'no'}

	-- Pattern used to get the amount of an item a player wants to buy/sell.
	PATTERN_COUNT = '%d+'

	-- Talkdelay behavior. For more information, look at the top of npchandler.lua.
	NPCHANDLER_TALKDELAY = TALKDELAY_ONTHINK

	-- Conversation behavior. For more information, look at the top of npchandler.lua.
	NPCHANDLER_CONVBEHAVIOR = CONVERSATION_PRIVATE

	-- Constant strings defining the keywords to replace in the default messages.
	--	For more information, look at the top of npchandler.lua...
	TAG_PLAYERNAME = '|PLAYERNAME|'
	TAG_ITEMCOUNT = '|ITEMCOUNT|'
	TAG_TOTALCOST = '|TOTALCOST|'
	TAG_ITEMNAME = '|ITEMNAME|'
	TAG_QUEUESIZE = '|QUEUESIZE|'

	NpcSystem = {}

	-- Gets an npcparameter with the specified key. Returns nil if no such parameter is found.
	function NpcSystem.getParameter(key)
		local ret = getNpcParameter(tostring(key))
		if((type(ret) == 'number' and ret == 0) or ret == nil) then
			return nil
		else
			return ret
		end
	end

	-- Parses all known parameters for the npc. Also parses parseable modules.
	function NpcSystem.parseParameters(npcHandler)
		local ret = NpcSystem.getParameter('idletime')
		if(ret ~= nil) then
			npcHandler.idleTime = tonumber(ret)
		end
		local ret = NpcSystem.getParameter('talkradius')
		if(ret ~= nil) then
			npcHandler.talkRadius = tonumber(ret)
		end
		local ret = NpcSystem.getParameter('message_greet')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_GREET, ret)
		end
		local ret = NpcSystem.getParameter('message_farewell')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_FAREWELL, ret)
		end
		local ret = NpcSystem.getParameter('message_decline')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_DECLINE, ret)
		end
		local ret = NpcSystem.getParameter('message_needmorespace')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_NEEDMORESPACE, ret)
		end
		local ret = NpcSystem.getParameter('message_needspace')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_NEEDSPACE, ret)
		end
		local ret = NpcSystem.getParameter('message_sendtrade')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_SENDTRADE, ret)
		end
		local ret = NpcSystem.getParameter('message_noshop')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_NOSHOP, ret)
		end
		local ret = NpcSystem.getParameter('message_oncloseshop')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_ONCLOSESHOP, ret)
		end
		local ret = NpcSystem.getParameter('message_onbuy')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_ONBUY, ret)
		end
		local ret = NpcSystem.getParameter('message_onsell')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_ONSELL, ret)
		end
		local ret = NpcSystem.getParameter('message_missingmoney')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_MISSINGMONEY, ret)
		end
		local ret = NpcSystem.getParameter('message_needmoney')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_NEEDMONEY, ret)
		end
		local ret = NpcSystem.getParameter('message_missingitem')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_MISSINGITEM, ret)
		end
		local ret = NpcSystem.getParameter('message_needitem')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_NEEDITEM, ret)
		end
		local ret = NpcSystem.getParameter('message_idletimeout')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_IDLETIMEOUT, ret)
		end
		local ret = NpcSystem.getParameter('message_walkaway')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_WALKAWAY, ret)
		end
		local ret = NpcSystem.getParameter('message_alreadyfocused')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_ALREADYFOCUSED, ret)
		end
		local ret = NpcSystem.getParameter('message_placedinqueue')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_PLACEDINQUEUE, ret)
		end
		local ret = NpcSystem.getParameter('message_buy')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_BUY, ret)
		end
		local ret = NpcSystem.getParameter('message_sell')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_SELL, ret)
		end
		local ret = NpcSystem.getParameter('message_bought')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_BOUGHT, ret)
		end
		local ret = NpcSystem.getParameter('message_sold')
		if(ret ~= nil) then
			npcHandler:setMessage(MESSAGE_SOLD, ret)
		end

		-- Parse modules.
		for parameter, module in pairs(Modules.parseableModules) do
			local ret = NpcSystem.getParameter(parameter)
			if(ret ~= nil) then
				local number = tonumber(ret)
				if(number ~= 0 and module.parseParameters ~= nil) then
					local instance = module:new()
					npcHandler:addModule(instance)
					instance:parseParameters()
				end
			end
		end
	end
end

 

Link para o post
Compartilhar em outros sites

Qual a versão do seu servidor? Esse arquivo que mandou é o data\npc\lib\npcsystem\main.lua?

                                                                     Ajudei? De nada \o/                                            Att Rusherzin

Link para o post
Compartilhar em outros sites

8.6 RUSHER!

 

npc/lib/npcsystem, esse script ta aqui dentro! no caso

 

npc/lib/npcsystem/main = nao existe aqui no server!!!

Link para o post
Compartilhar em outros sites

Okay, tenta usar essa lib em data/npcs/.
lib.rar

                                                                     Ajudei? De nada \o/                                            Att Rusherzin

Link para o post
Compartilhar em outros sites

OLá Rusher boa noite!.

usei essa lib e o erro continuaaaaaa

Em 17/01/2016 18:03:14, Rusherzin disse:

Okay, tenta usar essa lib em data/npcs/.
lib.rar

OLá Rusher boa dia!.

usei essa lib e o erro continuaaaaaa

Link para o post
Compartilhar em outros sites
  • Sub-Admin
19 minutos atrás, mateusmoretti disse:

up

mude

 

function onTimer(interval)
    local time = os.date("*t")
    if (isInArray(CTF.days, time.wday)) then
        doBroadcastMessage("[CTF] Está aberto no Templo para novos participantes, em ".. CTF.timeclose .." minuto(s) não será mais possível entrar!")
        setGlobalStorageValue(16705, 1)
        addEvent(CTF.start, CTF.timeclose * 60 * 1000)
        local teelz = doCreateItem(1387, 1, CTF.tppos)
        doItemSetAttribute(teelz, "aid", 47521)
        sendEffect()
    end
    return true
end

 

 

para

 

function onTime(interval)
    local time = os.date("*t")
    if (isInArray(CTF.days, time.wday)) then
        doBroadcastMessage("[CTF] Está aberto no Templo para novos participantes, em ".. CTF.timeclose .." minuto(s) não será mais possível entrar!")
        setGlobalStorageValue(16705, 1)
        addEvent(CTF.start, CTF.timeclose * 60 * 1000)
        local teelz = doCreateItem(1387, 1, CTF.tppos)
        doItemSetAttribute(teelz, "aid", 47521)
        sendEffect()
    end
    return true
end

 

20230912_034613.png.cf49b650c34dd7d7b1f79bd49c70f53c.png

Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código.  #OpenSource #Programação #Contribuição

 

Link para o post
Compartilhar em outros sites
4 minutos atrás, Alexy Brocanello disse:

mude

 


function onTimer(interval)
    local time = os.date("*t")
    if (isInArray(CTF.days, time.wday)) then
        doBroadcastMessage("[CTF] Está aberto no Templo para novos participantes, em ".. CTF.timeclose .." minuto(s) não será mais possível entrar!")
        setGlobalStorageValue(16705, 1)
        addEvent(CTF.start, CTF.timeclose * 60 * 1000)
        local teelz = doCreateItem(1387, 1, CTF.tppos)
        doItemSetAttribute(teelz, "aid", 47521)
        sendEffect()
    end
    return true
end

 

 

para

 


function onTime(interval)
    local time = os.date("*t")
    if (isInArray(CTF.days, time.wday)) then
        doBroadcastMessage("[CTF] Está aberto no Templo para novos participantes, em ".. CTF.timeclose .." minuto(s) não será mais possível entrar!")
        setGlobalStorageValue(16705, 1)
        addEvent(CTF.start, CTF.timeclose * 60 * 1000)
        local teelz = doCreateItem(1387, 1, CTF.tppos)
        doItemSetAttribute(teelz, "aid", 47521)
        sendEffect()
    end
    return true
end

Fala alexy, esses problema conseguir resolver! problema e essa lib ai que nao tem jeito nenhummm!

erro continua!!

Link para o post
Compartilhar em outros sites
  • Sub-Admin
28 minutos atrás, mateusmoretti disse:

up

mude

 

function onTimer(interval)
    local time = os.date("*t")
    if (isInArray(CTF.days, time.wday)) then
        doBroadcastMessage("[CTF] Está aberto no Templo para novos participantes, em ".. CTF.timeclose .." minuto(s) não será mais possível entrar!")
        setGlobalStorageValue(16705, 1)
        addEvent(CTF.start, CTF.timeclose * 60 * 1000)
        local teelz = doCreateItem(1387, 1, CTF.tppos)
        doItemSetAttribute(teelz, "aid", 47521)
        sendEffect()
    end
    return true
end

 

 

function onTime(interval)
    local time = os.date("*t")
    if (isInArray(CTF.days, time.wday)) then
        doBroadcastMessage("[CTF] Está aberto no Templo para novos participantes, em ".. CTF.timeclose .." minuto(s) não será mais possível entrar!")
        setGlobalStorageValue(16705, 1)
        addEvent(CTF.start, CTF.timeclose * 60 * 1000)
        local teelz = doCreateItem(1387, 1, CTF.tppos)
        doItemSetAttribute(teelz, "aid", 47521)
        sendEffect()
    end
    return true
end

vai em npc/lib/npcsystem/ e coloca isso >> main.lua

Editado por Alexy Brocanello (veja o histórico de edições)

 

20230912_034613.png.cf49b650c34dd7d7b1f79bd49c70f53c.png

Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código.  #OpenSource #Programação #Contribuição

 

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 Jaurez
      .
    • Por Cat
      Em alguns casos, o tibia 8.60 comum não abre de jeito nenhum no map editor, mesmo desmarcando check file signatures e configurando o path corretamente.
       
      Este é o client 8.60 adaptado para o Remere's Map Editor. Resolvi postar já que ele foi removido do site oficial do RME. (ficou apenas a versão para linux lá)
      Se estiver tendo problemas para abrir a versão 8.60, tente utilizar este.
                                                                                                                     
      Baixar o Tibia Client 8.60 que funciona no Remere’s Map Editor
      Essa versão do Tibia 8.60 client resolve o erro unsupported client version ou Could not locate tibia.dat and/or tibia.spr, please navigate to your tibia 8.60 installation folder.
       
      Downloads
      https://tibiaking.com/applications/core/interface/file/attachment.php?id=47333

      Scan: https://www.virustotal.com/gui/file/333e172ac49ba2028db9eb5889994509e7d2de28ebccfa428c04e86defbe15cc
       
    • Por Cat
      O OpenCoreMMO é um emulador de servidor MMORPG gratuito e de código aberto escrito em C#.
      Baseia-se no forgotten server (OpenTibia).

       

       Para se conectar ao servidor, você pode usar OTClient ou OpenTibiaUnity para a versão 8.6.

       
      Lista de funcionalidades!
      Leitura da estrutura de arquivos OTB e OTBM Carregando OTBM Tile Area, Towns e Waypoints Carregando Áreas de Spawn LogIn e LogOut Player no jogo Todos os movimentos do jogador Conexão multijogador Spawn e Respawn Monsters Combate PvM Depot Bate-papos   -Guilds   -Canais Públicos   -Canais de pilhagem e morte Lista VIP Combate PvP Sistema NPC Lua Scripting C# Scripting  
       Tecnologias:
      C# .Net 5 Database support: InMemory, MySQL, SQL Server and SQLite Console Debug Logging XUnit Testing  
       
      Amostra:
      [spoiler]

      [/spoiler]
       
      Como rodar?
      Suporte para mysql e sqlite, para rodar em seu PC veja este guia rápido: 
      https://caioavidal.gitbook.io/opencoremmo/how-to-run

       
       
      Acompanhe o projeto em:
       Github:
      https://caioavidal.gitbook.io/opencoremmo/
      https://github.com/caioavidal/OpenCoreMMO
       
       Trello:
      https://trello.com/b/JnOJ9yn5/opencoremmo
       
       TibiaKing:
       
    • Por danilo belato
      Fala Galera To Com um problema aki 
       
      quero exporta umas sprites de um server para colocar em outro 
       
      eu clico na sprites ai aparece tds a forma delas do lado de la >>
       
      ai eu clico nela e ponho a opiçao de export mais quando salvo a sprite ela n abri 
       
      aparece isso quando tento vê-la 
       
      visualização não disponível ( no formatos png e bitmap)
       
      Agora no formato idc fala que o paint n pode ler 
       
      me ajudem ae...
    • Por fezeRa
      Estou com um problema serio, toda vez que acontece esse problema, quando os players morrem/relogam, eles não conseguem mais logar novamente, só conseguem dps que eu reinicio o server. E fora que eles não ficam salvados desde o ultimo save...
      Abaixo segue uma imagem do erro:
       

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo