Jump to content
MakeWebGames

Recommended Posts

Posted

This Estate Mod Does the following:

-lets the users buy multiple of the same house(only)

-increases the house price by amount set in staff panel

-forces users to sell house before buying a new one

-increases HP by the amount set in Staff Panel

-does NOT give money back when they sell the house

Estate.php

You're unable to view this code.

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

 

SQL's

You're unable to view this code.

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

 

You're unable to view this code.

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

 

register.php

find:

You're unable to view this code.

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

at the end of both the users and VALUES add:

house_qty to users

1 to VALUES

staff.php

You're unable to view this code.

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

 

 

I believe if you install this to an active game you will need to have everyone Sell their current house(to set their house_qty = 1)

After that they will be fine(Except they will not get their money back if you don't edit the mod to give it back)

If you edit register then your new users should be fine.

You Will not want to set an incremental soldiers for your lowest house if the price is free as this will be a huge exploit.

I have tested most of this but have not installed it to a game yet.

This is the first mod I've posted..( I will have more to add to the soldier's end of the mod soon)

Posted

Re: New estate mod [V2]

there is a bug with that estate that doesn't print the "current" house price when buying multiple of them.

(you can modify the new estate.php, and staff_houses.php back to will from 'HP' if that suites your game better)

if your going with the soldier idea here is a soldier hire station

create soldhire.php

You're unable to view this code.

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

 

then in city.php or explore.php enter a link to the page.

Soldier Depo.

 

this will let your users rehire their HP(soldiers) for a set price, which you can modify.

i have tested this but not installed it to a game should work fine though :)

Posted

Re: New estate mod [V2]

This is a very bugged version of the estate/soldiers mod.

I have one working on my game if you want to test it.

http://www.corruptedcity.net

There is a lot to this mod if anyone is interested they can try to figure it all out themselves (but what i posted here isn't even 1/6th the work)

Or i could sell it i guess..

It completely changes the entire game Lots and Lots of work :(

Posted

Re: New estate mod [V2]

This does sound like a ok mod but would need more aditional coding to it to make the users be avail to use this as a correct object in the game.

Nice one.

  • 2 weeks later...
Posted

Re: New estate mod [V2]

 

You might want to mysql_real_escape_string on the name stuff when inserting to the db :P

I only had a quick look but all values i saw were numbers..

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