Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] So 6018 is Ur'Kyo, one of the many priest trainers... what if I changed his gossip_menu_id to that o

[DiscordArchive] So 6018 is Ur'Kyo, one of the many priest trainers... what if I changed his gossip_menu_id to that o

[DiscordArchive] So 6018 is Ur'Kyo, one of the many priest trainers... what if I changed his gossip_menu_id to that o

Pages (10): Previous 1 2 3 4 5 6 10 Next  
rektbyfaith
Administrator
0
09-28-2024, 02:47 PM
#31
Archived author: Agent • Posted: 2024-09-28T14:47:58.851000+00:00
Original source

I was hoping this would be a simple DBC or source edit, I'm loathe to learn module creation
rektbyfaith
09-28-2024, 02:47 PM #31

Archived author: Agent • Posted: 2024-09-28T14:47:58.851000+00:00
Original source

I was hoping this would be a simple DBC or source edit, I'm loathe to learn module creation

rektbyfaith
Administrator
0
09-28-2024, 02:48 PM
#32
Archived author: sudlud • Posted: 2024-09-28T14:48:06.519000+00:00
Original source

```
// Add player scripts
class MyPlayer : public PlayerScript
{
public:
MyPlayer() : PlayerScript("MyPlayer") { }

void OnLogin(Player* player) override
{
if (sConfigMgr->GetOption<bool>("MyModule.Enable", false))
{
ChatHandler(player->GetSession()).PSendSysMessage(HELLO_WORLD);
}
}
};
```
that's the default script there, just sending a hello world
rektbyfaith
09-28-2024, 02:48 PM #32

Archived author: sudlud • Posted: 2024-09-28T14:48:06.519000+00:00
Original source

```
// Add player scripts
class MyPlayer : public PlayerScript
{
public:
MyPlayer() : PlayerScript("MyPlayer") { }

void OnLogin(Player* player) override
{
if (sConfigMgr->GetOption<bool>("MyModule.Enable", false))
{
ChatHandler(player->GetSession()).PSendSysMessage(HELLO_WORLD);
}
}
};
```
that's the default script there, just sending a hello world

rektbyfaith
Administrator
0
09-28-2024, 02:48 PM
#33
Archived author: sudlud • Posted: 2024-09-28T14:48:22.711000+00:00
Original source

it's not complicated, really
rektbyfaith
09-28-2024, 02:48 PM #33

Archived author: sudlud • Posted: 2024-09-28T14:48:22.711000+00:00
Original source

it's not complicated, really

rektbyfaith
Administrator
0
09-28-2024, 02:49 PM
#34
Archived author: Agent • Posted: 2024-09-28T14:49:46.749000+00:00
Original source

Oh it's just that the whole methodology of programming has changed since I was in the game 30 years ago. I don't even understand modern lingo, what is a hook I assume it's an event catcher like onlogin or onmapload etc
rektbyfaith
09-28-2024, 02:49 PM #34

Archived author: Agent • Posted: 2024-09-28T14:49:46.749000+00:00
Original source

Oh it's just that the whole methodology of programming has changed since I was in the game 30 years ago. I don't even understand modern lingo, what is a hook I assume it's an event catcher like onlogin or onmapload etc

rektbyfaith
Administrator
0
09-28-2024, 02:49 PM
#35
Archived author: sudlud • Posted: 2024-09-28T14:49:49.109000+00:00
Original source

then e.g. add this
rektbyfaith
09-28-2024, 02:49 PM #35

Archived author: sudlud • Posted: 2024-09-28T14:49:49.109000+00:00
Original source

then e.g. add this

rektbyfaith
Administrator
0
09-28-2024, 02:49 PM
#36
Archived author: sudlud • Posted: 2024-09-28T14:49:52.661000+00:00
Original source

```
Optional<bool> OnPlayerIsClass(Player const* /*player*/, Classes /*playerClass*/, ClassContext context)
{
if (context == CLASS_CONTEXT_CLASS_TRAINER)
return true;

return std::nullopt;
}
```
rektbyfaith
09-28-2024, 02:49 PM #36

Archived author: sudlud • Posted: 2024-09-28T14:49:52.661000+00:00
Original source

```
Optional<bool> OnPlayerIsClass(Player const* /*player*/, Classes /*playerClass*/, ClassContext context)
{
if (context == CLASS_CONTEXT_CLASS_TRAINER)
return true;

return std::nullopt;
}
```

rektbyfaith
Administrator
0
09-28-2024, 02:50 PM
#37
Archived author: sudlud • Posted: 2024-09-28T14:50:23.069000+00:00
Original source

yeah
rektbyfaith
09-28-2024, 02:50 PM #37

Archived author: sudlud • Posted: 2024-09-28T14:50:23.069000+00:00
Original source

yeah

rektbyfaith
Administrator
0
09-28-2024, 02:50 PM
#38
Archived author: sudlud • Posted: 2024-09-28T14:50:52.517000+00:00
Original source

an option to introduce your own functionality without directly editing the core itself
rektbyfaith
09-28-2024, 02:50 PM #38

Archived author: sudlud • Posted: 2024-09-28T14:50:52.517000+00:00
Original source

an option to introduce your own functionality without directly editing the core itself

rektbyfaith
Administrator
0
09-28-2024, 02:51 PM
#39
Archived author: Agent • Posted: 2024-09-28T14:51:22.233000+00:00
Original source

What if I don't mind directly editing the core? I feel that would be more straightforward for an old dog like me on such a simple mission to make trainers talk to me
rektbyfaith
09-28-2024, 02:51 PM #39

Archived author: Agent • Posted: 2024-09-28T14:51:22.233000+00:00
Original source

What if I don't mind directly editing the core? I feel that would be more straightforward for an old dog like me on such a simple mission to make trainers talk to me

rektbyfaith
Administrator
0
09-28-2024, 02:51 PM
#40
Archived author: sudlud • Posted: 2024-09-28T14:51:40.617000+00:00
Original source

sure, but with a module updating the core usually has zero issues
rektbyfaith
09-28-2024, 02:51 PM #40

Archived author: sudlud • Posted: 2024-09-28T14:51:40.617000+00:00
Original source

sure, but with a module updating the core usually has zero issues

Pages (10): Previous 1 2 3 4 5 6 10 Next  
Recently Browsing
 
Recently Browsing