Jump to content
MakeWebGames

[Free] [v1] Monkey Slaves


Isomerizer

Recommended Posts

Ok, Well this mod isnt the most complex mod, but i havent made any mods for a while, And i was meening to make this for my game anyways, Simple add on that can give user's something else to work on, And is another reason while there stay active in your game..

So here it is....Monkey Slaves...

Updated 25/6/08

Create new monkeys.php:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

In Energy Cron:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

In mainmenu.php add:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

SQL:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Enjoy..

Link to comment
Share on other sites

Re: [Free] [v1] Monkey Slaves

well give us more info. It's not often I am in a helpin mood.

Did you run the DB updates?

ALTER TABLE `users` ADD `monkey_hunger` INT( 25 ) NOT NULL DEFAULT '100';

ALTER TABLE `users` ADD `monkeys` INT( 25 ) NOT NULL DEFAULT '0';

Link to comment
Share on other sites

Re: [Free] [v1] Monkey Slaves

+1 again to UCC-Got it running now and it works fine. thanks for the help....

LOL, I like the name, I cannot exactly add it onto my game without modifying it first

BTW, my game is a gangsta based one LOL.

 

The name of my game is Thugs Life. I modified it from monkeys to Street Soldiers... Im sure you will come up with something good

Link to comment
Share on other sites

  • 1 month later...

Re: [Free] [v1] Monkey Slaves

I thank you for the help, but I don't even know where to start with adding that stuff. This is just more to get me figuring stuff out. I want to learn to make my own mods and this is the best way I can think of.

This is an example of a Loss event for a slave. It looks like I have close to what you are talking about, but maybe in the wrong spot? Thanks for any help with this, I really want to learn this stuff!

 

if ($rand=='6')

{

$randcash=mt_rand(1,150);

$cash=($ir['cronies']*$randcash);

$safecash=mysql_real_escape_string($cash);

echo "Your Cronies were robbed of $$safecash!";

echo "

Try Again";

$db->query("UPDATE users SET money=money-'$safecash' WHERE userid=$userid");

$db->query("UPDATE users SET cronies_hunger=cronies_hunger-20 WHERE userid=$userid");

$h->endpage();

exit;

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