Jump to content
MakeWebGames

[mccode v1] Chests


PsyChoTic

Recommended Posts

Re: [mccode v1] Chests

Actually this game would be quite good if you had to find the keys yourself instead of having 100 to begin with,,,

Those that have the streets or steps.php could find a key or keys in their searches and use them on the boxes. The idea od giving back a key however is a bit silly if its used its disposed of.

That way you wouldnt need a cron at all

also id make the gains from the box more satisfying like finding an item

Link to comment
Share on other sites

Re: [mccode v1] Chests

I have added this to my streets....

You see a small item on the ground, and decide to pick it up... Congratulations you found 1 key.? (Hint, maybe you need to be at a certain level to use this key?) I have it a level 15 but you don't have to do this.

Simply add a new chance to your streets, i just added this under chance 9 and then changed to rest to suit. IE: Chance 10, 11, 12 and so on...

if ($chance == 10) {

print "You see a small item on the ground, and decide to pick it up... Congratulations you found 1 key.

(Hint, maybe you need to be at a certain level to use this key?)";

$db->query("UPDATE `users` SET `keys` = `keys` + '1' WHERE `userid` = '$ir[userid]'");

}

Works good and no need to add a day cron.

Link to comment
Share on other sites

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