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.

Atian 07-17-2002 09:05 PM

i get this error


Database error in vBulletin 2.2.6:

Invalid SQL: INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid,receipt) VALUES (NULL,17,17,DMINID,'Attempt of a robbery','Buddy! They try to steal your $1
Quote:

You are lucky. They are not. You still keep your money.
',1026943290,'Final Fantasy Underground','',0,0,0)
mysql error: Unknown column 'DMINID' in 'field list'

mysql error number: 1054


when i try to steal from someone

Atian 07-17-2002 09:11 PM

and i cant run the last 2 queries i get these

SQL-query :

INSERT INTO store VALUES (NULL, '+++++', 'Safeguard', '100', '0', 'godfather.gif', 'We protect your money', 'Y')

MySQL said:

Column count doesn't match value count at row 1

GenSec 07-18-2002 05:19 AM

Absolutly.

DMINID is your admin userid.

For some (first) version of Lesane store
Quote:

INSERT INTO store VALUES (NULL, 'mafia', 'Safeguard', '100', '0', 'godfather.gif', 'We protect your money', 'Y')
is right.

For the last should be
Quote:

INSERT INTO store VALUES (NULL, 'mafia', 'Safeguard', '100', '0', 'godfather.gif', 'We protect your money', 'Y','0')
is right.

Atian 07-18-2002 06:25 AM

ah thanks,now it worked

Night Owl 07-19-2002 07:33 AM

What percentage of the time are robberies successful with this hack? And can I change that? If so, how?

Night Owl 07-20-2002 02:04 AM

I would also like for people to be able to steal from the admins. How do I do that?

Thanks!

Stealthy 07-20-2002 04:55 PM

Quote:

Originally posted by Night Owl
What percentage of the time are robberies successful with this hack? And can I change that? If so, how?
GenSec, I would like to know that as well.

Also, I would like to make it so that a member has a greater chance of failure if trying to steal from a Moderator.

What would I need to do to add this?

Night Owl 07-21-2002 01:23 PM

Two of my members are getting this error when trying to steal. No one else is getting it. What does this mean?

Quote:

Database error in vBulletin 2.2.6:

Invalid SQL: UPDATE user SET storep=storep-80 points+78 WHERE userid=60
mysql error: You have an error in your SQL syntax near 'points+78 WHERE userid=60' at line 1

mysql error number: 1064

Tara 07-22-2002 07:25 AM

Attempting to modify the database and I receive this error:

SQL-query :

Quote:

INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y')

MySQL said:


Column count doesn't match value count at row 1

Back
Help! :cry:

Kasper_H 07-22-2002 03:47 PM

Ha, sounds interesting! I think i'll try it out :D Good job!

GenSec 07-23-2002 06:15 AM

Quote:

Originally posted by Tara
Attempting to modify the database and I receive this error:


Look above post#93 and change to
PHP Code:

INSERT INTO store VALUES (NULL'steal''Crime and punishment''0''0''thief.gif''It is not caught - not the thief''Y','0'


GenSec 07-23-2002 06:18 AM

Quote:

Originally posted by Night Owl
Two of my members are getting this error when trying to steal. No one else is getting it. What does this mean?

I don't know where your take from points.
Just delete from sql any points

Tara 07-23-2002 06:21 AM

Got it! Thanks a million! ;)

GenSec 07-23-2002 06:22 AM

Quote:

Originally posted by Night Owl
I would also like for people to be able to steal from the admins. How do I do that?

Thanks!

Remove from script all
PHP Code:

  if ($getduser[usergroupid]=="6") { // don't steal from admin
    
eval("standarderror(\"".gettemplate('store_givetitle_noadmin')."\");");
  } 


GenSec 07-23-2002 06:30 AM

Quote:

Originally posted by Night Owl
What percentage of the time are robberies successful with this hack? And can I change that? If so, how?
It' very simple and depends on fatum number
PHP Code:

$fatum=time()%2

. Robbery is successful when $fatum<>0.
Change it to your choice.

Stealthy 07-24-2002 02:15 AM

GenSec, What does the value "$fatum=time()%2" mean?

If I change it to "$fatum=time()%3", would that increase or decrease the chance of success? And what is the percentage of success with the new value?

And do you have a way for robberies to be less successfull against Moderators?

GenSec 07-24-2002 06:21 AM

It determs if current time is odd or even.
If you change to $fatum=time()%3 you decrease the chance of success. But if you also change if ($fatum) to oppose if (!$fatum) you increase your chances. :)

DestyNova 07-24-2002 05:08 PM

before I install this hack.. I m curious about this

Quote:

Originally posted by GenSec
It determs if current time is odd or even.
If you change to $fatum=time()%3 you decrease the chance of success. But if you also change if ($fatum) to oppose if (!$fatum) you increase your chances. :)

In other word, to increase chance by replace

PHP Code:

$fatum=time()%

to:

PHP Code:

if ($fatum)=time()%

or:

PHP Code:

if (!$fatum)=time()%

which one? or different? I m newbie with PHP stuff :-) and also your hack are awesome and fun thing to do :-)

GenSec 07-24-2002 05:27 PM

To increase chance
PHP Code:

if ($action=="stealchanged") {
$fatum=time()%3
$priz=intval($stealm/5); // it' s karma penalty
$robber=$stealm;
if (!
$fatum) { 


DestyNova 07-24-2002 05:47 PM

Cool, thanks

Last one thing, I gonna hit a nail thur my head on this one, if I change %3 to say.. %9, it will increase of chance to steal right?

GenSec 07-24-2002 06:03 PM

Yes, but it has no sence. It's just like every attempt is successful

DestyNova 07-24-2002 06:08 PM

ah, ok cool

I m going to install right away to see how it is. Many thanks

Stealthy 07-25-2002 05:54 AM

Thanks GenSec, that clears it up for me. :D

dgessler 07-25-2002 07:15 PM

Hi,

Can GenSec or someone else help me. I am editing the templates, and don't understand some of the wording.

In the template store_steal_limit with the code:

Buddy!
<BR>
Have conscience! Don't take the last
<BR>

What does that mean? Don't take the last? Can someone please clear this up for me so I can re word this? Thanks!

Dan

Christy 07-25-2002 11:47 PM

Pretty much means Dont take the last of there money, be nice :)

dgessler 07-26-2002 12:53 PM

I see, thanks christy

Night Owl 07-29-2002 02:31 AM

I keep getting this error:

Quote:

Database error in vBulletin 2.2.6:

Invalid SQL: UPDATE user SET storep=storep+the mofia WHERE userid=731
mysql error: You have an error in your SQL syntax near 'mofia WHERE userid=731' at line 1

mysql error number: 1064
I checked my store.php file and see no instance of the word "mofia." What could this be?

GenSec 07-29-2002 05:32 AM

I guess user=731 noted "the mofia" in the form instead of money

Night Owl 07-29-2002 05:38 AM

That user is the GODFATHER on my board. No one ever logs in as that. Also, I don't understand what you said. Could you rephrase that please?

Thanks! :)

GenSec 07-29-2002 06:05 AM

It looks like someone try to rob but instead of the amount of the robbery wrote "the mofia"


All times are GMT. The time now is 12:13 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.01620 seconds
  • Memory Usage 1,844KB
  • 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
  • (12)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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