vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   Thief failure (https://vborg.vbsupport.ru/showthread.php?t=91016)

Lionel 06-24-2005 08:34 PM

Thief failure
 
I have it set at 50

// Process their chance of failure.
$failure = 50;

I'd like to be able to grab the list of known thieves and do

if ($knownthieves)
{
$failure = 0;
}

else
{
$failure = 50;
}

What could the
$knownthieves = query be?

akanevsky 06-24-2005 08:45 PM

As far as I know, there is no such thing as known thieves in this hack.

Lionel 06-24-2005 08:57 PM

sure, in history

Link14716 06-24-2005 11:32 PM

So you want to make known theives have a 0% chance of failing? Huh? ;)

Lionel 06-25-2005 12:04 AM

If you are a known thief, anyone can steal you and chance of failure to be 0%

and the one who steals them become thieves themselves too. Forcing them to be a slave and constantly put their money in the bank.

Link14716 06-25-2005 12:27 AM

Quote:

Originally Posted by Lionel
If you are a known thief, anyone can steal you and chance of failure to be 0%

and the one who steals them become thieves themselves too. Forcing them to be a slave and constantly put their money in the bank.

Or they could get a lot of rep if rep is enabled. ;)

I'll see about giving you a query in a minute.

Lionel 06-25-2005 12:31 AM

Thanks for the query. A historical theft occured by me 55 millions points! And people are getting nervous :-)

Link14716 06-25-2005 12:32 AM

Try this:

Find:
PHP Code:

$failure 50

Replace with:
PHP Code:

    if ($DB_site->query_first("SELECT userid FROM ".TABLE_PREFIX."utt_store_history WHERE actionid={$action['actionid']} AND userid={$_REQUEST['userid']}")) {
        
$failure 0;
    } else {
        
$failure 50;
    } 


Lionel 06-25-2005 12:52 AM

thanks a lot! ;-)

I've got this posted on my main page :o:


Quote:

Protect yourself from the thieves. Place your points in the bank. Remove when you need.
Known Thieves
Thieves have no protection and can be robbed anytime.
Thieves are nobody and have no rights. They are protected only by the bank.
It's also harder to steal from honest members.



All times are GMT. The time now is 10:48 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01104 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete