Hi there,
i trie to make one Security System. The ideia is, when u login for the first time u have to create one PIN. Then when u login u have to put de same PIN. If u can,t do it u will be logout or u will be ban for 24Hours.
i belive i have create one big part of it, but i realy cant make it all.... cuz i realy dont know :\
If any one can Complete it, i belive we all say tks!
i trie to make one Security System. The ideia is, when u login for the first time u have to create one PIN. Then when u login u have to put de same PIN. If u can,t do it u will be logout or u will be ban for 24Hours.
i belive i have create one big part of it, but i realy cant make it all.... cuz i realy dont know :\
If any one can Complete it, i belive we all say tks!
Code:
quest security begin
state start begin
when login or levelup with pc.level >= 20 and pc.getqf("security_make") == 0 begin
timer("security_timer1", 2)
end
when security_timer1.timer begin
say("Oceanus Security System")
say("")
say("Por favor escolhe um PIN.")
say("Sempre que logares a tua conta este PIN irá ser-te")
say("pedido. Tens 5 tentativas para colocar o PIN")
say("correcto. Caso falhes as 5 tentativas, a tua conta")
say("irá ficar Bloqueada 24 horas.")
say("")
say_reward("Oceanus Security System was made by:")
say_reward("[ADM]Oceanus")
say("")
local a = select("Escolher PIN","Não escolher PIN")
if a == 2 then
say("Oceanus Security System")
say("")
say("Felizmente para ti vais ter mesmo de usar um.")
say("Caso não escolhas o PIN esta mensagem não")
say("irá desaparecer. ")
say("Teleporta-te ou reloga a conta para escolheres")
say("o PIN de segurança.")
say("")
return
end
say_reward("Máximo 9 números.")
if a == 1 then
say("Oceanus Security System")
say("")
say("")
say_reward("Máximo 9 números.")
say("um PIN maior que 9 digitos poderá não ficar")
say("registado e ao logares a tua conta esta")
say("poderá ficar Bloqueada!")
say("")
local t = input()
local securitya = mysql_query("SELECT security from player.player WHERE id='"..pc.get_player_id().."' LIMIT 1")
local lotarityb = mysql_query("UPDATE player.player SET security ='"..(t).."' WHERE id ='"..pc.get_player_id().."' LIMIT 9")
syschat("PIN escolhido: "..(t).." por favor não o esqueças.")
pc.setqf("security_make", 2)
end
end
end
state start begin
when login or levelup with pc.level >= 20 and pc.getqf("security_make") == 2 begin
timer("security_timer2", 1)
end
when security_timer2.timer begin
say("Oceanus Security System")
say("")
say("Por favor introduz o PIN.")
say("")
local p = input()
if p == securitya then
say("Oceanus Security System")
say("")
say("acho que esta certo")
say("")
end
end
end
end