Uridium Posted May 28, 2009 Posted May 28, 2009 if this has already been done then ya can delete me post if not then this mod will allow STAFF to set a sell price for each house they create. just add this SQL to the remaining houses SQLS ALTER TABLE houses ADD hSELLPRICE BIGINT(90) NOT NULL; Overwrite you old staff_houses.php with this one.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now in your estate.php look for $db->query("UPDATE users SET money=money+{$np['hPRICE']},will=150,maxwill=150 WHERE userid=$userid",$c); and overwrite with. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Dont forget to add a new table name called SELL HOUSE. and overwrite 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. And your done... Quote
gurpreet Posted May 28, 2009 Posted May 28, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... +1 very helpful. Like in real life, you could set the buy price to say 10,000 and the sell price to 5,000 which would keep the economy fine. Quote
gurpreet Posted May 28, 2009 Posted May 28, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... How would I get it into this: 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. That messes up the sale, you get 0 back. I have no clue where to put the You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Any help? Quote
BlueDevil23 Posted May 28, 2009 Posted May 28, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... How would I get it into this: 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. That messes up the sale, you get 0 back. I have no clue where to put the You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Any help? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Try that, not tested. Quote
gurpreet Posted May 28, 2009 Posted May 28, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... Says you sold you blah for 0, but gives the correct amount. Quote
BlueDevil23 Posted May 28, 2009 Posted May 28, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... Code updated, try again. Quote
gurpreet Posted May 28, 2009 Posted May 28, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... You sold your Motel Room for 0 and went back to your Shed Sold for the sale price this time. Still says 0 though Quote
Lithium Posted May 28, 2009 Posted May 28, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Should be... (if i saw it right) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
BlueDevil23 Posted May 28, 2009 Posted May 28, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... Ahh, yep, thanks Lithium. Code updated. Quote
Uridium Posted May 28, 2009 Author Posted May 28, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... Cheers guys for the updates :) hope it wasnt my script working failing me again lol Quote
SaMz Posted June 13, 2009 Posted June 13, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... why not just set the percent say you lose 20% of orig house price Quote
CrazyT Posted June 13, 2009 Posted June 13, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... why not just set the percent say you lose 20% of orig house price I've already done that :P lol 1 little thing and done :).. also made a thing so you can get less or more money for you house at random of the house price. Quote
thedestroyer Posted August 13, 2009 Posted August 13, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... this mod is pointless why not just use richards property market mod? then you dont need to have a set price. Quote
Uridium Posted August 13, 2009 Author Posted August 13, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... Destroyer.. all mods for MCC are useless thats why we create them, in the hope some people may see through the Uslessness of them and try making something from it :) Quote
thedestroyer Posted August 14, 2009 Posted August 14, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... Destroyer.. all mods for MCC are useless thats why we create them, in the hope some people may see through the Uslessness of them and try making something from it :) Yes but Richard did he made a much better use of this mod than this :-) Quote
Uridium Posted September 4, 2009 Author Posted September 4, 2009 Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... for those who are seeing the message that their houses are being sold for $0 then alter this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 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.