annotate UIHouses.h @ 749:f39fbeb65b28

Fixed bought items not disappearing from Armourer.
author Nomad
date Fri, 22 Mar 2013 23:26:01 +0200
parents 585490c29945
children 9f7db515a8d7
rev   line source
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
1 #pragma once
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
2
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
3 #include "stru159.h"
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
4
747
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
5 enum HOUSE_DIALOGUE_MENU: unsigned __int32
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
6 {
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
7 HOUSE_DIALOGUE_NULL = 0,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
8 HOUSE_DIALOGUE_MAIN = 1,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
9 HOUSE_DIALOGUE_SHOP_BUY_STANDARD = 2,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
10 HOUSE_DIALOGUE_SHOP_SELL = 3,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
11 HOUSE_DIALOGUE_SHOP_IDENTIFY = 4,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
12 HOUSE_DIALOGUE_SHOP_REPAIR = 5,
749
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 747
diff changeset
13 HOUSE_DIALOGUE_SHOP_6 = 6,
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 747
diff changeset
14 HOUSE_DIALOGUE_BANK_7 = 7,
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 747
diff changeset
15 HOUSE_DIALOGUE_BANK_8 = 8,
747
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
16 HOUSE_DIALOGUE_9 = 9,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
17 HOUSE_DIALOGUE_TEMPLE_HEAL = 10,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
18 HOUSE_DIALOGUE_TEMPLE_DONATE = 11,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
19 HOUSE_DIALOGUE_12 = 12,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
20 HOUSE_DIALOGUE_13 = 13,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
21 HOUSE_DIALOGUE_14 = 14,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
22 HOUSE_DIALOGUE_TAVERN_REST = 15,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
23 HOUSE_DIALOGUE_TAVERN_BUY_FOOD = 16,
749
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 747
diff changeset
24 HOUSE_DIALOGUE_TRAININGHALL_17 = 17,
747
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
25 HOUSE_DIALOGUE_GULD_BUY_BOOKS = 18,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
26 //...
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
27 HOUSE_DIALOGUE_GUILD_LEARN_SKILL = 72,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
28 //...
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
29 HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT = 94,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
30 HOUSE_DIALOGUE_SHOP_BUY_SPECIAL = 95,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
31 HOUSE_DIALOGUE_LEARN_SKILLS = 96,
749
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 747
diff changeset
32 HOUSE_DIALOGUE_97 = 97,
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 747
diff changeset
33 HOUSE_DIALOGUE_98 = 98,
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 747
diff changeset
34 HOUSE_DIALOGUE_TOWNHALL_99 = 99,
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 747
diff changeset
35 HOUSE_DIALOGUE_TOWNHALL_100 = 100,
747
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
36 HOUSE_DIALOGUE_TAVERN_ARCOMAGE_MAIN = 101,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
37 HOUSE_DIALOGUE_TAVERN_ARCOMAGE_102 = 102,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
38 HOUSE_DIALOGUE_TAVERN_ARCOMAGE_103 = 103,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
39 HOUSE_DIALOGUE_TAVERN_ARCOMAGE_RESULT = 104,
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
40
749
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 747
diff changeset
41 HOUSE_DIALOGUE_108 = 108,
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 747
diff changeset
42
747
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
43 HOUSE_DIALOGUE_OTHER = -1
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
44 };
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
45
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
46 /* 349 */
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
47 enum HOUSE_ID
727
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
48 {
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
49 HOUSE_SMITH_EMERALD_ISLE = 1,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
50 HOUSE_ARMOURER_EMERALD_ISLE = 15,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
51 HOUSE_MAGE_EMERALD_ISLE = 29,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
52 HOUSE_MAGE_HARMONDALE = 30,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
53 HOUSE_ALCHEMIST_EMERALD_ISLE = 42,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
54 HOUSE_ALCHEMIST_HARMONDALE = 43,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
55 HOUSE_STABLES_HARMONDALE = 54,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
56 HOUSE_TEMPLE_EMERALD_ISLE = 74,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
57 HOUSE_TEMPLE_HARMONDALE = 75,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
58 HOUSE_TRAINING_HALL_HARMONDALE = 90,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
59 HOUSE_TOWNHALL_HARMONDALE = 102,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
60 HOUSE_TAVERN_EMERALD_ISLE = 107,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
61 HOUSE_BANK_HARMONDALE = 128,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
62 HOUSE_FIRE_GUILD_INITIATE_EMERALD_ISLE = 139,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
63 HOUSE_AIR_GUILD_INITIATE_EMERALD_ISLE = 143,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
64 HOUSE_SPIRIT_GUILD_INITIATE_EMERALD_ISLE = 155,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
65 HOUSE_BODY_GUILD_INITIATE_EMERALD_ISLE = 163,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
66 HOUSE_BODY_GUILD_ERATHIA = 165,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
67 HOUSE_DARK_GUILD_PIT = 170,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
68 HOUSE_LORD_AND_JUDGE_EMERALD_ISLE = 186,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
69 HOUSE_JAIL = 187,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
70 HOUSE_JUDGE_HARMONDALE = 190,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
71 HOUSE_224_EMERALD_ISLE = 224,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
72 HOUSE_225_EMERALD_ISLE = 225,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
73 HOUSE_466_HARMONDALE = 466,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
74 HOUSE_467_HARMONDALE = 467,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
75 HOUSE_468_HARMONDALE = 468,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
76 HOUSE_472_HARMONDALE = 472,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
77 HOUSE_488_HARMONDALE = 488,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
78 HOUSE_489_HARMONDALE = 489,
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
79 HOUSE_600 = 600,//???
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
80 HOUSE_601 = 601//???
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
81 };
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
82
735
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 728
diff changeset
83 enum HouseSoundID: unsigned __int32
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 728
diff changeset
84 {
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 728
diff changeset
85 HouseSound_Greeting = 1,
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 728
diff changeset
86 HouseSound_NotEnoughMoney = 2,
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 728
diff changeset
87 HouseSound_Greeting_2 = 3, // good greeting when you're guild member
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 728
diff changeset
88 HouseSound_Goodbye = 4 // farewells when bought something
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 728
diff changeset
89 };
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 728
diff changeset
90
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
91 int __cdecl TrainingDialog();
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
92 char *__cdecl JailDialog();
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
93 void MagicShopDialog();
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
94 void GuildDialog();
711
a5e587c8e30e some cleaning
Gloval
parents: 644
diff changeset
95 void sub_4B6478();
727
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 644
diff changeset
96 bool __fastcall IsTravelAvailable(int a1);
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
97 void __cdecl TravelByTransport();
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
98 void TempleDialog();
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
99 void __cdecl TownHallDialog();
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
100 void __cdecl BankDialog();
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
101 void __cdecl TavernDialog();
735
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 728
diff changeset
102 void PlayHouseSound(unsigned int uHouseID, HouseSoundID sound); // idb
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
103 void __cdecl WeaponShopDialog();
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
104 void __cdecl AlchemistDialog();
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
105 void __cdecl ArmorShopDialog();
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
106
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
107 extern int uHouse_ExitPic; // weak
59713bb36033 houses func moved to uihouses
Gloval
parents: 620
diff changeset
108 extern int dword_591080; // weak
747
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
109 extern const stru159 pAnimatedRooms[196];
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
110 extern int in_current_building_type; // 00F8B198
585490c29945 House dialogue ids appended
Nomad
parents: 735
diff changeset
111 extern HOUSE_DIALOGUE_MENU dialog_menu_id; // 00F8B19C