vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   futureal vBProArcade and Lesane Store hack addon (updated) (https://vborg.vbsupport.ru/showthread.php?t=43309)

Dark Jim 09-07-2002 09:00 PM

futureal vBProArcade and Lesane Store hack addon (updated)
 
Small update on 09-15-02
You can now set an amount that will be put extra in the jackpot each time a user pays to play a game.

Updated (now beta 2)
I added configurable cost for each game in the admin cp. Also when you pay for a game that money goes into that game's jackpot. I have yet to make the jackpot give money to the winners automatically (read the To do list in the updated text attachment) but for the time being an admin can manually emtpy the jackpot and give certain percentages to the 1st, 2nd and 3th placed members of each game.

Pics (not really much to see though)
Viewing the main arcade menu
Editting a game in the admin cp

Old post
-----------------------------------------------------------------------------------
Not sure where to put this so I made a new topic. What this does is take 1 point every time you play a game. If you don't have enough points (0) then you will get a message that you don't have enough points to play the game. Obviously you need both the vBProArcade and Store hack for this. I may add more stuff such as admin cp controlable cost and whatmore but for now enjoy this simpe but nice addon. :)

Edit: As long as the vBProArcade is in beta I will keep this addon in the beta forum too.
-----------------------------------------------------------------------------------

Dark Jim 09-08-2002 12:51 PM

Outdated. Added attachment instead.

Link14716 09-08-2002 06:48 PM

Damn, I was hoping it'd give you money by playing the games (i.e. when you hit first place, x amount of points, 2nd, y amount of points, etc.)

Dark Jim 09-08-2002 07:12 PM

That would require me to edit the game files I think and I dunno how. But I use the thing posted in my 2nd post to donate my credits to the 1st placed members each week and then resetting the scores. What you suggested would be even better. Is there a free editor for the game files?

NTLDR 09-08-2002 07:33 PM

You can get all the variables score etc from the proarcade.php you don't actually need to edit the flash files.

Dark Jim 09-08-2002 07:34 PM

Hmm ok, I will look into it. :) No promises though.

NTLDR 09-08-2002 07:44 PM

I don't have the store hack installed or know exactly how it operates, but the score from the game is given to the variable $thescore and the section you will want to look at starts:

PHP Code:

// register a new score  
if ($action == "gameover") {

  if (
$thescore != 0) { 

ie, the screen when the game has finished. Hope that helps a bit ;)

Dark Jim 09-08-2002 09:33 PM

Argh, it's good it's still in this forum as 1 of my users already found away to play free games. Will fix this tomorrow.

mewgood 09-09-2002 04:35 AM

hm..
how do you set that how much you need to play each game?
like 300points or gold to play snake etc..

Dark Jim 09-09-2002 07:30 AM

I have to go to work soon, after that I will look into it adding different costs for each games and making the costs changable in the admin cp.

wolfe 09-09-2002 12:18 PM

cool d00d you da man also @ NTLDR if i add another flash game how do i add the score system to it i added Snipers

Dark Jim 09-09-2002 07:58 PM

Ok I added a var playcost and jackpot. Now everytime someone enters a game it takes away the playcost of their points and puts it in the game's jackpot. Still need to find out how to prevent people playing games without having to pay (they need to pay at least the first time though). Then I will see if I can make the jackpot donate it's entire amount each week, hmm no I will make that a var too so you can choose the amount of time, anyway it needs to donate it's amount automatically to the current 1st placed in that game. Also the high scores need to be reset automatically (but not the Top High Scores!).

Any ideas? I'm really a newb with php and mysql.

wolfe 09-10-2002 08:03 PM

cool great work d00d :D

ZiRu$ 09-13-2002 01:02 AM

this sounds dope.....i shall install it now

wish me luck :)

ZiRu$ 09-13-2002 08:18 PM

Damn.....I made it 1 point to play with a 5 starting jackpot

everything went smooth but i get this message

"You do not have enough points to play this game!"

when i actually have 103 points and 17000 in the bank :( any help or should i un-install?

ZiRu$ 09-14-2002 04:38 PM

are you gonna give support for this hack?

Dark Jim 09-14-2002 07:05 PM

Oh yeah sorry I was busy today. I will look into it.

Dark Jim 09-14-2002 07:33 PM

Can you attach your proarcade.php file? I looked again at the code and really don't see how that could happen. Did you edit the file correctly?

Edit: I attached mine. You can upload that one although it's exactly as in the instructions.

ZiRu$ 09-14-2002 08:09 PM

thanks i'll try it very soon man.....and holla back with the update

Dark Jim 09-14-2002 08:36 PM

I just made a small update to the instructions. Not the automatic jackpot donate thing cuz I have troubles with that (I'm a php newbie like I said) but an extra field called jackpotinc. You can set an amount it will extra add to the jackpot everytime a user pays for a game. Say you set the cost to play to 1 and the extra amount to 1 it will take 1 point from the user and add 2 to the jackpot. :) I updated the instructions with this.

ZiRu$ 09-15-2002 02:13 AM

Thanks man its workin good now....I cant wait on an update for the AUTO jackpot donate...ask for some help

ZiRu$ 09-15-2002 02:56 AM

aLSO WHERE It says the persons name who has the HIGH SCORE...can you make it LINKED to their profile

mewgood 09-15-2002 07:31 AM

hm..
how do you get the jackpot?
is it when you beat the first person on the top score board?

Dark Jim 09-15-2002 08:05 AM

Good to hear it's working now. :)
Quote:

aLSO WHERE It says the persons name who has the HIGH SCORE...can you make it LINKED to their profile
Shouldn't be too hard. Will do that.
Quote:

hm..
how do you get the jackpot?
is it when you beat the first person on the top score board?
You can't get the jackpot yet, an admin has to manually emtpy it from the admin cp and give it to the winners at the moment. I will work on that.

Link14716 09-15-2002 04:00 PM

THis hack insn't half bad, but it would be better if you used a standarderror function for the nopoints error you put in there :)

Dark Jim 09-15-2002 04:58 PM

Hmm what's the difference?

Link14716 09-15-2002 05:03 PM

standard error takes the normal error temlate and your is added, and exits, thus, you could make that temlate like:

"You Do Not Have Enough Money To Play This Game"

instead of all that HTML :)

Dark Jim 09-15-2002 07:11 PM

I C, will do that. :)

mewgood 09-17-2002 03:38 AM

when there will be a new update?

Dark Jim 09-17-2002 07:32 AM

https://vborg.vbsupport.ru/showthrea...threadid=43535 ;)

Seeing that his version is better and adds a whole lot more there is no point in making the same twice.

- Topic closed -


All times are GMT. The time now is 04:32 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.01843 seconds
  • Memory Usage 1,769KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete