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)
-   -   Store/Arcade Addon: Arcade Pass (BETA) (https://vborg.vbsupport.ru/showthread.php?t=43535)

Link14716 09-13-2002 10:00 PM

Store/Arcade Addon: Arcade Pass (BETA)
 
Lesane's Store Hack /// INTEGRATION /// futureal's Arcade Hack


To use this, you must have the following two hacks installed:

futureal's Arcade Hacck: https://vborg.vbsupport.ru/showthrea...threadid=42880
Lesane's Store Hack: https://vborg.vbsupport.ru/showthrea...threadid=36991

Now, what does this hack do, you ask? It requires your users to pay x amount of money through the store to obtain an "Arcade Pass". This arcade pass permits users to play an unlimited amount of games in the arcade for an unlimited amount of time. Yes, there is alreay an arcade/store integration, but this isn't on a per-game basis. Have fun!

UPDATE
The Admin CP addon of setting the timeout time is complete. By setting 0 in the timeout box, you get it to be a lifetime pass, any other numeral, and the pass timesout after that many seconds (so expect HUGE numbers to be imputed :)) Upgrade from the 1 Month BETA is included, so UPGRADE! :)

Attachment Edited Out. v2.0 is released in full releases.
https://vborg.vbsupport.ru/showthrea...threadid=43700

Link14716 09-14-2002 08:08 PM

Screen 1.

This screen is the no permission screen when someone tries to play a game without an arcade pass.

Link14716 09-14-2002 08:09 PM

Screen 2.

This is the verify screen for the arcadepass action in the store.

Link14716 09-14-2002 08:09 PM

Screen 3.

This is the screen it takes you to right after you gain your arcade pass.

Link14716 09-14-2002 08:10 PM

Screen 4.

This is the error screen you get when you try to buy an arcade pass, but already have one.

Link14716 09-14-2002 08:10 PM

Screen 5.

This shows the Arcade Pass action in the store.

Link14716 09-14-2002 08:11 PM

Please post any bugs, addons, corrections, or suggestions here.

Planned Features:
  • Admin CP Integration.
  • Whether a user has an arcade pass or not shown up in postbit/getinfo.

COMPLETED FEATURES:
  • Lifetime Arcade Pass or......
  • Arcade Pass timeout after x number of days. or...
  • (not wanted, post that you want it if you do)Arcade Pass timeout after x number of games played.

ZiRu$ 09-14-2002 09:06 PM

that sounds dope.....but i aint gonna install it until you got the TEMPORARY arcade pass...like for so many DAYS....

i wanna sell 1 month passes

Cant wait on the updates

Link14716 09-14-2002 09:09 PM

Ok, 1 Month passes? I will look to see what I can do, but it might take a while to do it ;)I would have it insert a dateline into a field I guess and after x amount of time, it disables. The not being able to re-buy the pass will be dropped, so when they get a new one they will have 1 more month.

Sound good? ;)

Goldknight 09-14-2002 09:11 PM

Quote:

Originally posted by ZiRu$
that sounds dope.....but i aint gonna install it until you got the TEMPORARY arcade pass...like for so many DAYS....

i wanna sell 1 month passes

Cant wait on the updates

Ditto, I d like to have temporary pass. I ll keep eyes on this one.

Link, Good job :)

Link14716 09-14-2002 09:14 PM

I hope to have a rough temperary passes addition out by tommorow, then later a CP integrated one :)

mewgood 09-14-2002 09:26 PM

Quote:

Originally posted by Link14716
Please post any bugs, addons, corrections, or suggestions here.

Planned Features:
  • Arcade Pass timeout after x number of days. or...
  • Arcade Pass timeout after x number of games played.
  • Admin CP Integration.
  • Whether a user has an arcade pass or not shown up in postbit/getinfo.

Great, I will install when you have these features.

Link14716 09-14-2002 09:32 PM

Ok, one of you try this out.

Install the hack from the attached zip in the first post.

Then....

Open store.php:

Find:
Code:

$DB_site->query("UPDATE user SET arcadepass='1',storep=storep-$cost  WHERE userid='$bbuserinfo[userid]'");
Replace With:
Code:

$DB_site->query("UPDATE user SET arcadepass='".time()."',storep=storep-$cost  WHERE userid='$bbuserinfo[userid]'");
Open up proarcade.php.
Find:
Code:

    $arcadepass_u=$DB_site->query_first("SELECT * FROM user WHERE userid='$bbuserinfo[userid]'");
Add Under:
Code:

  $arcadepass=$arcadepass_u[arcadepass];
  $expiretime=$arcadepass+155520000;

Find:
Code:

  if ($arcadepass_u[arcadepass]<1) {
  eval("standarderror(\"".gettemplate('arcade_nopass')."\");");

Replace With:
Code:

  if ($expiretime < ".time().") {
  eval("standarderror(\"".gettemplate('arcade_passexpired')."\");");

Make a new template: arcade_passexpired:
Code:

We are sorry, your arcade pass has expired, please buy a <a href="store.php?action=arcadepass">new one.</a>
Tell me if you get any parse errors or DB error in either of the files. Then, buy an arcade pass and see if it lets you in. Finally, (to test out), change
Code:

$expiretime=$arcadepass+155520000;
to
Code:

$expiretime=$arcadepass+1;
and tell me the results of all. :):D;):cool::cheeky:

(of course on the last edit, after seeing if it lest you in, change it back :))

Link14716 09-15-2002 12:11 AM

Well, I changed my mind. A one month pass will be avalible once I write the instructions and ZIP it :)

Link14716 09-15-2002 12:19 AM

Here we go.....

1 MONTH ARCADE PASS BETA 1.1!

Test it out. I know it works, as I have tested it, but test anyways. :)

Attachment edited out, not the current attachment. If you want the hack, grab the attachment in the first post :)

Goldknight 09-15-2002 01:07 AM

[high]* Goldknight kiss Link's feet
[/high]

I m going to test this hack right away

Thanks

Edit: now I have to wait for AdminCP ;)

mewgood 09-15-2002 01:13 AM

can you make a optiopn in the admin cp and let you set how long can the pass be?

Link14716 09-15-2002 01:16 AM

mewgod, that is the next thing on my to-do list, I might do it right now. For now.....

Start Menu --> Programs --> Accessories --> Calculator

and found out how many seconds are in however long you want the pass of time to be. Then, grab that number and replace 155520000 with it (in proarcade.php after you installed the hack). :)

futureal 09-15-2002 01:16 AM

Looks good.

I found a bug, though: temporary is spelled incorrectly. :)

Link14716 09-15-2002 01:17 AM

Bah, I knew it looked funny :)

Yea, that bug is tearing board's to peices isn't it ;) lol

Link14716 09-15-2002 01:39 AM

I already completed the admin CP integration of the timeout for the arcade pass. New zip in a second, with upgrade instructions from the 1 Month Pass and the Lifetime Pass included :)

Link14716 09-15-2002 01:59 AM

UPDATED!

Enjoy :) Attachement is in first post :)

Goldknight 09-15-2002 02:01 AM

D@mn you, Link...

Thanks for update ^_^ I gotta edit over all again... :p

Link14716 09-15-2002 02:03 AM

Remember, I added the upgrade txt file so you know what is changed, and to make your life easier :D

Link14716 09-15-2002 02:05 AM

Now, before I strain my mind, REQUESTS ARE VERY WELCOME! IN FACT, REQUEST, DAMNIT! :D

That way I can keep busy pumping out updates considering I have no life :)

ZiRu$ 09-15-2002 03:03 AM

Quote:

Originally posted by Link14716
Here we go.....

1 MONTH ARCADE PASS BETA 1.1!

Test it out. I know it works, as I have tested it, but test anyways. :)

Attachment edited out, not the current attachment. If you want the hack, grab the attachment in the first post :)

ok man i'll look at it monday...thanks for the quick response

ZiRu$ 09-15-2002 04:29 AM

Anyway you can work with this hack

https://vborg.vbsupport.ru/showthrea...threadid=43309

he uses you gotta pay X to play...I Like that...but could you make a add-on so it checks and sees if you got a MEMBERSHIP to the arcade...and if you don't it uses the other hack's pay per game?

Link14716 09-15-2002 04:29 PM

I don't get what you mean, Zirus.

I made this hack work where you pay a 1 time fee (or monthly, whenever the pass times out) to play. After it times out, you must get another one to play.

So wht do you want to work with the other hack? A jackpot?

EDIT: oh, I get what you mean. I bet you could already do that if you removed the standard error. I don't know how his code is, but" will try to make an addon like that. :)

EDIT2: You know what, his hack places code in a different spot, so I am just going to make my own way of doing it and add it into my hack.

Link14716 09-15-2002 06:24 PM

Progress!

I have now made it where if you have an epired (or no) pass, you have to pay x amount of points. I will now work on CP Integration (BTW, like the other one, there will be a jackpot, and also, the distributation of it will be automatic using a specific formula. :))

Link14716 09-15-2002 09:56 PM

Ok, the new and improved one is ready. I won't post it yet, however, because I used some of Dark Jim's Admin CP Code (couldn't have done it much differently), so I want to OK it with him first. It'll be classified as "Addon" status, since the paying cannot be turned off as of yet. :)

Dark Jim 09-16-2002 12:01 AM

Like I said in the PM I send you, feel free to integrate my hack with yours. ;) I will install this one when you did. :)

Link14716 09-16-2002 01:21 AM

Ok. I changed my mind about releasing it as an addon, the PM came a little late to do that.

Now I am working on the final part of it. Adding the on/off switch to disable the pay-per-play or the arcade passes or both. Expect a release in the Full Release forum tommorow. Then I will work on the extra stuff I had planned. Until then.... REQUEST FEATURES!!! :)

ZiRu$ 09-16-2002 03:15 AM

Quote:

Originally posted by Link14716
Progress!

I have now made it where if you have an epired (or no) pass, you have to pay x amount of points. I will now work on CP Integration (BTW, like the other one, there will be a jackpot, and also, the distributation of it will be automatic using a specific formula. :))

WOW! Thanks SOOOO Much...I'll un-install his and re-install yours in a few days....DOPE!

Keta 09-16-2002 09:23 AM

this is real real tight my members have been complaing about something new in the store...

Keta 09-16-2002 11:14 AM

one other question where is arcade.gif?

Link14716 09-16-2002 07:24 PM

there is no arcade.gif. I don't use store images. It just has to be there :)

Link14716 09-16-2002 10:11 PM

I hope to get 2.0 up and released in the Full Releases tonight, but if I do, it'd be close or past midnight... maybe sooner... depends on how fast I can hack :)

So the release date will be tonight, tommorow, or maybe, if I am not lucky, wednsday.

Link14716 09-16-2002 11:51 PM

Never the less what I just said, unless I am forgetting something, I have finished. Once it is packaged up into a txt file for full install and upgrade from previous version (and tested like crazY), I will post the big 2.0 in the Full Release forum. Here are some options I have added (not including existing options)
  • If user has no arcade pass they can pay per game played (cost configurable per game) (can be turned off)
  • Switch to turn arcade passes off (and require user to pay per game played)
  • Switch to turn the whole Arcade Pass Hack off. *****
  • Automatic Jackpot Controls
    1. Once user finishes a game (if not paying per game) (or when they pay if using PPG), the cost of the game (configured in Admin CP) and the additional increment (configured in Admin CP) are added together and added to the jackpot.
    2. Once a user finishes a game, their position is divided by the jackpot and added to the user's points and subtracted from the jackpot itself.
  • Jackpot On/Off Switch *****


***** - Master switch for the hack does not turn off the Jackpot, so to turn it off, you must select 'No' for Enable Jackpot. :)

Link14716 09-17-2002 10:34 AM

Sorry for not releasing yet. I almost finished instructions last night and then BANG! I will probably get it out near 6:00 PM EDT today. :)

Lilac 09-17-2002 11:46 AM

When will the final version be released?


All times are GMT. The time now is 02:45 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.01246 seconds
  • Memory Usage 1,820KB
  • 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
  • (9)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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