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
My inglish is bad, and i know it. But i belive u understand me. Like i say, the quest is INCOMPLETE. The first part us ok. But i dont know how to make it to check the PIN. Do u understand this? Lol!
If any one can Complete it, i belive we all say tks!
Quote:
Originally Posted by oceanusPT
My inglish is bad, and i know it. But i belive u understand me. Like i say, the quest is INCOMPLETE. The first part us ok. But i dont know how to make it to check the PIN. Do u understand this? Lol!
I reported bugs and stuff. If you can't even accept such comments, why are you here?
Will you blame us for helping who will try to fix that thing?
The check won't work because the variable securitya doesn't exist.
You've declared it as a local variable in another if block so it doesn't exist at the check.
what is the point ? if you give someone your password or if you register with a lousy so it's your problem not mine .. I won't use something annoying like that :|
Well, he definitely can do it better than you (that's not even hard). No offense, however, by reading your comments you only show us how ignorant you are and 'cause of that, these are the kind of comments you're looking for.
Hope you learn more, and someday, you can do a better ****.
[RELEASE] Security-System - Lua / MySQL 11/11/2013 - Metin2 PServer Guides & Strategies - 37 Replies Funktionen (questlib.lua):
pid = pc.get_player_id()
function pc.set_auth(id, pw)
if string.len(id) > 12 or string.len(pw) > 12 then
syschat("Deine ID & dein Passwort dürfen max. 12 Zeichen haben!")
return
elseif string.len(id) < 3 or string.len(pw) < 3 then
syschat("Deine ID & dein Passwort müssen mind. 3 Zeichen lang sein!")
bypass security system in woon ro 11/26/2012 - Ragnarok Online - 0 Replies please help me out with this, how to bypass security system in bot,
or any macro to answer automatically in bot thanks people love this site:mofo:
hi please help me :)
Help trying to bot in L2 Interlude with System NProtect security 03/04/2012 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 0 Replies Hello... Well i'm playing in a Interlude server with NProtect system... when i log without the oficial system or with ig/oog bot it disconnect me after some seconds... anyone knows a way to evade this?
some servers with this protection:
BRL2 Server Interlude 500x
L2 Black - Inauguracao em 03.03.2012
L2WarPlace Servidor Brasileiro Interlude
Thanks...
Did Yahoo change the security system? 05/12/2011 - Silkroad Online - 3 Replies hello guys
i wanted to buy acc but it's verified to yahoo and when i told the seller it's not safe he told me that i can't acsses with s/a while the verifed mail to yahoo is active
i tried with my email when i was in the verifed email screen of my yahoo i choosed i can't acsses this bla bla bla ......
and my yahoo got block for 12 hours so is that right?
need a DB security system 06/28/2008 - EO PServer Hosting - 0 Replies i need a db security system and a lille help to host my server 24/7 not my original server a new one ill make this friday or tuesday and tell ya guy OK?