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)
-   -   Arcade Pass Hack v2.0 (https://vborg.vbsupport.ru/showthread.php?t=43700)

Link14716 09-18-2002 09:20 PM

FAQ:

What versions of the Store hack is this compatable with?
This hack is compatible with v1.3 and v2 of the store hack.

Enjoy! :banana:

joeboo 09-18-2002 09:36 PM

looks awesome, i'll install it later today :)

Dark Jim 09-18-2002 10:45 PM

2 things I found that are somehow not correct.

1. In the install file it says you use "jackpotinc" a few times where it should be "jackpotadd" which is what you use.

2. Updating the main arcade options didn't work anymore so instead of replacing the sql queries I just put the new stuff before this stuff:
PHP Code:

.iif(($scoreicon != "") || ($deletescoreicon == 1),",scoreiconname='$scoreicon_name', scoreicondata='$scorei_d'","")."
                       "
.iif(($kingicon != "") || ($deletekingicon == 1),",kingiconname='$kingicon_name', kingicondata='$kingi_d'",", 

You should look at those parts.

Also this is not correct in the upgrade from my hack instructions:

-+-+-+
Find:
-+-+-+

PHP Code:

  $playcost $gameinfo[playcost];
  
$jackpot $gameinfo[jackpot];
  
$jackpotinc $gameinfo[jackpotinc];

  
$storepoints $DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]");
  
$points=$storepoints[storep];
  if (
$points 0)
  {
$points -= $playcost;
   
$DB_site->query("UPDATE user SET storep=$points WHERE userid=$bbuserinfo[userid]");

   
$jackpot += $playcost $jackpotinc;
   
$DB_site->query("UPDATE arcadegames SET jackpot=$jackpot WHERE name='$game'");   

   
// query string and param lists must be eval'd since it contains PHP vars
   
eval("\$vpa_qstring = \"$gameinfo[querystring]\";");
   eval(
"\$vpa_oparams = \"$oparams\";");
   eval(
"\$vpa_eparams = \"$eparams\";");
  
    
// get the code to call the game, then send the page
   
eval("\$gamecode = \"".gettemplate("vbproarcade_playgame_flashcode")."\";");
   eval(
"dooutput(\"".gettemplate('vbproarcade_playgame')."\");");
  }
  else
  {eval(
"dooutput(\"".gettemplate('vbproarcade_playgame_nopoints')."\");");} 

-+-+-+-+-+-+
REMOVE IT!
-+-+-+-+-+-+

It should be:

-+-+-+
Find:
-+-+-+

PHP Code:

  $playcost $gameinfo[playcost];
  
$jackpot $gameinfo[jackpot];
  
$jackpotinc $gameinfo[jackpotinc];

  
$storepoints $DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]");
  
$points=$storepoints[storep];
  if (
$points 0)
  {
$points -= $playcost;
   
$DB_site->query("UPDATE user SET storep=$points WHERE userid=$bbuserinfo[userid]");

   
$jackpot += $playcost $jackpotinc;
   
$DB_site->query("UPDATE arcadegames SET jackpot=$jackpot WHERE name='$game'");   

   
// query string and param lists must be eval'd since it contains PHP vars
   
eval("\$vpa_qstring = \"$gameinfo[querystring]\";");
   eval(
"\$vpa_oparams = \"$oparams\";");
   eval(
"\$vpa_eparams = \"$eparams\";");
  
    
// get the code to call the game, then send the page
   
eval("\$gamecode = \"".gettemplate("vbproarcade_playgame_flashcode")."\";");
   eval(
"dooutput(\"".gettemplate('vbproarcade_playgame')."\");");
  }
  else
  {eval(
"dooutput(\"".gettemplate('vbproarcade_playgame_nopoints')."\");");} 

-+-+-+-+-+-+
Replace with:
-+-+-+-+-+-+

PHP Code:

   // query string and param lists must be eval'd since it contains PHP vars
   
eval("\$vpa_qstring = \"$gameinfo[querystring]\";");
   eval(
"\$vpa_oparams = \"$oparams\";");
   eval(
"\$vpa_eparams = \"$eparams\";");
  
    
// get the code to call the game, then send the page
   
eval("\$gamecode = \"".gettemplate("vbproarcade_playgame_flashcode")."\";");
   eval(
"dooutput(\"".gettemplate('vbproarcade_playgame')."\");"); 


Link14716 09-18-2002 10:49 PM

Firstly, I use jackpotadd, and it says to replace the jackpotinc, which you use.

Second, whoops, got a little lazy by the time I was making the upgrade file. Hold on.....

Link14716 09-18-2002 10:57 PM

I am wondering how that happened. I took the code straight from my proarcadeadmin, and mine was right :confused:

Oh, and the part you mentioned is corrected. On a superfluos note, you forgot the } and the end. :)
ZIP Updated.

Dark Jim 09-18-2002 11:01 PM

Uhm:
-----------------------------------------------
ALTER TABLE `arcadegames` ADD `playcost` int(255) NOT NULL default '10', ADD `jackpot` int(255) NOT NULL default '0', ADD `jackpotadd` int(255) NOT NULL default '5';
-----------------------------------------------
-+-+-+-+-+-+-+-+
Replace With:
-+-+-+-+-+-+-+-+

$DB_site->query("UPDATE arcadegames
SET name='$name', title='$title', description='$desc', filename='$filename',
".iif(($thumbdata != "") || ($deletethumb == 1),"thumbnailname='$thumbnail_name', thumbnaildata='$thumbdata',","")."
active='$active', scorevar='$scorevar', width='$width', height='$height',
codebase='$codebase', querystring='$querystring', objectparam='$objectparams',
embedparam='$embedparams',championactive='$champio nactive',championtext='$championtext',championcolo r='$championcolor',playcost='$playcost',jackpot='$ jackpot',jackpotinc='$jackpotadd'
WHERE gameid='$gameid'");
--------------------------------------------------------------------
It just doesn't seem right to me.

Link14716 09-18-2002 11:05 PM

As I said above, something with the instructions screwed up (dunno what, it was right on my proarcadeadmin.php), so the zip is updated.

Dark Jim 09-18-2002 11:22 PM

I have set all options to yes so you either need a pass or pay 1 credit. I tested this on the Tetris game where 1 user already is 1st (and got the jackpot). I then just quickly lost and ended 2nd. I didn't loose a credit. I also didn't buy a pass.

Also some of the jackpots have 10 credits in them but the jackpot column on the main arcade page is empty. What gives?

Dark Jim 09-18-2002 11:24 PM

If you didn't modify the store.php, proarcade.php and proarcadeadmin.php more than with your own hack, could you upload those?

Link14716 09-18-2002 11:27 PM

ok then, I will, hold on.........


All times are GMT. The time now is 07:50 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.01453 seconds
  • Memory Usage 1,772KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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