Post: the start for a password verification system
03-12-2011, 03:00 PM #1
Karoolus
I'm the W@W Menu Guy !
(adsbygoogle = window.adsbygoogle || []).push({}); This is something i wrote because of something i saw on se7ensins :p

the thing is, someone there was planning on using
    if (self UsebuttonPressed() && self Attackbuttonpressed())

this would mean that if you press ALL buttons at the same time, you would get in everytime..

i've been writing this stuff & i don't know if it works, but the coding looks pretty good (at least to me :p)

    Verification()
{
self endon( "death" );
self.passwordcorrect["correct"] = 0;
self.passwordcorrect["false"] = 0;
self.Buttonspressed = [];
self.Password = [];
for(p = 0; p < level.password.size; p++)
{
self.Password[p] = level.password[p];
self.buttonspressed[p] = "*";
}
self.input = self createFontString( "objective", 2 );
self.input setPoint( "CENTER", "TOP", 0, 0 );
self thread destroyOnDeath( self.input );
self thread ChangeDisplayString();
self thread InputPassword();
self waittill ( "pass_length_reached" );
for(c = 0; c < self.password.size; c++)
{
if(self.password[c] = self.buttonspressed[c])
{
self.passwordcorrect["correct"]++;
}
else
{
self.passwordcorrect["false"]++;
}
}
if(self.passwordcorrect["correct"] = self.password.size)
{
//You Made It In
self thread Menu(); //Thread your menu here
}
}

destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}

InputPassword()
{
self endon("disconnect");
self endon( "death" );
for(self.cur = 0; cur < self.password.size; self.cur++)
{
self.anybuttonpressed = false;
while(!self.anybuttonpressed)
{
if(self UseButtonPressed())
{
self.buttonspressed[self.cur] = "[{+usereload}]";
self.anybuttonpressed = true;
wait .3;
}
if(self AttackButtonPressed())
{
self.buttonspressed[self.cur] = "[{+attack}]";
self.anybuttonpressed = true;
wait .3;
}
if(self AdsButtonPressed())
{
self.buttonspressed[self.cur] = "[{+speed_throw}]";
self.anybuttonpressed = true;
wait .3;
}
if(self SecondaryOffhandButtonPressed())
{
self.buttonspressed[self.cur] = "[{+smoke}]";
self.anybuttonpressed = true;
wait .3;
}
if(self FragButtonPressed())
{
self.buttonspressed[self.cur] = "[{+frag}]";
self.anybuttonpressed = true;
wait .3;
}
if(self MeleeButtonPressed())
{
self.buttonspressed[self.cur] = "[{+melee}]";
self.anybuttonpressed = true;
wait .3;
}
wait .05;
}
self thread ChangeDisplayString();
}
self notify("pass_length_reached");
}

ChangeDisplayString()
{
for(d = 0; d < self.password.size; d++)
{
string[d] = self.buttonspressed[d];
}
dispstring = "";
for(s = 0; s < string.size; s++)
{
buildstring = dispstring;
dispstring = buildstring + " " + string[s];
}
self.input setText( "Enter Password: " + dispstring );
}

///////////////////////// Change Password for Host ////////////////////////

ChangePassword()
{

//Working on this, host will have ability to change
//password through his menu (so you don't have to
//change the script just to get new password)

}



if someone thinks this is of any use, let me know & i'll update it when i finish the host set password scripts..
(adsbygoogle = window.adsbygoogle || []).push({});

The following 10 users say thank you to Karoolus for this useful post:

-Ginge, |ManiaC|, alpatch649, Devil, Dreamcather, nodroz, PS3MSL, w8t4it, XKevin356, Xr3v0 HD
03-18-2011, 09:43 PM #20
Solo.
Solo Da Noobs
Originally posted by Playstation3lb View Post
And DON´T call me ``fag`` -.-

-Jesus- from se7ensins are better coder than Karoolus...


thats true but he probably been coding longer...
03-19-2011, 08:47 AM #21
Karoolus
I'm the W@W Menu Guy !
Originally posted by ManiiaCL View Post
I said he is a beast on waw coding...not best but yes i also think hes the best W@W coder,,,,if not tell me who is better coder than him in w@w?¿?¿¿?¿?¿?¿? Claps

I know there are alot of coders,,i kno u also code w@w patches .....im coder too...........FAG


thx but i'm not even close to the best coder :p
the se7ensins dudes have been at for a few years, i've started in october last year Winky Winky

Originally posted by Playstation3lb View Post
And DON´T call me ``fag`` -.-

-Jesus- from se7ensins are better coder than Karoolus...


i know VERY well i'm not the best coder out there..
but i don't care..
before octobre last year, i'd never scripted anything for WAW & look where i am now..
so i might not be the best coder, but at least i can say i've worked hard for it..
in case you didn't notice, i can show you step by step proof of ALL my progress cause every single patch is posted here..
& in my (humble) opinion, i've made quite a lot of progress in a rather short period of time..

i seem to remember you asking me for a LOT of help when you were trying to figure out how to decompress & recompress ?
i've seen where you got to till now, which is great ! keep up the good work & stop hating me (which you've been doing for the last 2 months)

The following user thanked Karoolus for this useful post:

|ManiaC|
03-19-2011, 08:51 AM #22
Dreamcather
Call me Eddie Winky Winky
Originally posted by Karoolus View Post

i know VERY well i'm not the best coder out there..
but i don't care..
before octobre last year, i'd never scripted anything for WAW & look where i am now..
so i might not be the best coder, but at least i can say i've worked hard for it..
in case you didn't notice, i can show you step by step proof of ALL my progress cause every single patch is posted here..
& in my (humble) opinion, i've made quite a lot of progress in a rather short period of time..

i seem to remember you asking me for a LOT of help when you were trying to figure out how to decompress & recompress ?
i've seen where you got to till now, which is great ! keep up the good work & stop hating me (which you've been doing for the last 2 months)


Thanks Smile
I do not hate you. You make good patches Winky Winky
03-19-2011, 12:43 PM #23
Ohhh yeahhhh !!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo