Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Pickpocket in Lesane Store Details »»
Pickpocket in Lesane Store
Version: 1.00, by GenSec GenSec is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-06-2002 Last Update: Never Installs: 32
 
No support by the author.

As promised It's new version of steal addon to the Lesane Store.
At last the crime on my board is under control.
I translated all templates, but It's not the best english version.
Hope the instruction is full and understandable.
Have a fun.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 07-23-2002, 06:15 AM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'
Reply With Quote
  #103  
Old 07-23-2002, 06:18 AM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #104  
Old 07-23-2002, 06:21 AM
Tara Tara is offline
 
Join Date: Feb 2002
Location: Houston
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it! Thanks a million!
Reply With Quote
  #105  
Old 07-23-2002, 06:22 AM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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')."\");");
  } 
Reply With Quote
  #106  
Old 07-23-2002, 06:30 AM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #107  
Old 07-24-2002, 02:15 AM
Stealthy Stealthy is offline
 
Join Date: May 2002
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #108  
Old 07-24-2002, 06:21 AM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #109  
Old 07-24-2002, 05:08 PM
DestyNova DestyNova is offline
 
Join Date: Jun 2002
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 :-)
Reply With Quote
  #110  
Old 07-24-2002, 05:27 PM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To increase chance
PHP Code:
if ($action=="stealchanged") {
$fatum=time()%3
$priz=intval($stealm/5); // it' s karma penalty
$robber=$stealm;
if (!
$fatum) { 
Reply With Quote
  #111  
Old 07-24-2002, 05:47 PM
DestyNova DestyNova is offline
 
Join Date: Jun 2002
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05956 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete