vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Pickpocket in Lesane Store (https://vborg.vbsupport.ru/showthread.php?t=38383)

Roxie 06-24-2002 01:57 AM

a user has told me that even when they have negative dollars (from trying to steal and getting caught) they can still steal. To steal they need 5 dollars

GenSec 06-25-2002 05:49 AM

Quote:

Originally posted by Roxie
a user has told me that even when they have negative dollars (from trying to steal and getting caught) they can still steal. To steal they need 5 dollars
You can change rules for robber.
Just change
PHP Code:

if ($bbuserinfo[posts]<100) {
    eval(
"standarderror(\"".gettemplate('store_steal_cannot')."\");");


To
PHP Code:

if ($bbuserinfo[posts]<100 AND $bbuserinfo[storep]>5) {
    eval(
"standarderror(\"".gettemplate('store_steal_cannot')."\");");


In this case robber need to have 100 posts and $5.

Keta 06-25-2002 06:46 AM

question whats the difference betweem god father and insurance? and how long is your money insured when u buy insurance

GenSec 06-25-2002 07:25 AM

Quote:

Originally posted by Keta
question whats the difference betweem god father and insurance? and how long is your money insured when u buy insurance
Look https://vborg.vbsupport.ru/showthrea...115#post249115. Just updated hack. Now insurance is lasting up to first robbery.

Keta 06-25-2002 08:04 AM

ok one more question how do u get covered by the +++++? u buy the godfather?

GenSec 06-25-2002 08:39 AM

You pay to godfather. It's all in the store

Keta 06-26-2002 02:10 AM

lol sorry on more question...what happens when u buy +++++ protection? because someone brought the godfather and their money was still stolen

GenSec 06-26-2002 05:18 AM

Quote:

Originally posted by Keta
lol sorry on more question...what happens when u buy mafia protection? because someone brought the godfather and their money was still stolen
In this case
PHP Code:

  if ($victim[insurance]=='mafia') {
  
$robs=intval($robber/2);
$DB_site->query("UPDATE user SET storep=storep-$robs WHERE userid=$usid");
$DB_site->query("UPDATE user SET storep=storep+$robber WHERE userid=GodFatherID");
$DB_site->query("UPDATE user SET storep=storep+$robs, karma=karma-$priz WHERE userid='$bbuserinfo[userid]'"); 

victim get a half of stolen money back, robber pay another half to mafia and godfather get that all. You can change this rule easily

Roxie 07-15-2002 05:51 AM

Quote:

Originally posted by GenSec

You can change rules for robber.
Just change
PHP Code:

if ($bbuserinfo[posts]<100) {
    eval(
"standarderror(\"".gettemplate('store_steal_cannot')."\");");


To
PHP Code:

if ($bbuserinfo[posts]<100 AND $bbuserinfo[storep]>5) {
    eval(
"standarderror(\"".gettemplate('store_steal_cannot')."\");");


In this case robber need to have 100 posts and $5.

This worked for me until I edited my database. I edited the database so that my users could have an unlimited amount of money and also could have a negative amount of money. Could this have affected how this works? My users can now steal regardless how much money they have. :confused:

GenSec 07-16-2002 07:32 AM

No means. It doesn't depend on your database structure.


All times are GMT. The time now is 12:21 PM.

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.01478 seconds
  • Memory Usage 1,754KB
  • 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
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete