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)

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?


All times are GMT. The time now is 04:37 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.01391 seconds
  • Memory Usage 1,751KB
  • 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
  • (7)bbcode_php_printable
  • (5)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