geekhack

geekhack Community => Off Topic => Topic started by: swill on Thu, 17 October 2013, 18:41:22

Title: Understand Wallethack
Post by: swill on Thu, 17 October 2013, 18:41:22
[attach=1]

Edit: apparently grammar errors are not tolerated in notes to self...

Edit2: Computer-Lab in Basement inspired simplification...
[attach=2]

Edit3: metalliqaz correctly pointed out that I am missing the class reference to self in the function signature.  :)
Title: Re: Understand Wallethack
Post by: keymaster on Thu, 17 October 2013, 18:45:54
you're broke*

Make sure you spell correctly before showing off your code.
Title: Re: Understand Wallethack
Post by: demik on Thu, 17 October 2013, 18:49:13
does not understand English
Title: Re: Understand Wallethack
Post by: Computer-Lab in Basement on Thu, 17 October 2013, 18:52:15
I can simplify that:

Code: [Select]
if (gh.membershipStatus = true) {
wallet.funds == 0;
}

Just assume a boolean is used to determine membership status...
Title: Re: Understand Wallethack
Post by: Michael on Thu, 17 October 2013, 18:53:47
I can simplify that:

Code: [Select]
if (gh.membershipStatus = true) {
wallet.funds == 0;
}




this
Title: Re: Understand Wallethack
Post by: jalaj on Thu, 17 October 2013, 18:54:09
you're broke*

Make sure you spell correctly before showing off your code.

maybe he meant, "your broke @$$ pwned by wallethack"
Title: Re: Understand Wallethack
Post by: bueller on Thu, 17 October 2013, 18:55:51
Hahaha this gave me a good laugh :)
Title: Re: Understand Wallethack
Post by: JPG on Thu, 17 October 2013, 18:56:36
I can simplify that:

Code: [Select]
if (gh.membershipStatus = true) {
wallet.funds == 0;
}

Just assume a boolean is used to determine membership status...

If only it would stop at 0 lol, damn credit cards and the ability to go lower than 0!
Title: Re: Understand Wallethack
Post by: swill on Thu, 17 October 2013, 18:58:09
I can simplify that:

Code: [Select]
if (gh.membershipStatus = true) {
wallet.funds == 0;
}

Just assume a boolean is used to determine membership status...

If only it would stop at 0 lol, damn credit cards and the ability to go lower than 0!

haha, so true...
Title: Re: Understand Wallethack
Post by: hashbaz on Thu, 17 October 2013, 18:59:53
Yeah funds is signed, unfortunately.
Title: Re: Understand Wallethack
Post by: Dubsgalore on Thu, 17 October 2013, 22:34:56
I can simplify that:

Code: [Select]
if (gh.membershipStatus = true) {
wallet.funds == 0;
}

Just assume a boolean is used to determine membership status...

 :)) :)) :))
Title: Re: Understand Wallethack
Post by: swill on Thu, 17 October 2013, 23:21:35
I can simplify that:

Code: [Select]
if (gh.membershipStatus = true) {
wallet.funds == 0;
}

Just assume a boolean is used to determine membership status...

keep it to python damn it.   :))
Code: [Select]
if self.gh_member:
    self.wallet = 0
Title: Re: Understand Wallethack
Post by: iri on Fri, 18 October 2013, 01:48:39
I can simplify that:

Code: [Select]
if (gh.membershipStatus = true) {
wallet.funds == 0;
}

Just assume a boolean is used to determine membership status...
swap == and =.
Title: Re: Understand Wallethack
Post by: hashbaz on Fri, 18 October 2013, 01:52:27
And just remove the "== true" while you're at it. :P
Title: Re: Understand Wallethack
Post by: iri on Fri, 18 October 2013, 02:02:54
what are we even talking about? remove the first and the third lines.