The Casino 2.2 (with Shop, Bank)

Started by dr.wills, February 20, 2009, 09:19:43 AM

Previous topic - Next topic

JackWise

Quote from: ricorico on March 22, 2009, 01:51:52 AM
hmm any news on the question above? been a coupe days.

Hi ricorico,
Sometimes when we install and uninstall a mod several times, something can be taken behind.
You have to open the **.php modified by this mod, looking for duplicate code.

JW

dr.wills

#81
ricorico , what version did you install/ uninstall?  ::)

thanks all your guys for the replies, from what you all said, I guessed I forgot to remove those part when uninstall

I will release an update

for the money appeared 3 times, you can do the reverse of this code
<file name="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';]]></search>
<add><![CDATA[
// Begin Casino Mod
loadLanguage('Casino');
echo '
<li>', $txt['member_cashcount'], ': ', $message['member']['cash'], '</li>';
// End Casino Mod ]]></add>
</operation>
</file>


:D
http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

Tracey12

Is their a way I can disable the casino and just use it as a hack?

dr.wills

#83
Quote from: Tracey12 on March 22, 2009, 08:01:36 PM
Is their a way I can disable the casino and just use it as a hack?

:-\ What do you mean by "just use it as a hack" ?

please tell the version you are using when asking for support, it helps narrow down the problems :D
http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

ricorico

thank you akai! :) that worked somehow that code didnt remove, but its only showing once now.
the 'gift' thing still doesnt work for me though? any suggestions on that?

also i installed your latest updated one for 1.18

dr.wills

 :) I tested it and it worked.

Can I take a look at your website to determine the problem more precisely?
http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

Afro

how do you reset each price for each item. all of them have the same price

JBlaze

I am having a problem now. Many members are reporting, and I have confirmed, that after winning at a game, the money won is not transferred to either pocket or bank. So basically, even if I win, I lose! :P

Anyone else having this problem?
Jason Clemons
Former Team Member 2009 - 2012

dr.wills

 ;) Sry, I know the problem. I have visited your site and saw it  >:(

This is because I forgot to translate all the function to smf 1.1.8 style :D

Right now, I'm devoting my time to writing version for rc1

If i have free time, I will also update for 1.1.8

Thanks :D
Akai
http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

Xlife92

I hope the 1.1.8 version is made soon

Vampy

Several questions if I may..

In the future is there a possibility of more games with interactive graphics like there is in the IBP casino or some way to import their games like we can with the arcade and to set a maximum daily winnings level?

Would  it possible to have a setting in profile page to show the gifts a person has received? Also could it be made possible to set different bank interest rates based on user group?

I know I'm a pain, but I love the basics of this mod and can just envision so much more for it


dr.wills

#92
 >:( Darn, Yesterday I almost finished upgrading the mod

:-\ Unfortunately I forgot to copy the new file, and they are all lost.

I have to rewrite all over again

I won't support for 1.1.8 anymore since it will take a lot of time to translate the code, anyway SMF2 will soon be out (I hope  ;) , go SMF, make my dream come true soon) so I will focus on writing for smf2 version now   O:)

I updated the mod to version 2.2 (this one only for SMF2)

By the way, thanks for the ideas, Vampy, I will think about it ;)
http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

Afro

what do you mean you wont support for 1.1.8..?

Vampy

Is there a way to set when the bank pays interest? It doesn't seem adding interest and updating balances at all :(

Vampy

#95
Sorry for the double post, and for butting in on this mod - I hope you don't mind akaiphan, but I added a drop down menu for the casino to my site - if anyone else is interested here's how:

This will work on all themes that have a drop down menu

In subs.php find
//Begin Casino Mod
'casino' => array(
'title' => $txt['casino'],
'href' => $scripturl . '?action=casino',
'show' => ($modSettings['casinoEnableCasino'] == 'on'),
  'sub_buttons' => array(


Change to:

//Begin Casino Mod
'casino' => array(
'title' => $txt['casino'],
'href' => $scripturl . '?action=casino',
'show' => ($modSettings['casinoEnableCasino'] == 'on'),
  'sub_buttons' => array(
'games' => array(
'title' => $txt['games'],
'href' => $scripturl . '?action=casino;sa=game',
'show' => true,
),
'bank' => array(
'title' => $txt['bank'],
'href' => $scripturl . '?action=casino;sa=bank',
'show' => true,
),
'shop' => array(
'title' => $txt['shop'],
'href' => $scripturl . '?action=casino;sa=shop',
'show' => true,
),
'inv' => array(
'title' => $txt['inv'],
'href' => $scripturl . '?action=casino;sa=inventory',
'show' => true,
),
'gift' => array(
'title' => $txt['gift'],
'href' => $scripturl . '?action=casino;sa=gift',
'show' => true,
),
'stats' => array(
'title' => $txt['stats'],
'href' => $scripturl . '?action=casino;sa=stats',
'show' => true,


),
),


In index.english.php add:

$txt['games'] = 'Games';
$txt['bank'] = 'Bank';
$txt['shop'] = 'Shop';
$txt['inv'] = 'Inventory';
$txt['gift'] = 'Gift';
$txt['stats'] = 'Stats';




----------------------------------------------------------------------


Instead of triple posting I edited this one  O:)


At the risk of coming across as a right royal pain in the behind, but I love this mod :D I upgraded to 2.2 a couple of days ago and have been playing with it since - a few things I'd like to point out.

1. The mod does not upgrade within package manager, so I needed to uninstall 2.1 then install 2.2 meaning all the previous settings were lost.

2. The ability to alter the number of items in the shop has been lost. The option is there to update but no boxes to input the info and when you click update it does nothing.

3. In Admin under inventory there used to be the ability to change the amount in a users pocket and bank - this has gone and now it only shows the items a user has

4. The misc tab redirects to the Access page and nothing else. Were more options intended to be there?

Tracey12

Quote from: akaiphan on March 22, 2009, 08:05:48 PM
Quote from: Tracey12 on March 22, 2009, 08:01:36 PM
Is their a way I can disable the casino and just use it as a hack?

:-\ What do you mean by "just use it as a hack" ?

please tell the version you are using when asking for support, it helps narrow down the problems :D

Sorry i meant as like a shop hack.
I don't have it installed yet.

chongoman

Sorry but, when i install it, everithings okey, but i cant se any image

There are no images in this mod

i have smf 2.0

Vampy

There are images, look in Themes/default/images/ for the folder "casino". If you have a theme installed you will have to copy this folder into your themes images folder too for them to show.

Goodman854

#99
No more support for 1.1.8 Thats un fair and dumb.

Even version 2.1 that should work on 1.1.8 doesnt even work when I apply mod I get "Forbidden

You don't have permission to access /fbeta/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

I dont get that on any other mods.

Advertisement: