Akash Posted July 24, 2008 Posted July 24, 2008 Hi guys, another one of my free mods, for V2! Basically, the user can buy upto 1000 lucky bags, which cost $2,000 each. When they buy a luckybag, they can open them. Inside them, will be either cash, ranging from $500-$2,400, crystals ranging from 250-1200 or any random item from the game. It will be one of the three, which is decided randomly. This is a very simple mod, 100% bug free for me and it can easily be edited. Execute the following sql in phpMyAdmin You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Create a file called luckybag.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Do not edit if you don't know what you're doing! Screenshots not needed as the mod explains itself Hope everyone enjoys it :). Quote
Paddy Posted July 24, 2008 Posted July 24, 2008 Re: Lucky Bags [V2][Free] nice ill try it out :-P Quote
Akash Posted July 24, 2008 Author Posted July 24, 2008 Re: Lucky Bags [V2][Free] Trust you to be the first poster on my mod ;). Oh Paddy, sorry, but from Saturday-Tuesday I won't be online. Going Brussels :). Obviously, I'll still be making what you wanted...but just to let you know, I haven't disappeared ;). Quote
Paddy Posted July 24, 2008 Posted July 24, 2008 Re: Lucky Bags [V2][Free] EDIT OT hope so mate you know i need it ASAP but if you say so ill wait :-) Quote
danger boy Posted July 24, 2008 Posted July 24, 2008 Re: Lucky Bags [V2][Free] Nice mod mate looks good keep it up Quote
The Ace Posted July 25, 2008 Posted July 25, 2008 Re: Lucky Bags [V2][Free] This mod is really good. I changed it so I can only buy 25 at a time, for £25,000 each, yet I can buy more than 25!!! I changed the " == 1000" to " == 25", but I can still buy/have more than 25. Also, how do I have it so that you can only find a specific item or two? Quote
zbirc3 Posted July 25, 2008 Posted July 25, 2008 Re: Lucky Bags [V2][Free] Hey, I'd just like to say, FRICKING AWESOME MOD! although, could u make it so the item u get doesnt appear so frequently and also that it auto-merges the item, instead of being a long list of just that 1 item in the inventory. thx Quote
redsnake420 Posted July 26, 2008 Posted July 26, 2008 Re: Lucky Bags [V2][Free] cool this looks like a better version of the lucky boxes or lucky dip good job akash Quote
zbirc3 Posted July 28, 2008 Posted July 28, 2008 Re: Lucky Bags [V2][Free] cool this looks like a better version of the lucky boxes or lucky dip good job akash I concur. Quote
$$ ?????? $$ Posted August 1, 2008 Posted August 1, 2008 Re: Lucky Bags [V2][Free] A very nice Mod Akash. :-) Quote
hobbes Posted September 21, 2008 Posted September 21, 2008 Re: Lucky Bags [V2][Free] A way better alternative than mccodes Lucky Boxes. I changed a few things around and made item finding much more rare. Good job! Quote
avguste Posted October 19, 2008 Posted October 19, 2008 Re: [mccode v2] Lucky Bags I installed and just tested by purchasing 2 bags and it looks great Quote
Solid Snake Posted October 24, 2008 Posted October 24, 2008 Re: [mccode v2] Lucky Bags Here is a LITTLE update to it as your players can earn millions within a few seconds and its now fixed You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You will have to edit the items part as you will have to put your own IDs in because at the moment when you got an item it could of been a will potion or if you got DPs/SPs as items the users could get free DPs/SPs Quote
avguste Posted October 26, 2008 Posted October 26, 2008 Re: [mccode v2] Lucky Bags I have been trying to restrict the number of bags one could buy,but no success. Could someone post an updated code which restricts players on purchasing only 2 bags per day? Thanks Quote
Solid Snake Posted October 26, 2008 Posted October 26, 2008 Re: [mccode v2] Lucky Bags here you go You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
avguste Posted October 30, 2008 Posted October 30, 2008 Re: [mccode v2] Lucky Bags Nope. Doesn't work. In testing,I am still able to buy 3+ bags Quote
War_Hero Posted October 30, 2008 Posted October 30, 2008 Re: [mccode v2] Lucky Bags Try this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. :) Quote
shaved92bravada Posted October 30, 2008 Posted October 30, 2008 Re: [mccode v2] Lucky Bags works great War_Hero. Thanks Another thing I saw is someone wanted it to " quantify " in their inventory, thats easy. replace this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. with this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. thats what I use when anyone receives an item in my game and works great, its just standard in V2. Quote
avguste Posted November 3, 2008 Posted November 3, 2008 Re: [mccode v2] Lucky Bags Will try that tonight. Thanks Quote
SCM-NZ Posted January 29, 2009 Posted January 29, 2009 Re: [mccode v2] Lucky Bags Hi all, I have tryed all 3 versions of the lucky bags and it appears theres no daily limit to how many one can buy, to be able to set a daily limit would be a good thing. apart from that its a good mod :) Quote
Josh23 Posted February 8, 2009 Posted February 8, 2009 Re: [mccode v2] Lucky Bags I got same problem as ^^ Quote
hobbes Posted February 9, 2009 Posted February 9, 2009 Re: [mccode v2] Lucky Bags I'm trying to add a OR function when distributing random prizes am have tried using this. if ($ir['level'] > 49 ) { $rdmitm= rand(1,21) || rand(23,29); } But the rand results always equals 1. What am I doing wrong here? Quote
Haunted Dawg Posted February 9, 2009 Posted February 9, 2009 Re: [mccode v2] Lucky Bags $rdmitm = rand(1,21) ? rand(23,29) : rand(1,21); Quote
Lithium Posted February 9, 2009 Posted February 9, 2009 Re: [mccode v2] Lucky Bags $rdmitm = rand(1,21) ? rand(23,29) : rand(1,21); killah, that won't do the trick, as it will ALWAYS return TRUE , it will always give a rand(23,29) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.