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
@@ -453,7 +453,7 @@ class solocraft_player_instance_handler : public PlayerScript {
453
453
}
454
454
455
455
//Check Database for a current dungeon entry
456
-
QueryResult result = CharacterDatabase.PQuery("SELECT `GUID`, `Difficulty`, `GroupSize`, `SpellPower`, `Stats` FROM `custom_solocraft_character_stats` WHERE GUID = {}", player->GetGUID());
456
+
QueryResult result = CharacterDatabase.PQuery("SELECT `GUID`, `Difficulty`, `GroupSize`, `SpellPower`, `Stats` FROM `custom_solocraft_character_stats` WHERE GUID = {}", player->GetGUID().GetCounter());
457
457
458
458
//Modify Player Stats
459
459
for (int32 i = STAT_STRENGTH; i < MAX_STATS; ++i) //STATS defined/enum in SharedDefines.h
@@ -499,7 +499,7 @@ class solocraft_player_instance_handler : public PlayerScript {
499
499
ChatHandler(player->GetSession()).PSendSysMessage("|cffFF0000[SoloCraft] |cffFF8000 Player: %s entered %s - | cffFF0000BE ADVISED - You have been debuffed by offset : %f with a Class Balance Weight : %i. | cffFF8000 A group member already inside has the dungeon's full buff offset. No Spellpower buff will be applied to spell casters. ALL group members must exit the dungeon and re-enter to receive a balanced offset.", player->GetName().c_str(), map->GetMapName(), difficulty, classBalance);
@@ -528,7 +528,7 @@ class solocraft_player_instance_handler : public PlayerScript {
528
528
if (itr->guid != player->GetGUID())
529
529
{
530
530
//Database query to find difficulty for each group member that is currently in an instance
531
-
QueryResult result = CharacterDatabase.PQuery("SELECT `GUID`, `Difficulty`, `GroupSize` FROM `custom_solocraft_character_stats` WHERE GUID = {}", itr->guid);
531
+
QueryResult result = CharacterDatabase.PQuery("SELECT `GUID`, `Difficulty`, `GroupSize` FROM `custom_solocraft_character_stats` WHERE GUID = {}", itr->guid.GetCounter());
532
532
if (result)
533
533
{
534
534
//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
@@ -546,7 +546,7 @@ class solocraft_player_instance_handler : public PlayerScript {
546
546
voidClearBuffs(Player* player, Map* map)
547
547
{
548
548
//Database query to get offset from the last instance player exited
549
-
QueryResult result = CharacterDatabase.PQuery("SELECT `GUID`, `Difficulty`, `GroupSize`, `SpellPower`, `Stats` FROM `custom_solocraft_character_stats` WHERE GUID = {}", player->GetGUID());
549
+
QueryResult result = CharacterDatabase.PQuery("SELECT `GUID`, `Difficulty`, `GroupSize`, `SpellPower`, `Stats` FROM `custom_solocraft_character_stats` WHERE GUID = {}", player->GetGUID().GetCounter());
550
550
if (result)
551
551
{
552
552
float difficulty = (*result)[1].GetFloat();
@@ -565,7 +565,7 @@ class solocraft_player_instance_handler : public PlayerScript {
0 commit comments