SphereCommunity
Architect buy/sell house issues 56d - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Architect buy/sell house issues 56d (/Thread-Architect-buy-sell-house-issues-56d)

Pages: 1 2


Architect buy/sell house issues 56d - jazzpassine - 09-04-2017 02:53 AM

Hello all!

I just started working on a .56d server and have encountered an issue with the architect. I am using the default script pack and have not added any custom scripts yet. When I place an architect I got the following error for each style of house deed:

WARNING:(sphere_template_vend.scp,33)Vendor non-vendable item: i_deed_brick_house uid=040001f26, vendor: Darnell uid=01f4c

The architect would not buy or sell any homes so I decided to add:
[Value=xxx] e.g. [Value=55000] to the code for each house deed.

This did remove the console error and the architect buys/sells deeds BUT the architect sells the deeds for less than the value I put into the script. When the architect buys them back some of the values match what the architect sold the deed for but some such as the castle are for almost 90% of the purchase price.

I'm sure i'm doing something really newb please help!

Thank you!!


RE: Architect buy/sell house issues 56d - darksun84 - 09-04-2017 04:05 AM

You have also to change the prices inmultihouses.scp (scripts/items/multi).

So you can set the deed value to 1 and put the price you want in the multi definition.

Also remember that vendors have "markup" cost (default 15%), so if the value of an house is 1000 he will sell it at 1150.

Example:
Code:
[ITEMDEF i_deed_field_stone_house]
ID=i_deed
value = 1
NAME=Deed to a Small Stone House
CATEGORY=Provisions - Deeds
SUBSECTION=House Deeds
DESCRIPTION=Small Stone House
ON=@Create
   MORE=m_field_stone_house

Code:
[MULTIDEF 066]
DEFNAME=m_field_stone_house
NAME=Field stone house
NAMELOC=1011304    //Field stone house
TYPE=t_multi
VALUE=1000
REGIONFLAGS=region_flag_nobuilding|region_antimagic_teleport
TSPEECH=spk_house_cmds
DUPELIST=067
CATEGORY=Multis
SUBSECTION=Houses
DESCRIPTION=Field Stone House
MULTIREGION=-3,-3,3,4
COMPONENT=i_door_wood,0,3,7
COMPONENT=i_sign_brass_2,2,4,5

So the Field Stone House will be sold at 1000 + 15% vendor markup = 1150.

Apply TAG.VENDORMARKUP=0 to the vendor for removing the markup cost, you can also increase or decrease it by using this tag.


RE: Architect buy/sell house issues 56d - jazzpassine - 09-04-2017 05:22 AM

Thank you so much!

That is exactly what I needed. The architect is now selling deeds based on the prices in the multihouses.scp Smile

I am still having an issue when I try to sell the deeds back to the vendor. In the sell gump the deeds are as a "deed" not the specific type of house deed (e.g. "deed to a small stone house". Would you mind pointing me in the right direction for that as well?


RE: Architect buy/sell house issues 56d - darksun84 - 09-04-2017 05:48 AM

No idea i can't reproduce it Confused

Maybe the related multi isn't named?

Yes looks like if the multi(not the deed) isn't named the deed will be just sold as "deed" and also you will need to restart the server after adding/changing a name.


RE: Architect buy/sell house issues 56d - x77x - 09-04-2017 09:55 AM

i got an idea!

BRING BACK

BUYVALUE=7000-11000
SELLVALUE=2000-6000


RE: Architect buy/sell house issues 56d - jazzpassine - 09-04-2017 01:25 PM

Hmmm I may not be understanding you

Isn't the multi already named?

Code:
[MULTIDEF 078]
DEFNAME=m_two_story_stone_and_plaster_house
NAME=Two-story stone and plaster house
NAMELOC=1011311    //Two-story stone and plaster house
TYPE=t_multi
VALUE=162000
REGIONFLAGS=region_flag_nobuilding|region_antimagic_teleport
TSPEECH=spk_house_cmds
DUPELIST=079
CATEGORY=Multis
SUBSECTION=Houses
DESCRIPTION=Two-Story Stone and Plaster House
MULTIREGION=-7,-7,6,7
COMPONENT=i_door_wood,-3,6,7
COMPONENT=06a7,-2,6,7    //wooden door
COMPONENT=i_door_wood,-3,0,27
COMPONENT=i_door_wood,-3,0,7
COMPONENT=i_sign_brass_2,1,7,5



RE: Architect buy/sell house issues 56d - darksun84 - 09-04-2017 07:17 PM

Yes it's named, but the only way i can reproducing it is by removing the name and trying to add it again. So i thought you changed the multi name or removed it Confused


RE: Architect buy/sell house issues 56d - darksun84 - 09-04-2017 08:25 PM

It's also possible that the name is taken from NAMELOC=1011311 (a cliloc) and the clicloc is actually empty.


RE: Architect buy/sell house issues 56d - jazzpassine - 09-05-2017 01:15 AM

Is it possible that it has to do with my UO version (ML) or my client (4.0.11c)? I ask because if you can't recreate it and we are both using .56d with the script pack then the difference would be our UO versions/clients?


RE: Architect buy/sell house issues 56d - darksun84 - 09-05-2017 01:21 AM

Oh yes i am using client 7.0.20