Dragonbyte Shop Steal Function Bug (Edited for context)

Pr0fesseur

Moderator
Staff member
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
Joined
Nov 20, 2019
Messages
361
Points
103

Reputation:

Ok let me explain the bug.
if you use the steal function with just one credit even though you set the penalty to anything under 100% you can steal indefinitely without penalty.
so you can just spam the steal function and steal every scrip thats not banked.

i want to set the minimum credits in hand to something that would make it dangerous to steal or create a disincentive to steal.

Any suggestions??

I got this code from a post here but dont know how to implement it any ideas?

https://www.dragonbyte-tech.com/threads/make-steal-penalty-also-withdraw-from-bank.23753/

Code:
return ($this->can_steal && ( \XF::eek:ptions()->dbtech_shop_steal_lose == 0 || $this->getValueFromUser(null, false) > 200.00 ) );
 
Last edited:

Pr0fesseur

Moderator
Staff member
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
Joined
Nov 20, 2019
Messages
361
Points
103

Reputation:

Bump anyone???
 

Pr0fesseur

Moderator
Staff member
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
Joined
Nov 20, 2019
Messages
361
Points
103

Reputation:

every time i try it breaks :(
im doing it wrong maybe LOL
feel free to come say hi in my forum!

I would still love for you to help out with the postscrip ;)
 
Top