-
Notifications
You must be signed in to change notification settings - Fork 1
/
chatspam.h
51 lines (44 loc) · 2.07 KB
/
chatspam.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
void (*SendChatMessage)(void *instance, _monoString *message);
void (*old_LobbyGlobalChatUpdate)(void *instance);
void LobbyGlobalChatUpdate(void *instance)
{
if(instance != nullptr)
{
if(isGlobalChatSpam)
{
for(int Message = 1; Message < 8; Message++)
{
switch (Message)
{
case 1:
SendChatMessage(instance, CreateMonoString(OBFUSCATE("Polarmods is here!")));
break;
case 2:
SendChatMessage(instance, CreateMonoString(OBFUSCATE("Polarmods is on top.")));
break;
case 3:
SendChatMessage(instance, CreateMonoString(OBFUSCATE("Visit Polarmods.com for android modding tutorials, mods, and more!")));
break;
case 4:
SendChatMessage(instance, CreateMonoString(OBFUSCATE("Be a part of the best community today at Polarmods.com :)")));
break;
case 5:
SendChatMessage(instance, CreateMonoString(OBFUSCATE("This game has no anticheat, even Axey can mod it xD")));
break;
case 6:
SendChatMessage(instance, CreateMonoString(OBFUSCATE("Do the thing you wanted to do today, instead of pushing it to the next day. Just do it!")));
break;
case 7:
SendChatMessage(instance, CreateMonoString(OBFUSCATE("Join our discord! discord.gg/QCpzqjtcUB")));
break;
}
}
}
}
old_LobbyGlobalChatUpdate(instance);
}
void Hooks()
{
hook((void*)offsets->LobbyGlobalChatUpdate, (void*)LobbyGlobalChatUpdate, (void**)&old_LobbyGlobalChatUpdate); //Update (CombatMaster.View.UI.Lobby.LobbyGlobalChat)
SendChatMessage = (void(*)(void*, _monoString*))offsets->isGlobalChatMessage; //SendGlobalMessage (CombatMaster.View.UI.Lobby.LobbyGlobalChat)
}