diff --git a/src/app/features/gossip/select-gossip/select-gossip.component.html b/src/app/features/gossip/select-gossip/select-gossip.component.html
index df64743513..e38ee89c47 100644
--- a/src/app/features/gossip/select-gossip/select-gossip.component.html
+++ b/src/app/features/gossip/select-gossip/select-gossip.component.html
@@ -22,6 +22,12 @@
+
+
+
+
+
+
diff --git a/src/app/features/gossip/select-gossip/select-gossip.service.ts b/src/app/features/gossip/select-gossip/select-gossip.service.ts
index bf4dcefeb5..ed902960ea 100644
--- a/src/app/features/gossip/select-gossip/select-gossip.service.ts
+++ b/src/app/features/gossip/select-gossip/select-gossip.service.ts
@@ -10,4 +10,32 @@ export class SelectGossipService extends SelectService {
constructor(readonly queryService: MysqlQueryService, public handlerService: GossipHandlerService) {
super(queryService, handlerService, GOSSIP_MENU_TABLE, GOSSIP_MENU_ID, null, GOSSIP_MENU_SEARCH_FIELDS);
}
+
+ onSearch(): void {
+ console.log(this.queryForm.getRawValue().fields);
+ const {
+ limit,
+ fields: { MenuID, TextID, text0_0, text0_1 },
+ } = this.queryForm.getRawValue();
+
+ this.subscriptions.push(
+ this.queryService
+ .query(
+ "SELECT * FROM `gossip_menu` WHERE (`MenuID` LIKE '%" +
+ (MenuID ?? '') +
+ "%') AND (`TextID` LIKE '%" +
+ (TextID ?? '') +
+ "%') AND `TextID` IN (SELECT `ID` FROM `npc_text` WHERE `text0_0` LIKE '%" +
+ (text0_0 ?? '') +
+ "%' AND `text0_1` LIKE '%" +
+ (text0_1 ?? '') +
+ "%') LIMIT " +
+ (limit ?? 50) +
+ ';',
+ )
+ .subscribe((data) => {
+ this.rows = data;
+ }),
+ );
+ }
}
diff --git a/src/app/shared/types/gossip-menu.type.ts b/src/app/shared/types/gossip-menu.type.ts
index db9dd306db..d56c882917 100644
--- a/src/app/shared/types/gossip-menu.type.ts
+++ b/src/app/shared/types/gossip-menu.type.ts
@@ -3,7 +3,9 @@ import { TableRow } from './general';
export const GOSSIP_MENU_TABLE = 'gossip_menu';
export const GOSSIP_MENU_ID = 'MenuID';
export const GOSSIP_MENU_ID_2 = 'TextID';
-export const GOSSIP_MENU_SEARCH_FIELDS = [GOSSIP_MENU_ID, GOSSIP_MENU_ID_2];
+export const NPC_TEXT_0 = 'text0_0';
+export const NPC_TEXT_1 = 'text0_1';
+export const GOSSIP_MENU_SEARCH_FIELDS = [GOSSIP_MENU_ID, GOSSIP_MENU_ID_2, NPC_TEXT_0, NPC_TEXT_1];
export const GOSSIP_MENU_CUSTOM_STARTING_ID = 62_000;
export class GossipMenu extends TableRow {