[DiscordArchive] you still trying to figure out how ?
[DiscordArchive] you still trying to figure out how ?
Archived author: L2S • Posted: 2022-04-17T13:44:57.652000+00:00
Original source
etc...
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();
}
```
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
Archived author: Meistro • Posted: 2022-04-17T13:45:44.163000+00:00
Original source
this is my code btw if you are interested
Archived author: Meistro • Posted: 2022-04-17T13:46:08.544000+00:00
Original source
<@209317995057643521> thank you very much
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
Archived author: L2S • Posted: 2022-04-17T13:46:22.222000+00:00
Original source
"wurde getriggert"
Archived author: Meistro • Posted: 2022-04-17T13:46:27.451000+00:00
Original source
I think these are wrong ->> SendGossipMenuFor(plr, 1, me->GetGUID());
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
Archived author: Jinnai • Posted: 2022-04-17T13:46:43.746000+00:00
Original source
Type 2 should be correct