Justin Davis
Wanderer
Hello, What I'm trying to do is have both House deeds and House placement tool available.
If you use the house placement tool you pay more for houses but you get all the money back, if you place with a deed you only get half back the money back.
Example: you would pay 44k for a Stone Plaster House deed, if you demolish you get 22k back.
If you place it with the House Placement tool you Pay 65k at house creation gump but you will get all 65k back if you demolish.
I alreasy have the Deeds and house Placement tool setup for different prices and have the vendors selling both.
What I need help in is to setup a flag in one of the scripts to differentiate between the two,
deed vrs house placement tool, upon creation, So the actual house knows what set it, deed or house placement tool upon demolish, and can give back different funds depending on what you used to create it.
I need to create a helper method or getter setter upon creation and either set a var or a bool inside but I don't know the files structure all that well, "where everything lives" and need to some advise on where I should set this.
I guess it could be set in Houses.cs and feed it to HouseDemolishGump.cs? I haven't seen anything on this at all and don't know if the logic can be implemented because it was not meant to do this. I'm new to RunUO so any advice would be helpful in leading me where I need to write that code.
Thanks
Justin
If you use the house placement tool you pay more for houses but you get all the money back, if you place with a deed you only get half back the money back.
Example: you would pay 44k for a Stone Plaster House deed, if you demolish you get 22k back.
If you place it with the House Placement tool you Pay 65k at house creation gump but you will get all 65k back if you demolish.
I alreasy have the Deeds and house Placement tool setup for different prices and have the vendors selling both.
What I need help in is to setup a flag in one of the scripts to differentiate between the two,
deed vrs house placement tool, upon creation, So the actual house knows what set it, deed or house placement tool upon demolish, and can give back different funds depending on what you used to create it.
I need to create a helper method or getter setter upon creation and either set a var or a bool inside but I don't know the files structure all that well, "where everything lives" and need to some advise on where I should set this.
I guess it could be set in Houses.cs and feed it to HouseDemolishGump.cs? I haven't seen anything on this at all and don't know if the logic can be implemented because it was not meant to do this. I'm new to RunUO so any advice would be helpful in leading me where I need to write that code.
Thanks
Justin