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
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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.