[DiscordArchive] guys what do u use instead of include scriptpch.h ?
[DiscordArchive] guys what do u use instead of include scriptpch.h ?
Archived author: cyberpro98 • Posted: 2024-01-14T21:52:40.860000+00:00
Original source
guys what do u use instead of include scriptpch.h ?
Archived author: Revision • Posted: 2024-01-14T22:06:42.831000+00:00
Original source
I don't even know what you're asking because it's not clear. In Lua or in C++? In C++ it's very relative and depends hugely on what you want to do. ScriptMgr.h is the usual base and then whatever else is needed to do whatever it is you want to do. In Lua it's nothing.
Archived author: cyberpro98 • Posted: 2024-01-14T22:11:09.742000+00:00
Original source
c++
Archived author: cyberpro98 • Posted: 2024-01-14T22:11:18.855000+00:00
Original source
i got errors with this module cpp file
Archived author: cyberpro98 • Posted: 2024-01-14T22:11:19.535000+00:00
Original source
https://pastebin.com/XQb05fBY
[Embed: Killstreak.cpp - Pastebin.com]
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
https://pastebin.com/XQb05fBY
![[Image: image.png?ex=690c745c&is=690b22dc&hm=256...b0a33ef7c&]](https://cdn.discordapp.com/attachments/284406375495368704/1196215084050034759/image.png?ex=690c745c&is=690b22dc&hm=2565973f1f53ce15ebc665cfd5c1636e4489f7c95ec132db8e69b2cb0a33ef7c&)
Archived author: cyberpro98 • Posted: 2024-01-14T22:11:40.687000+00:00
Original source
![[Image: image.png?ex=690c745c&is=690b22dc&hm=256...b0a33ef7c&]](https://cdn.discordapp.com/attachments/284406375495368704/1196215084050034759/image.png?ex=690c745c&is=690b22dc&hm=2565973f1f53ce15ebc665cfd5c1636e4489f7c95ec132db8e69b2cb0a33ef7c&)
Archived author: Revision • Posted: 2024-01-14T22:11:51.765000+00:00
Original source
You need ScriptMgr.h and Player.h to begin with
tring conf_path = _CONF_DIR;
tring cfg_file = conf_path + "/mod_killstreak.conf";
tring cfg_file_2 = cfg_file + ".dist";Archived author: Revision • Posted: 2024-01-14T22:14:16.422000+00:00
Original source
The way config is loaded is pointless as worldserver will automatically load a modules config. This can be removed:
```cpp
std:
tring conf_path = _CONF_DIR;
std:
tring cfg_file = conf_path + "/mod_killstreak.conf";
std:
tring cfg_file_2 = cfg_file + ".dist";
sConfigMgr->LoadMore(cfg_file_2.c_str());
sConfigMgr->LoadMore(cfg_file.c_str());
```
GetIntDefault, GetBoolDefault and the like is deprecated too.
Archived author: cyberpro98 • Posted: 2024-01-14T22:17:04.899000+00:00
Original source
okay
Archived author: cyberpro98 • Posted: 2024-01-14T22:17:17.173000+00:00
Original source
GetIntDefault, GetBoolDefault and the like is deprecated too. this isnt giving me any error