Jump to content

Recommended Posts

DROP TABLE IF EXISTS `pvptest`;
CREATE TABLE `pvptest` (
  `pid` varchar(20) NOT NULL DEFAULT '',
  `name` varchar(20) NOT NULL DEFAULT '',
  `classe` varchar(20) NOT NULL DEFAULT '',
  `reino` varchar(20) NOT NULL DEFAULT '',
  `level` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`pid`)
) ENGINE=MyISAM DEFAULT CHARSET=big5;
quest salvar_base_de_dados begin
    state start begin
        when 20095.chat."Evento PVP" with pc.is_gm() begin
            say_title("Olá "..pc.name..",")
            say("")
            say("o quer quer fazer ?")
            say("")
            local s = select ("Ativar incrisção", "Desativar", "nADA")
            if s == 1 then
                game.set_event_flag("eventpvp", 1)
                notice_all("AS inscrições pro evento pvp foram ativadas!")
            elseif s == 2 then
                game.set_event_flag("eventpvp", 0)
                notice_all("AS inscrições pro evento pvp foram desativadas!")
            elseif s == 3 then return end end --if
        when 20095.chat."Olá " with game.get_event_flag("eventpvp") == 1 begin
        local name = pc.get_name()
        local pid = pc.get_player_id()
        local classe = pc.get_job()
        local reino = pc.get_empire()
        local level = pc.get_level()
        --
        if pc.get_level() < 80 then
        say("Você não tem level suficiente, desculpe... ")
        say("Volte quando alcançar level 80+ ") return end
        if pc.countitem("30183") < 50 then
        say("Você precisa ter 50 aneis de gold... ")
        say(" Volte quando consegui- los.") return end
        if game.get_event_flag("cadastroeventoproto") == 1 then
        say("Você já está cadastrado no evento pvp, não ")
        say("podes cadastrar 2x não. ") return end
        if game.get_event_flag("cadastroeventoproto") == 0 then
        say("Você ainda não cadastrou pro evento PVP quer cadastrar?")
        say("Escolha sua classe, para completar registros...")
        say("a inscrição fica por 50 aneis de gold...")
        local opcao = select("Quero Participar", "Não não quero participar")
        if opcao == 1 then
            mysql_query("INSERT INTO player.pvptest VALUES ('"..pid.."','"..name.."','"..classe.."','"..reino.."','"..level.."')")
            game.set_event_flag("cadastroeventoproto", 1)
            say("Você foi cadastrado no evento PVP!")
            pc.remove_item(30183,50)
        elseif opcao == 2 then return end
        end -- if
    end -- when
end -- state
end -- quest
        
       
Link to comment
https://metin2.dev/topic/2579-error-quest/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

local opcao = select("Quero Participar", "Não não quero participar")
        if opcao == 1 then
            mysql_query("INSERT INTO player.pvptest VALUES ('"..pid.."','"..name.."','"..classe.."','"..reino.."','"..level.."')")
            game.set_event_flag("cadastroeventoproto", 1)
            say("Você foi cadastrado no evento PVP!")
            pc.remove_item(30183,50)

when you click on the option to sign up closes and gives nothing more.

Link to comment
https://metin2.dev/topic/2579-error-quest/#findComment-17411
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.