PDA

View Full Version : 100% Thief success


carolmyt
05-20-2005, 06:37 PM
Is there a way to ensure a user has 100% thief success every time?

ThePimp
05-22-2005, 08:34 AM
1. Copy your current Thief Action.
2. Change the short name to superthief
3. Change the title to Super Thief!
4. Change the file location to action.superthief.php & if you have an image for it.
5. Open action.thief.php and save it as action.superthief.php
6. Locate:
// Process their chance of failure.
$failure = 50;
Change to:
// Process their chance of failure.
$failure = 0;

Locate: $random = rand(0, 100);
Change to: $random = rand(1, 100);

Save and upload.

carolmyt
05-23-2005, 01:51 PM
Thanks. I did all that, and the first time I tried it, I got the following error:

Warning: Division by zero in /uttstore/action.superthief.php on line 108



There seems to have been a slight problem with the Mythical Boards database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Line 108 is:
$addfailure = (($thefted['reputation'] / $action['maxrep']) * 50);