[DEV] Slot machine Item-add-on | v0.7.6

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
RCTycooner
Registered User
Posts: 113
Joined: Sat Jul 19, 2003 6:13 pm
Location: A lot of Bytes away from u ...
Contact:

[DEV] Slot machine Item-add-on | v0.7.6

Post by RCTycooner »

Due to recent changes in our policy to not allow Non-DBAL Compliant MOD's to be listed here @phpBB, (see here for details) this thread is being locked down and all download links removed.

To the author of this MOD: Once/when/if you have completed the upgrade to use the phpBB DBAL, and your MOD conforms to all the standard MOD Template standards, please send me (AbelaJohnB) a PM for reviewing your updated code and further directions to continue the development of your MOD here @phpBB.Com


Thank You.
AbelaJohnB
phpBB MOD Team Leader




Mod: Slot machine Item-add-on
Version: 0.7.6
Requires: Slot machine, Zarath's Shop/Item mod

With this, your members can use a 'ticket'-item to win items with the slot machine made by tHe LiNk.


Version History:
0.7.6 Made it compatible with slot machine 1.1.4 and 1.1.5
0.7.5 Added a querry-install-file.
0.7.4 Fixed some bugs
0.7.0 Admins can now easily chose which items are used and which are prices, through the ACP
0.6.7 Made it compatible with slot machine 1.1.2.
0.6.6 Made this compatible with slot machine 1.0.1 by adding the button-class as requested.
0.6.5 Small parse error fix.
0.6.4 First Release.

What's expected in a next version:
0.8.x
- The ability to set it so that if you get 2 of something u win cash/points and if you win 3 of something, you'll get an item OR gold (define-able by the admin) + you can set if the users have to use there cash/points or the 'ticket'-item.

____________________
Other mods by me:
lucky Dice mini-game
Last edited by RCTycooner on Sun Sep 28, 2003 5:59 pm, edited 15 times in total.
GRTZ, RCTycooner

My Mods:

Image

PhilippT
Registered User
Posts: 419
Joined: Mon May 06, 2002 5:59 pm

Post by PhilippT »

Nice but what about the item user can win is selected over the acp or a nice file but not in the midd of the file ???

Code: Select all

		$newrand = rand(1,9); 
		$pickitem = $newrand; 
		if ($pickitem == 1) {$itemfound = 'Antidote';} 
		if ($pickitem == 2) {$itemfound = 'Cotton Balloon';} 
		if ($pickitem == 3) {$itemfound = 'Fairy Powder';} 
		if ($pickitem == 4) {$itemfound = 'Herb';} 
		if ($pickitem == 5) {$itemfound = 'Herb';} 
		if ($pickitem == 6) {$itemfound = 'Herb';} 
		if ($pickitem == 7) {$itemfound = 'Wooden Panel';} 
		if ($pickitem == 8) {$itemfound = 'Wooden Panel';} 
		if ($pickitem == 9) {$itemfound = 'Wooden Panel';} 
		} 
		if ($itemtype == 'UC') 
		{ 
		$newrand = rand(1,8); 
		$pickitem = $newrand; 
		if ($pickitem == 1) {$itemfound = 'Scratch Card';} 
		if ($pickitem == 2) {$itemfound = 'Angel Wing';} 
		if ($pickitem == 3) {$itemfound = 'Blizzard';} 
		if ($pickitem == 4) {$itemfound = 'Fairy Tear';} 
		if ($pickitem == 5) {$itemfound = 'Holy Thunder';} 
		if ($pickitem == 6) {$itemfound = 'Raft';} 
		if ($pickitem == 7) {$itemfound = 'Shining Ball';} 
		if ($pickitem == 8) {$itemfound = 'Scratch Card';} 
		} 
		if ($itemtype == 'R') 
		{ 
		$newrand = rand(1,7); 
		$pickitem = $newrand; 
		if ($pickitem == 1) {$itemfound = 'Bright Honey';} 
		if ($pickitem == 2) {$itemfound = 'Cheerful Bread';} 
		if ($pickitem == 3) {$itemfound = 'Dry Stone';} 
		if ($pickitem == 4) {$itemfound = 'Dynamite';} 
		if ($pickitem == 5) {$itemfound = 'Healing Water';} 
		if ($pickitem == 6) {$itemfound = 'Pegasus Wing';} 
		if ($pickitem == 7) {$itemfound = 'Power Water';} 
		} 
		if ($itemtype == 'VR') 
		{ 
		$newrand = rand(1,6); 
		$pickitem = $newrand; 
		if ($pickitem == 1) {$itemfound = 'Arm Of Golem';} 
		if ($pickitem == 2) {$itemfound = 'Cannon';} 
		if ($pickitem == 3) {$itemfound = 'Healing Rain';} 
		if ($pickitem == 4) {$itemfound = 'Jewel Of Evil';} 
		if ($pickitem == 5) {$itemfound = 'Jewel Of Light';} 
		if ($pickitem == 6) {$itemfound = 'Light Of Hope';} 
		}

User avatar
malitic
Registered User
Posts: 168
Joined: Fri Jul 18, 2003 4:05 pm

Post by malitic »

hmm if he did that it would be useful as addons from moogies useable mods,

RCTycooner
Registered User
Posts: 113
Joined: Sat Jul 19, 2003 6:13 pm
Location: A lot of Bytes away from u ...
Contact:

Post by RCTycooner »

PhilippT wrote: Nice but what about the item user can win is selected over the acp or a nice file but not in the midd of the file ???


that will come in the next version !! :D
GRTZ, RCTycooner

My Mods:

Image

RCTycooner
Registered User
Posts: 113
Joined: Sat Jul 19, 2003 6:13 pm
Location: A lot of Bytes away from u ...
Contact:

Post by RCTycooner »

There was a small parse error where the item needed is displayed on the main slot machine page, that has been fixed now !

Version:
0.6.5 Small parse error fix.
GRTZ, RCTycooner

My Mods:

Image

tHe LiNk
Registered User
Posts: 158
Joined: Sat Jan 11, 2003 3:26 am
Contact:

Post by tHe LiNk »

I only browsed through the code, but it looks pretty good for the first stages. I expect it to be even better once its extended upon. (note to RCTycooner, try not to edit the actual code too much [eg: deleting, replacing stuff]. I may work on further versions still..

RCTycooner
Registered User
Posts: 113
Joined: Sat Jul 19, 2003 6:13 pm
Location: A lot of Bytes away from u ...
Contact:

Post by RCTycooner »

tHe LiNk wrote: I only browsed through the code, but it looks pretty good for the first stages. I expect it to be even better once its extended upon. (note to RCTycooner, try not to edit the actual code too much [eg: deleting, replacing stuff]. I may work on further versions still..


ok, i'll try to not do that ! :)
GRTZ, RCTycooner

My Mods:

Image

User avatar
rickhaye
Registered User
Posts: 107
Joined: Fri Feb 14, 2003 7:38 pm
Contact:

Re: [DEV] Slot machine Item-add-on | v0.6.4

Post by rickhaye »

RCTycooner wrote: Mod: Slot machine Item-add-on
Version: 0.6.5
Requires: Slot machine, Zarath's Shop/Item mod

With this, your members can use a 'ticket'-item to win items with the slot machine made by tHe LiNk.


What exactly do you mean by this ? So with this addon... users can also win items from within the shop ( like a sword,shield etc. ) ? And do you need to purchase a usable item ( named slotmachine something ) from the shop to use the slotmachine besides just purchasing them with your cash or ponits earned ? Sorry if I'm not making sense but I'm just trying to fully understand the details of this addon. Thanks in advance...

RCTycooner
Registered User
Posts: 113
Joined: Sat Jul 19, 2003 6:13 pm
Location: A lot of Bytes away from u ...
Contact:

Re: [DEV] Slot machine Item-add-on | v0.6.4

Post by RCTycooner »

rickhaye wrote: What exactly do you mean by this ? So with this addon... users can also win items from within the shop ( like a sword,shield etc. ) ?

Yes, they can.
And do you need to purchase a usable item ( named slotmachine something ) from the shop to use the slotmachine besides just purchasing them with your cash or ponits earned ?

no, the user doesn't buy a usable item but they buy a 'ticket'-item
Sorry if I'm not making sense but I'm just trying to fully understand the details of this addon. Thanks in advance...


ok, i'll explain:

the users can buy an item in your shops (a 'ticket'-item).
they go to the slot machine (just a link in the header) and they can 'use' the ticket or insert points/cash
if they've used the item then they have a change to win other items (found in the shops)
if they use there points/cash, then they can win money

did that help??
GRTZ, RCTycooner

My Mods:

Image

User avatar
rickhaye
Registered User
Posts: 107
Joined: Fri Feb 14, 2003 7:38 pm
Contact:

Re: [DEV] Slot machine Item-add-on | v0.6.4

Post by rickhaye »

RCTycooner wrote:
rickhaye wrote: What exactly do you mean by this ? So with this addon... users can also win items from within the shop ( like a sword,shield etc. ) ?

Yes, they can.
And do you need to purchase a usable item ( named slotmachine something ) from the shop to use the slotmachine besides just purchasing them with your cash or ponits earned ?

no, the user doesn't buy a usable item but they buy a 'ticket'-item
Sorry if I'm not making sense but I'm just trying to fully understand the details of this addon. Thanks in advance...


ok, i'll explain:

the users can buy an item in your shops (a 'ticket'-item).
they go to the slot machine (just a link in the header) and they can 'use' the ticket or insert points/cash
if they've used the item then they have a change to win other items (found in the shops)
if they use there points/cash, then they can win money

did that help??


Oh I see... if they just go to the slot machine link and play they will only win cash. Now if I make a ticket item in my shop and the members purchase and use the "ticket" item for the slot machine. They now can win items in my shop. Got it.... thank you so much for explaining that to me. I'm such a noob... :oops:

RCTycooner
Registered User
Posts: 113
Joined: Sat Jul 19, 2003 6:13 pm
Location: A lot of Bytes away from u ...
Contact:

Post by RCTycooner »

you know, they don't have to 'click' the item (as you do with the 'useable'-items)

they just have to go to the slot machine with the link in the header then select wether they want to use money, or the item ...


there is a working version on my forum !!
GRTZ, RCTycooner

My Mods:

Image

the_azn_stinger
Registered User
Posts: 81
Joined: Mon Jul 14, 2003 8:36 pm
Location: Konoha Village
Contact:

Post by the_azn_stinger »

oh wow rctycooner! haha, you finally released it? ^_^

you know me! lol, but this isn't the time to forum chat :)

good work :D

User avatar
rickhaye
Registered User
Posts: 107
Joined: Fri Feb 14, 2003 7:38 pm
Contact:

Post by rickhaye »

RCTycooner wrote: you know, they don't have to 'click' the item (as you do with the 'useable'-items)

they just have to go to the slot machine with the link in the header then select wether they want to use money, or the item ...


there is a working version on my forum !!


Thanks I got it to work finally... I've modified the cosmetics of the slot machine to match my forums... feel free to visit it and see my forums board... Thanks once again for the help !

RCTycooner
Registered User
Posts: 113
Joined: Sat Jul 19, 2003 6:13 pm
Location: A lot of Bytes away from u ...
Contact:

Post by RCTycooner »

you're welcome !! :D
GRTZ, RCTycooner

My Mods:

Image

www.pittt.tk
Registered User
Posts: 167
Joined: Tue Mar 18, 2003 7:33 pm

Post by www.pittt.tk »

this sounds great but i was wondering if people could pay points/gold and get either points/gold or items

Like if you get 2 of something u only get gold while if you got 3 starfruit or 3 apples you get a chance of the gold prize or the items
check out http://www.pittt.tk

A msg board with loads of mods

Locked

Return to “[2.0.x] MODs in Development”