Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Ok, I'm at loss again. I'm trying to change the default gossip text (Greetings $N) Afaik it's not pu

[DiscordArchive] Ok, I'm at loss again. I'm trying to change the default gossip text (Greetings $N) Afaik it's not pu

[DiscordArchive] Ok, I'm at loss again. I'm trying to change the default gossip text (Greetings $N) Afaik it's not pu

rektbyfaith
Administrator
0
01-19-2023, 08:37 PM
#1
Archived author: Demonic • Posted: 2023-01-19T20:37:21.075000+00:00
Original source

Ok, I'm at loss again. I'm trying to change the default gossip text (Greetings $N) Afaik it's not pulled from DB. I looked through interface lua and xml in MPQs, i tried looking into core and I just can't find it. Any chance someone here already did this and can point my stupid ass to where to look?
rektbyfaith
01-19-2023, 08:37 PM #1

Archived author: Demonic • Posted: 2023-01-19T20:37:21.075000+00:00
Original source

Ok, I'm at loss again. I'm trying to change the default gossip text (Greetings $N) Afaik it's not pulled from DB. I looked through interface lua and xml in MPQs, i tried looking into core and I just can't find it. Any chance someone here already did this and can point my stupid ass to where to look?

rektbyfaith
Administrator
0
01-19-2023, 08:49 PM
#2
Archived author: stoneharry • Posted: 2023-01-19T20:49:33.560000+00:00
Original source

`Interface\FrameXML\GossipFrame.lua#L35`
```lua
function GossipFrameUpdate()
GossipFrame.buttonIndex = 1;
GossipGreetingText:SetText(GetGossipText());
```
Maybe `GetGossipText()` returns a default value, not looked into it further but you could always override it client side here.
rektbyfaith
01-19-2023, 08:49 PM #2

Archived author: stoneharry • Posted: 2023-01-19T20:49:33.560000+00:00
Original source

`Interface\FrameXML\GossipFrame.lua#L35`
```lua
function GossipFrameUpdate()
GossipFrame.buttonIndex = 1;
GossipGreetingText:SetText(GetGossipText());
```
Maybe `GetGossipText()` returns a default value, not looked into it further but you could always override it client side here.

rektbyfaith
Administrator
0
01-19-2023, 08:50 PM
#3
Archived author: stoneharry • Posted: 2023-01-19T20:50:09.331000+00:00
Original source

Server side it you could change the default value too
rektbyfaith
01-19-2023, 08:50 PM #3

Archived author: stoneharry • Posted: 2023-01-19T20:50:09.331000+00:00
Original source

Server side it you could change the default value too

rektbyfaith
Administrator
0
01-19-2023, 08:51 PM
#4
Archived author: Foe • Posted: 2023-01-19T20:51:04.137000+00:00
Original source

GetGossipText() probably returns a default or text ID if the creature has one
rektbyfaith
01-19-2023, 08:51 PM #4

Archived author: Foe • Posted: 2023-01-19T20:51:04.137000+00:00
Original source

GetGossipText() probably returns a default or text ID if the creature has one

rektbyfaith
Administrator
0
01-19-2023, 08:51 PM
#5
Archived author: Foe • Posted: 2023-01-19T20:51:26.738000+00:00
Original source

So you could definitely hijack that function and override it client side
rektbyfaith
01-19-2023, 08:51 PM #5

Archived author: Foe • Posted: 2023-01-19T20:51:26.738000+00:00
Original source

So you could definitely hijack that function and override it client side

rektbyfaith
Administrator
0
01-19-2023, 08:52 PM
#6
Archived author: stoneharry • Posted: 2023-01-19T20:52:10.808000+00:00
Original source

Server side, `Player.cpp`
```c++
void Player:TonguerepareGossipMenu(WorldObject* source, uint32 menuId /*= 0*/, bool showQuests /*= false*/)
{
PlayerMenu* menu = PlayerTalkClass;
menu->ClearMenus();

menu->GetGossipMenu().SetMenuId(menuId);
```
rektbyfaith
01-19-2023, 08:52 PM #6

Archived author: stoneharry • Posted: 2023-01-19T20:52:10.808000+00:00
Original source

Server side, `Player.cpp`
```c++
void Player:TonguerepareGossipMenu(WorldObject* source, uint32 menuId /*= 0*/, bool showQuests /*= false*/)
{
PlayerMenu* menu = PlayerTalkClass;
menu->ClearMenus();

menu->GetGossipMenu().SetMenuId(menuId);
```

rektbyfaith
Administrator
0
01-19-2023, 08:52 PM
#7
Archived author: stoneharry • Posted: 2023-01-19T20:52:21.432000+00:00
Original source

Change default value of menuId to something else
rektbyfaith
01-19-2023, 08:52 PM #7

Archived author: stoneharry • Posted: 2023-01-19T20:52:21.432000+00:00
Original source

Change default value of menuId to something else

rektbyfaith
Administrator
0
01-19-2023, 08:52 PM
#8
Archived author: Foe • Posted: 2023-01-19T20:52:30.439000+00:00
Original source

That works too
rektbyfaith
01-19-2023, 08:52 PM #8

Archived author: Foe • Posted: 2023-01-19T20:52:30.439000+00:00
Original source

That works too

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)