|
You last visited: Today at 21:45
Advertisement
Security System (Imcomplete)
Discussion on Security System (Imcomplete) within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
08/17/2014, 12:52
|
#1
|
elite*gold: 0
Join Date: Mar 2013
Posts: 54
Received Thanks: 6
|
Security System (Imcomplete)
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!
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
|
|
|
08/17/2014, 13:47
|
#2
|
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
|
If it's working it's really useful. Thanks
|
|
|
08/17/2014, 13:53
|
#3
|
elite*gold: 0
Join Date: Mar 2013
Posts: 2,449
Received Thanks: 6,446
|
Quote:
Originally Posted by DasSchwarzeT
If it's working it's really useful. Thanks
|
That won't secure the accounts.
If you have to input the pin you just can press ESC and you don't need to input it anymore.
|
|
|
08/17/2014, 13:55
|
#4
|
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
|
Quote:
Originally Posted by oceanusPT
Code:
local t = input()
local lotarityb = mysql_query("UPDATE player.player SET security ='"..(t).."' WHERE id ='"..pc.get_player_id().."' LIMIT 9")
|
>dat sql injection
That "limit 9" has no sense. (at the very least, "limit 4" should be appropriate)
|
|
|
08/17/2014, 14:23
|
#5
|
elite*gold: 0
Join Date: Mar 2013
Posts: 54
Received Thanks: 6
|
Like i say, the quest is incomplete. I'm a noob in quest making. But i trie!
the first part, ask one pin and save it in msql player is 100% complete.
but then we need to check PIN, and i dont know how to make it.
the first part may have one or two errors, but im no perfect xD
lets do it work.
Quote:
Originally Posted by [iRemix]
That won't secure the accounts.
If you have to input the pin you just can press ESC and you don't need to input it anymore.
|
when u login, it will ask one pin again. If u press ESQ, it will return.
this will loop until u put some pin.
|
|
|
08/17/2014, 14:33
|
#6
|
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
|
Quote:
Originally Posted by [iRemix]
That won't secure the accounts.
If you have to input the pin you just can press ESC and you don't need to input it anymore.
|
I think a fitting GUI in e.g. charselect might be useful
|
|
|
08/17/2014, 14:40
|
#7
|
elite*gold: 0
Join Date: Mar 2013
Posts: 54
Received Thanks: 6
|
Quote:
Originally Posted by DasSchwarzeT
I think a fitting GUI in e.g. charselect might be useful
|
yes, it will! But .... How to make it xD
All this kind of system i have found it's pay. So i trie to make one for free xD
|
|
|
08/17/2014, 14:46
|
#8
|
elite*gold: 0
Join Date: Mar 2013
Posts: 2,449
Received Thanks: 6,446
|
Quote:
Originally Posted by oceanusPT
when u login, it will ask one pin again. If u press ESQ, it will return.
this will loop until u put some pin.
|
No.
The check is called once.
But even if the typed pin is wrong nothing will happen.
|
|
|
08/17/2014, 15:00
|
#9
|
elite*gold: 0
Join Date: Mar 2013
Posts: 54
Received Thanks: 6
|
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!
|
|
|
08/17/2014, 15:18
|
#10
|
elite*gold: 0
Join Date: Nov 2010
Posts: 43
Received Thanks: 10
|
Then i think there is no point to post it, when it will be full completed post it.
|
|
|
08/17/2014, 15:22
|
#11
|
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
|
Quote:
Originally Posted by oceanusPT
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?
|
|
|
08/17/2014, 15:47
|
#12
|
elite*gold: 0
Join Date: Mar 2013
Posts: 54
Received Thanks: 6
|
Quote:
Originally Posted by lollo_9_1
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?
|
i can't acept comments? wtf! lol. He only say "dont work".... dam, i have told that -.-
lols. Nevermind... and btw i made it working.
#Closerequest.
Quote:
Originally Posted by lollo_9_1
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?
|
i can't acept comments? wtf! lol. He only say "dont work".... dam, i have told that -.-
lols. Nevermind... and btw i made it working.
Quote:
Originally Posted by lollo_9_1
who will try to fix that thing?
|
do u have better made by u?
#Closerequest.
|
|
|
08/17/2014, 15:56
|
#13
|
elite*gold: 0
Join Date: Mar 2013
Posts: 2,449
Received Thanks: 6,446
|
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.
|
|
|
08/17/2014, 16:33
|
#14
|
elite*gold: 260
Join Date: Jan 2013
Posts: 178
Received Thanks: 104
|
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 :|
|
|
|
08/17/2014, 16:37
|
#15
|
elite*gold: 0
Join Date: Oct 2012
Posts: 114
Received Thanks: 72
|
Quote:
Originally Posted by oceanusPT
do u have better made by u?
|
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 ****.
|
|
|
 |
|
Similar Threads
|
[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?
|
All times are GMT +1. The time now is 21:46.
|
|