Jump to content
MakeWebGames

Recommended Posts

Posted

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 :).

Posted

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 ;).

Posted

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?

Posted

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

  • 1 month later...
  • 4 weeks later...
Posted

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

Posted

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

Posted

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.

  • 2 months later...
Posted

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 :)

  • 2 weeks later...
Posted

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?

Posted

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)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...