Skip to content

Commit

Permalink
移除"星团长"代码
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinZhu committed Dec 28, 2023
1 parent 86fb5c7 commit 0ff0096
Showing 1 changed file with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ class instance_trial_of_the_crusader : public InstanceMapScript
if (data == DONE)
{
ResetPlayerCooldown();//击杀后清除技能CD
//StarLeaderpoint(true);//击杀后增加团长分数测试==================================================================================================================<<
northrendBeastsMask = 0;
EncounterStatus = NOT_STARTED;
InstanceProgress = INSTANCE_PROGRESS_BEASTS_DEAD;
Expand Down Expand Up @@ -512,7 +511,6 @@ class instance_trial_of_the_crusader : public InstanceMapScript
else if( data == DONE )
{
ResetPlayerCooldown();//击杀后清除技能CD
//StarLeaderpoint(true);//击杀后增加团长分数测试==================================================================================================================<<
Counter = 0;
EncounterStatus = NOT_STARTED;
InstanceProgress = INSTANCE_PROGRESS_DONE;
Expand Down Expand Up @@ -583,40 +581,6 @@ class instance_trial_of_the_crusader : public InstanceMapScript
}
}

void StarLeaderpoint(bool rankleader)//团长计分
{
Map::PlayerList const& players = instance->GetPlayers();
if (!players.IsEmpty())//检测玩家列表
if (Player* player = players.begin()->GetSource())
{
if (player->GetGroup())//队伍检测
{
Player* leader = player->GetGroup()->GetLeader();//获取队长
int point = 1;
int diff = 0;

if (leader->GetMap()->Is25ManRaid())
{
point = 3;
diff += 1;
}
if (leader->GetMap()->IsHeroic())
{
point = point * 2;
diff += 2;
}
//leader->GetGUID().GetCounter()
QueryResult result = CharacterDatabase.Query("INSERT INTO _star_instance (accid, name, instance, diff, point) VALUES ({}, '{}', {}, {}, {})", leader->GetSession()->GetAccountId(), leader->GetName().c_str(), leader->GetInstanceId(), diff, point);
ChatHandler(leader->GetSession()).PSendSysMessage("[星团长] |cff00CC00BOSS击杀完成,增加星团长点数%d.|r", point);
//下一步增加查分
if (rankleader)
leader->SummonCreature(80032, 678.624f, 135.0f, 142.127f, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 300000);//开团结算NPC
}
}

}


uint32 GetData(uint32 type) const override
{
switch( type )
Expand Down

0 comments on commit 0ff0096

Please sign in to comment.