Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] you still trying to figure out how ?

[DiscordArchive] you still trying to figure out how ?

[DiscordArchive] you still trying to figure out how ?

Pages (9): Previous 1 2 3 4 5 9 Next  
rektbyfaith
Administrator
0
04-17-2022, 01:44 PM
#21
Archived author: L2S • Posted: 2022-04-17T13:44:57.652000+00:00
Original source

etc...
rektbyfaith
04-17-2022, 01:44 PM #21

Archived author: L2S • Posted: 2022-04-17T13:44:57.652000+00:00
Original source

etc...

rektbyfaith
Administrator
0
04-17-2022, 01:45 PM
#22
Archived author: Meistro • Posted: 2022-04-17T13:45:31.121000+00:00
Original source

```cpp

class Teleport_or_summon : public GameObjectScript
{
public:
Teleport_or_summon() : GameObjectScript("Teleport_or_summon") { std::cout << "Teleport and Summon has been loaded successfully" << std::endl; }

struct Teleport_or_summonAI : public GameObjectAI
{
Teleport_or_summonAI(GameObject* go) : GameObjectAI(go) {}

bool OnGossipHello(Player* plr) override
{
std::cout << "Console wurde getriggert" << std::endl;

AddGossipItemFor(plr, 1, "|TInterface\\icons\\spell_holy_powerinfusion:35:35:-23:0|t Leveling Area", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 201);

/*plr->PlayerTalkClass->SendGossipMenu(1, me->GetGUID());*/

SendGossipMenuFor(plr, 1, me->GetGUID());
return false;
}

//bool OnGossipSelect(Player* plr, uint32 /*menuId*/, uint32 uiAction) override
//{
//
// return true;
//}
};

GameObjectAI* GetAI(GameObject* go) const override
{
return new Teleport_or_summonAI(go);
}
};

void AddSC_Teleport_or_summon() // Add to scriptloader normaly
{
new Teleport_or_summon();
}
```
rektbyfaith
04-17-2022, 01:45 PM #22

Archived author: Meistro • Posted: 2022-04-17T13:45:31.121000+00:00
Original source

```cpp

class Teleport_or_summon : public GameObjectScript
{
public:
Teleport_or_summon() : GameObjectScript("Teleport_or_summon") { std::cout << "Teleport and Summon has been loaded successfully" << std::endl; }

struct Teleport_or_summonAI : public GameObjectAI
{
Teleport_or_summonAI(GameObject* go) : GameObjectAI(go) {}

bool OnGossipHello(Player* plr) override
{
std::cout << "Console wurde getriggert" << std::endl;

AddGossipItemFor(plr, 1, "|TInterface\\icons\\spell_holy_powerinfusion:35:35:-23:0|t Leveling Area", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 201);

/*plr->PlayerTalkClass->SendGossipMenu(1, me->GetGUID());*/

SendGossipMenuFor(plr, 1, me->GetGUID());
return false;
}

//bool OnGossipSelect(Player* plr, uint32 /*menuId*/, uint32 uiAction) override
//{
//
// return true;
//}
};

GameObjectAI* GetAI(GameObject* go) const override
{
return new Teleport_or_summonAI(go);
}
};

void AddSC_Teleport_or_summon() // Add to scriptloader normaly
{
new Teleport_or_summon();
}
```

rektbyfaith
Administrator
0
04-17-2022, 01:45 PM
#23
Archived author: M'Dic • Posted: 2022-04-17T13:45:41.760000+00:00
Original source

im not entirely certain how game object gossips are scripted. but i would see if i can find one as a example first then compare the db side of things
rektbyfaith
04-17-2022, 01:45 PM #23

Archived author: M'Dic • Posted: 2022-04-17T13:45:41.760000+00:00
Original source

im not entirely certain how game object gossips are scripted. but i would see if i can find one as a example first then compare the db side of things

rektbyfaith
Administrator
0
04-17-2022, 01:45 PM
#24
Archived author: Meistro • Posted: 2022-04-17T13:45:44.163000+00:00
Original source

this is my code btw if you are interested
rektbyfaith
04-17-2022, 01:45 PM #24

Archived author: Meistro • Posted: 2022-04-17T13:45:44.163000+00:00
Original source

this is my code btw if you are interested

rektbyfaith
Administrator
0
04-17-2022, 01:46 PM
#25
Archived author: Meistro • Posted: 2022-04-17T13:46:08.544000+00:00
Original source

<@209317995057643521> thank you very much
rektbyfaith
04-17-2022, 01:46 PM #25

Archived author: Meistro • Posted: 2022-04-17T13:46:08.544000+00:00
Original source

<@209317995057643521> thank you very much

rektbyfaith
Administrator
0
04-17-2022, 01:46 PM
#26
Archived author: M'Dic • Posted: 2022-04-17T13:46:10.960000+00:00
Original source

oh i been a bit preoccupied with the anticheat update project
rektbyfaith
04-17-2022, 01:46 PM #26

Archived author: M'Dic • Posted: 2022-04-17T13:46:10.960000+00:00
Original source

oh i been a bit preoccupied with the anticheat update project

rektbyfaith
Administrator
0
04-17-2022, 01:46 PM
#27
Archived author: L2S • Posted: 2022-04-17T13:46:22.222000+00:00
Original source

"wurde getriggert"
rektbyfaith
04-17-2022, 01:46 PM #27

Archived author: L2S • Posted: 2022-04-17T13:46:22.222000+00:00
Original source

"wurde getriggert"

rektbyfaith
Administrator
0
04-17-2022, 01:46 PM
#28
Archived author: Meistro • Posted: 2022-04-17T13:46:27.451000+00:00
Original source

I think these are wrong ->> SendGossipMenuFor(plr, 1, me->GetGUID());
rektbyfaith
04-17-2022, 01:46 PM #28

Archived author: Meistro • Posted: 2022-04-17T13:46:27.451000+00:00
Original source

I think these are wrong ->> SendGossipMenuFor(plr, 1, me->GetGUID());

rektbyfaith
Administrator
0
04-17-2022, 01:46 PM
#29
Archived author: M'Dic • Posted: 2022-04-17T13:46:27.615000+00:00
Original source

but there is usually atleast one example u can find in the source. atleast with my experience
rektbyfaith
04-17-2022, 01:46 PM #29

Archived author: M'Dic • Posted: 2022-04-17T13:46:27.615000+00:00
Original source

but there is usually atleast one example u can find in the source. atleast with my experience

rektbyfaith
Administrator
0
04-17-2022, 01:46 PM
#30
Archived author: Jinnai • Posted: 2022-04-17T13:46:43.746000+00:00
Original source

Type 2 should be correct
rektbyfaith
04-17-2022, 01:46 PM #30

Archived author: Jinnai • Posted: 2022-04-17T13:46:43.746000+00:00
Original source

Type 2 should be correct

Pages (9): Previous 1 2 3 4 5 9 Next  
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)