Skip to content

Commit

Permalink
Add on the safe side preservation
Browse files Browse the repository at this point in the history
  • Loading branch information
SeT committed Sep 23, 2011
1 parent 6ba6a30 commit e4cc55d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/scripts/Custom/npc_bonuses.cpp
Expand Up @@ -143,6 +143,7 @@ class npc_bonuses : public CreatureScript
}
pCreature->MonsterWhisper(GOSSIP_SUCCESS, pPlayer->GetGUID());
pPlayer->SetAtLoginFlag(AT_LOGIN_CHANGE_RACE);
pPlayer->SaveToDB();
pPlayer->PlayerTalkClass->SendCloseGossip();
return true;
case ACTION_RENAME:
Expand All @@ -156,6 +157,7 @@ class npc_bonuses : public CreatureScript
}
pCreature->MonsterWhisper(GOSSIP_SUCCESS, pPlayer->GetGUID());
pPlayer->SetAtLoginFlag(AT_LOGIN_RENAME);
pPlayer->SaveToDB();
pPlayer->PlayerTalkClass->SendCloseGossip();
return true;
case ACTION_GOLD:
Expand All @@ -169,6 +171,7 @@ class npc_bonuses : public CreatureScript
}
pCreature->MonsterWhisper(GOSSIP_SUCC_BUY, pPlayer->GetGUID());
pPlayer->SetMoney(pPlayer->GetMoney() + 1000 * 100 * 100);
pPlayer->SaveToDB();
pPlayer->PlayerTalkClass->SendCloseGossip();
return true;
}
Expand Down Expand Up @@ -231,6 +234,7 @@ class npc_bonuses : public CreatureScript

pCreature->MonsterWhisper(GOSSIP_SUCC_BUY, pPlayer->GetGUID());
pPlayer->AddItem(it.id, 1);
pPlayer->SaveToDB();
pPlayer->PlayerTalkClass->SendCloseGossip();
}

Expand Down

0 comments on commit e4cc55d

Please sign in to comment.