You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Solocraft.cpp
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
#include<map>
1
+
#include<map>
2
2
#include"Log.h"
3
3
#include"Config.h"
4
4
#include"ScriptMgr.h"
@@ -322,11 +322,11 @@ class SolocraftAnnounce : public PlayerScript
322
322
voidOnLogout(Player* player)
323
323
{
324
324
//Database query to see if an entry is still there
325
-
QueryResult result = CharacterDatabase.PQuery("SELECT `GUID` FROM `custom_solocraft_character_stats` WHERE GUID = %u", player->GetGUID().GetCounter());
325
+
QueryResult result = CharacterDatabase.Query("SELECT `GUID` FROM `custom_solocraft_character_stats` WHERE GUID = {}", player->GetGUID().GetCounter());
326
326
if (result)
327
327
{
328
328
//Remove database entry as the player has logged out
329
-
CharacterDatabase.PExecute("DELETE FROM custom_solocraft_character_stats WHERE GUID = %u", player->GetGUID().GetCounter());
329
+
CharacterDatabase.Execute("DELETE FROM custom_solocraft_character_stats WHERE GUID = {}", player->GetGUID().GetCounter());
330
330
}
331
331
}
332
332
};
@@ -471,15 +471,15 @@ class solocraft_player_instance_handler : public PlayerScript {
471
471
}
472
472
473
473
//Check Database for a current dungeon entry
474
-
QueryResult result = CharacterDatabase.PQuery("SELECT `GUID`, `Difficulty`, `GroupSize`, `SpellPower`, `Stats` FROM `custom_solocraft_character_stats` WHERE GUID = %u", player->GetGUID().GetCounter());
474
+
QueryResult result = CharacterDatabase.Query("SELECT `GUID`, `Difficulty`, `GroupSize`, `SpellPower`, `Stats` FROM `custom_solocraft_character_stats` WHERE GUID = {}", player->GetGUID().GetCounter());
475
475
476
476
//Modify Player Stats
477
477
for (int32 i = STAT_STRENGTH; i < MAX_STATS; ++i) //STATS defined/enum in SharedDefines.h
478
478
{
479
479
//Check for Dungeon to Dungeon Transfer and remove old buff
@@ -556,13 +556,13 @@ class solocraft_player_instance_handler : public PlayerScript {
556
556
if (itr->guid != player->GetGUID())
557
557
{
558
558
//Database query to find difficulty for each group member that is currently in an instance
559
-
QueryResult result = CharacterDatabase.PQuery("SELECT `GUID`, `Difficulty`, `GroupSize` FROM `custom_solocraft_character_stats` WHERE GUID = %u", itr->guid.GetCounter());
559
+
QueryResult result = CharacterDatabase.Query("SELECT `GUID`, `Difficulty`, `GroupSize` FROM `custom_solocraft_character_stats` WHERE GUID = {}", itr->guid.GetCounter());
560
560
if (result)
561
561
{
562
562
//Test for debuffs already give to other members - They cannot be used to determine the total offset because negative numbers will skew the total difficulty offset
0 commit comments