RTC/Shops

From DmWiki
Revision as of 10:27, 5 September 2009 by Trego (talk | contribs) (example added)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Here is an example shop from DMII. Hopefully you can paste and copy it into a level of your own dungeon and go from there.

px:100

; Level 1
WALLSET......=(WALLSET_DEFAULT)
LIGHT_AMBIENT=(0)
LIGHT_MINIMUM=(5)
LIGHT_MAXIMUM=(1000)
OFFSET.......=(0,0)
SIZE.........=(8,8)
ITEM_PREFIX..=(H)
DESCRIPTION..=(Shop)
00000000
00001000
00111000
00111000
00101000
00101000
00111000
00000000
; Level 1
H2024-5	ALT_WALLSET_STONE			4	1	10	CENTRE	WALLSET=(WALLSET_STONE)
H2024-6	FLOORITEM_TRIGGER			4	1	10			STATE=(INACTIVE)	OPBY=(MONSTER_GUARD)	ACTION=(ACTIVATE)	TARGET=(H2024-7)
H2024-7	FLOORITEM_DAMAGE			4	1	10			STATE=(INACTIVE)	TYPE=(HEALTH)	DAMAGE=(1)
H2024-8	MONSTER_GUARD			4	1	10	CENTRE	HEALTH=(1)
shops0906-2	FLOORITEM_TRIGGER			2	3	10			OPBY=(PARTY)	ACTION=(ACTIVATE)	TARGET=(H1645-7)	OPTIONS=(CONSTANT_WEIGHT)
H1643-4	FLOORITEM_TRIGGER			4	3	10			OPBY=(PARTY)	ACTION=(ACTIVATE)	TARGET=(H2128-7)	OPTIONS=(CONSTANT_WEIGHT)
H1827-7	WALLITEM_RELAY			1	4	10	CENTRE	CONDITION=(VALUE:H1927-9,GREATER_THAN_OR_EQUAL_TO,VALUE:H2030-35)	ACTION=(ACTIVATE)	TARGET=(H1827-8,H1827-9,H1827-10)
H1827-8	WALLITEM_RELAY			1	4	10	CENTRE	ACTION=(TOGGLE)	TARGET=(H1927-11,H1927-11)	OPTIONS=(DELAY:4)
H1827-9	WALLITEM_RELAY			1	4	10	CENTRE	ACTION=(ACTIVATE)	TARGET=(H1927-9)	OPTIONS=(DELAY:8)
H1827-10	WALLITEM_RELAY			1	4	10	CENTRE	ACTION=(TOGGLE)	TARGET=(H1927-12,H1927-12)	OPTIONS=(DELAY:12)
H1927-8	FLOORITEM_TABLE_THICK		2	4	10
H1927-9	FLOORITEM_SHOP_COUNTER_BUY	2	4	10			SHOP=(H2030-35)
H1927-10	FLOORITEM_TRIGGER			2	4	10			STATE=(INACTIVE)	OPBY=(OBJECT)	ACTION=(ACTIVATE)	TARGET=(H1827-7)
H1927-11	FLOORITEM_TELEPORTER		2	4	10			STATE=(INACTIVE)	OPBY=(OBJECT)	DESTINATION=(2,4,10)	OPTIONS=(ROTATE:SOUTH)
H1927-12	FLOORITEM_TELEPORTER		2	4	10			STATE=(INACTIVE)	OPBY=(OBJECT)	DESTINATION=(2,4,10)	OPTIONS=(ROTATE:NORTH)
H2027-11	WALLITEM_SHOP_FRONT		3	4	10	NORTH
H2027-12	WALLITEM_SHOP_FRONT_WINDOW	3	4	10	NORTH		SHOP=(H2030-35)
H2027-13	WALLITEM_SHOP_FRONT_NEXT	3	4	10	NORTH		SHOP=(H2030-35)
H2027-14	WALLITEM_SHOP_FRONT_PREVIOUS	3	4	10	NORTH		SHOP=(H2030-35)
H2027-15	WALLITEM_SHOP_FRONT_VALUE_BUY	3	4	10	NORTH		SHOP=(H2030-35)
H2027-16	WALLITEM_SHOP_FRONT_VALUE_SELL	3	4	10	NORTH		SHOP=(H2030-35)
H2027-17	WALLITEM_SHOP_FRONT_DESCRIPTION	3	4	10	NORTH		SHOP=(H2030-35)
H2027-18	WALLITEM_SHOP_FRONT_STOCK_NONE	3	4	10	NORTH		SHOP=(H2030-35)
H2127-8	FLOORITEM_TABLE_THICK		4	4	10
H2127-9	FLOORITEM_SHOP_COUNTER_SELL	4	4	10			SHOP=(H2030-35)
H2127-10	FLOORITEM_TRIGGER			4	4	10			STATE=(INACTIVE)	OPBY=(OBJECT)	ACTION=(ACTIVATE)	TARGET=(H2227-6,H2227-7,H2227-8)
H2127-11	FLOORITEM_TELEPORTER		4	4	10			STATE=(INACTIVE)	OPBY=(OBJECT)	DESTINATION=(4,4,10)	OPTIONS=(ROTATE:SOUTH)
H2127-12	FLOORITEM_TELEPORTER		4	4	10			STATE=(INACTIVE)	OPBY=(OBJECT)	DESTINATION=(4,4,10)	OPTIONS=(ROTATE:NORTH)
H2227-6	WALLITEM_RELAY			5	4	10	CENTRE	ACTION=(TOGGLE)	TARGET=(H2127-11,H2127-11)	OPTIONS=(DELAY:4)
H2227-7	WALLITEM_RELAY			5	4	10	CENTRE	ACTION=(ACTIVATE)	TARGET=(H2127-9)	OPTIONS=(DELAY:8)
H2227-8	WALLITEM_RELAY			5	4	10	CENTRE	ACTION=(TOGGLE)	TARGET=(H2127-12,H2127-12)	OPTIONS=(DELAY:12)
H1645-7	FLOORITEM_MONSTER_ATTRACTOR	2	5	10			STATE=(INACTIVE)
H1645-8	FLOORITEM_TRIGGER			2	5	10			OPBY=(MONSTER_MERCHANT_ANGRY)	ACTION=(ACTIVATE)	TARGET=(H2024-6)
H1645-9	FLOORITEM_TRIGGER			2	5	10			OPBY=(MONSTER_MERCHANT_ANGRY)	ACTION=(DEACTIVATE)	TARGET=(H2030-35)
H1645-10	FLOORITEM_TRIGGER			2	5	10			OPBY=(MONSTER_MERCHANT)	ACTION=(ACTIVATE)	TARGET=(H1927-10)	OPTIONS=(CONSTANT_WEIGHT,DIRECTION:NORTH)
H2128-7	FLOORITEM_MONSTER_ATTRACTOR	4	5	10			STATE=(INACTIVE)
H2128-8	FLOORITEM_TRIGGER			4	5	10			OPBY=(MONSTER_MERCHANT_ANGRY)	ACTION=(ACTIVATE)	TARGET=(H2024-6)
H2128-9	FLOORITEM_TRIGGER			4	5	10			OPBY=(MONSTER_MERCHANT_ANGRY)	ACTION=(DEACTIVATE)	TARGET=(H2030-35)
H2128-10	FLOORITEM_TRIGGER			4	5	10			OPBY=(MONSTER_MERCHANT)	ACTION=(ACTIVATE)	TARGET=(H2127-10)	OPTIONS=(CONSTANT_WEIGHT,DIRECTION:NORTH)
H2129-5	FLOORITEM_TRIGGER			2	6	10			OPBY=(MONSTER_MERCHANT_ANGRY)	ACTION=(ACTIVATE)	TARGET=(H2024-6)
H2129-6	FLOORITEM_TRIGGER			2	6	10			OPBY=(MONSTER_MERCHANT_ANGRY)	ACTION=(DEACTIVATE)	TARGET=(H2030-35)
H2029-6	MONSTER_MERCHANT			3	6	10	CENTRE	HEALTH=(1)
H2029-7	FLOORITEM_TRIGGER			3	6	10			OPBY=(MONSTER_MERCHANT_ANGRY)	ACTION=(ACTIVATE)	TARGET=(H2024-6)
H2029-8	FLOORITEM_TRIGGER			3	6	10			OPBY=(MONSTER_MERCHANT_ANGRY)	ACTION=(DEACTIVATE)	TARGET=(H2030-35)
shops0709-2	FLOORITEM_TRIGGER			4	6	10			OPBY=(MONSTER_MERCHANT_ANGRY)	ACTION=(ACTIVATE)	TARGET=(H2024-6)
shops0709-3	FLOORITEM_TRIGGER			4	6	10			OPBY=(MONSTER_MERCHANT_ANGRY)	ACTION=(DEACTIVATE)	TARGET=(H2030-35)
H2030-34	ALT_WALLSET_STONE			3	7	10	CENTRE	WALLSET=(WALLSET_STONE)
H2030-35	WALLITEM_SHOP			3	7	10	CENTRE
H2030-36	WALLITEM_SHOP_CURRENCY		3	7	10	CENTRE	OBJECT=(MISC_COIN_COPPER_DM2)	VALUE=(1)
H2030-37	WALLITEM_SHOP_CURRENCY		3	7	10	CENTRE	OBJECT=(MISC_COIN_SILVER_DM2)	VALUE=(4)
H2030-38	WALLITEM_SHOP_CURRENCY		3	7	10	CENTRE	OBJECT=(MISC_COIN_GOLD_DM2)	VALUE=(16)
H2030-39	WALLITEM_SHOP_CURRENCY		3	7	10	CENTRE	OBJECT=(MISC_GEM_GREEN_DM2)	VALUE=(64)
H2030-40	WALLITEM_SHOP_CURRENCY		3	7	10	CENTRE	OBJECT=(MISC_GEM_RED_DM2)	VALUE=(256)
H2030-41	WALLITEM_SHOP_CURRENCY		3	7	10	CENTRE	OBJECT=(MISC_GEM_BLUE_DM2)	VALUE=(1024)
H2030-42	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_TORCH_DM2)	VALUE_BUY=(1)	VALUE_HAGGLE=(1)	VALUE_SELL=(1)	NUMBER_IN_STOCK=(-1)
H2030-43	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(MISSILE_DAGGER_DM2)	VALUE_BUY=(12)	VALUE_HAGGLE=(10)	VALUE_SELL=(8)	NUMBER_IN_STOCK=(5)
H2030-44	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_SCYTHE)	VALUE_BUY=(24)	VALUE_HAGGLE=(20)	VALUE_SELL=(16)	NUMBER_IN_STOCK=(1)
H2030-45	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(SWORD_MACHETE)	VALUE_BUY=(24)	VALUE_HAGGLE=(20)	VALUE_SELL=(16)	NUMBER_IN_STOCK=(1)
H2030-46	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(SWORD_SWORD_DM2)	VALUE_BUY=(86)	VALUE_HAGGLE=(71)	VALUE_SELL=(57)	NUMBER_IN_STOCK=(1)
H2030-47	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(SWORD_RAPIER_DM2)	VALUE_BUY=(120)	VALUE_HAGGLE=(100)	VALUE_SELL=(80)	NUMBER_IN_STOCK=(1)
H2030-48	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_AXE_DM2)	VALUE_BUY=(144)	VALUE_HAGGLE=(120)	VALUE_SELL=(96)	NUMBER_IN_STOCK=(1)
H2030-49	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(SWORD_SABRE_DM2)	VALUE_BUY=(192)	VALUE_HAGGLE=(160)	VALUE_SELL=(128)	NUMBER_IN_STOCK=(1)
H2030-50	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(SWORD_KATANA)	VALUE_BUY=(240)	VALUE_HAGGLE=(202)	VALUE_SELL=(164)	NUMBER_IN_STOCK=(0)
H2030-51	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(SWORD_EXCSYMYR)	VALUE_BUY=(420)	VALUE_HAGGLE=(350)	VALUE_SELL=(280)	NUMBER_IN_STOCK=(1)
H2030-52	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(SWORD_BLUE_STEELE)	VALUE_BUY=(600)	VALUE_HAGGLE=(500)	VALUE_SELL=(400)	NUMBER_IN_STOCK=(1)
H2030-53	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_CLUB_DM2)	VALUE_BUY=(4)	VALUE_HAGGLE=(3)	VALUE_SELL=(3)	NUMBER_IN_STOCK=(5)
H2030-54	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_CLUB_WAR)	VALUE_BUY=(8)	VALUE_HAGGLE=(7)	VALUE_SELL=(6)	NUMBER_IN_STOCK=(5)
H2030-55	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_MACE_DM2)	VALUE_BUY=(72)	VALUE_HAGGLE=(60)	VALUE_SELL=(48)	NUMBER_IN_STOCK=(0)
H2030-56	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_MORNINGSTAR_DM2)	VALUE_BUY=(168)	VALUE_HAGGLE=(140)	VALUE_SELL=(112)	NUMBER_IN_STOCK=(0)
H2030-57	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_MACE_TECH)	VALUE_BUY=(450)	VALUE_HAGGLE=(375)	VALUE_SELL=(300)	NUMBER_IN_STOCK=(1)
H2030-58	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_SLING_DM2)	VALUE_BUY=(6)	VALUE_HAGGLE=(5)	VALUE_SELL=(4)	NUMBER_IN_STOCK=(1)
H2030-59	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(MISC_QUIVER_DM2)	VALUE_BUY=(6)	VALUE_HAGGLE=(5)	VALUE_SELL=(4)	NUMBER_IN_STOCK=(5)
H2030-60	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_BOW_DM2)	VALUE_BUY=(24)	VALUE_HAGGLE=(20)	VALUE_SELL=(16)	NUMBER_IN_STOCK=(1)
H2030-61	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(WEAPON_BOW_CROSS_DM2)	VALUE_BUY=(120)	VALUE_HAGGLE=(102)	VALUE_SELL=(84)	NUMBER_IN_STOCK=(1)
H2030-62	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(MISSILE_ARROW_DM2)	VALUE_BUY=(1)	VALUE_HAGGLE=(1)	VALUE_SELL=(1)	NUMBER_IN_STOCK=(5)
H2030-63	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(MISSILE_ARROW_SLAYER_DM2)	VALUE_BUY=(8)	VALUE_HAGGLE=(7)	VALUE_SELL=(6)	NUMBER_IN_STOCK=(0)
H2030-64	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(MISSILE_DART_POISON_DM2)	VALUE_BUY=(6)	VALUE_HAGGLE=(5)	VALUE_SELL=(4)	NUMBER_IN_STOCK=(-1)
H2030-65	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(MISSILE_SHURIKEN)	VALUE_BUY=(8)	VALUE_HAGGLE=(7)	VALUE_SELL=(6)	NUMBER_IN_STOCK=(5)
H2030-66	WALLITEM_SHOP_STOCK		3	7	10	CENTRE	OBJECT=(STAFF_STAFF_DM2)	VALUE_BUY=(8)	VALUE_HAGGLE=(7)	VALUE_SELL=(6)	NUMBER_IN_STOCK=(1)