SphereCommunity
Guild stone - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Guild stone (/Thread-Guild-stone)



Guild stone - Kapa - 10-17-2014 05:51 PM

how can i change so guild stone can only be placed at houses?


[ITEMDEF i_deed_GUILDSTONE]
NAME=Deed to a Guildstone
ID=i_deed
RESOURCES=i_deed,i_guildstone
CATEGORY=Provisions - Deeds
SUBSECTION=Guild and Town Stones
DESCRIPTION=Guild Stone

ON=@Create
MORE=i_guildstone

ON=? Smile


RE: Guild stone - azmanomer - 10-17-2014 08:23 PM

@dclick
if !(<uid.<region.uid>.baseid>==m_tower) && !(<uid.<region.uid>.baseid>==m_castle) && !(<uid.<region.uid>.baseid>==m_small_stone_keep)
sysmesseage bla bla
return 1


RE: Guild stone - Kapa - 10-18-2014 02:30 AM

17:29:ERROR:(sphere_item_provisions_deed.scp,283)Undefined symbol 'm_tower'
17:29:ERROR:(sphere_item_provisions_deed.scp,283)Undefined symbol 'm_castle'
17:29:ERROR:(sphere_item_provisions_deed.scp,283)Undefined symbol 'm_small_stone_keep'


RE: Guild stone - XuN - 10-18-2014 05:19 AM

Code:
ON=@TargOn_Item
src.sysmessage You must target the ground.
return 1

ON=@TargOn_Char
src.sysmessage You must target the ground.
return 1

ON=@TargOn_Ground
ref1=<src.targp.region.uid>
if !(<ref1.type>==t_multi)
    src.sysmessage=You can only place guildstones inside houses.
    return 1
endif



RE: Guild stone - Kapa - 10-18-2014 04:50 PM

thx works perfect