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)
-   -   Bank Addon for Lesane store hack (https://vborg.vbsupport.ru/showthread.php?t=39625)

Blue2000 06-07-2002 10:00 PM

Bank Addon for Lesane store hack
 
This was requested on my site. and also lots of times here.

The problem was that they was a bank hack out but not one that works with the store hack.

So i have reconfiged the root, mem and jessie ( https://vborg.vbsupport.ru/showthrea...threadid=38118 ) bank hack to work with Lesane's Store hack (https://vborg.vbsupport.ru/showthrea...highlight=bank )

I hope that they dont mind but i think it will be used more now anyway due the the fact that in lesanes store they is a way to make money.

Big thanks out goes to the above people for making the 2 hacks

I cant help but keep adding things to this hack Lesane great job you did with it ;)

Another good point is becourse of the fact that once you put money in the bank it then cant be robed from other members of your board (well if you have rob addon installed)


information on how to install and DB changes r in the zip below.

BRING ON THE CASIO :P

Keyser S?ze 06-08-2002 07:06 PM

what about adding a small fee to use the bank? i mean, if everyone puts their money into the bank til neded then the rob hack is useless

would be even better if the fee was a % of how much u had in there

Blue2000 06-08-2002 07:16 PM

if you want that its do

in Bank.php find

$userbankmoney=floor($userbankmoney*(pow(1.03,$pre senttime)));

under that put

PHP Code:

$userbankmoneytaken=floor($userbankmoney-(pow(1.01,$presenttime))); 

then find

PHP Code:

        $DB_site->query("UPDATE user SET
                bank=
$userbankmoney,savemt='".time()."' WHERE userid='$bbuserinfo[userid]'");
              } 

and replace with
PHP Code:

        $DB_site->query("UPDATE user SET
                bank=
$userbankmoney,$userbankmoneytaken,savemt='".time()."' WHERE userid='$bbuserinfo[userid]'");
              } 


note that -(pow(1.01,$presenttime)) is your % if you want atm its set at 1 % per day

eg of 10%

(1.1,$presenttime

ZiRu$ 06-08-2002 07:22 PM

thanks so much man.....

Blue2000 06-08-2002 07:23 PM

Quote:

Originally posted by IceMalee
what about adding a small fee to use the bank? i mean, if everyone puts their money into the bank til neded then the rob hack is useless


would be even better if the fee was a % of how much u had in there

you know thinking about it its pointless you may aswell just set the first % - the 2nd one you want...

So i have a better idea

i will work on it now and see what happens

inetd 06-08-2002 07:33 PM

Please post description of this add-on! :D

ceo_tfw 06-08-2002 08:29 PM

how do you change the value so you can have more money in bank

it does not go any higher than 65535

Blue2000 06-08-2002 08:34 PM

ok due to how safe it is now once using it

i thought of this idea to add a cost of using the bank but not by a % per day not by a cost of using things.

Ok in the real world you have to pay to take money out of an whole in the wall

So i have made this addon take $10 off you for taking money out.

also the bank is providing a service for the members. members want to use it, then they should be a cost for it.

so the hack also makes you now pay $100 for invresting money into the bank :P

:)

Blue2000 06-08-2002 08:57 PM

Quote:

Originally posted by ceo_tfw
how do you change the value so you can have more money in bank

it does not go any higher than 65535

ill look into this

Blue2000 06-08-2002 09:05 PM

Quote:

Originally posted by Blue2000


ill look into this


run this


ALTER TABLE user CHANGE bank bank INT(234) UNSIGNED DEFAULT '0' NOT NULL


All times are GMT. The time now is 08:46 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.01137 seconds
  • Memory Usage 1,742KB
  • 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
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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