mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 15:38:27 +00:00
[Feature] Implement OP_CashReward (#2307)
* Implement OP_CashReward Tit opcode needs verifying still, I think it's correct. Added Perl and lua client CashReward functions * Forgot AddMoneyToPP call somehow * Switch QuestManager::givecash to CashReward packet * Fix extra comma
This commit is contained in:
committed by
GitHub
parent
ce74ac9913
commit
139845f971
@@ -8798,6 +8798,20 @@ void Client::QuestReward(Mob* target, const QuestReward_Struct &reward, bool fac
|
||||
safe_delete(outapp);
|
||||
}
|
||||
|
||||
void Client::CashReward(uint32 copper, uint32 silver, uint32 gold, uint32 platinum)
|
||||
{
|
||||
auto outapp = std::make_unique<EQApplicationPacket>(OP_CashReward, sizeof(CashReward_Struct));
|
||||
auto outbuf = reinterpret_cast<CashReward_Struct *>(outapp->pBuffer);
|
||||
outbuf->copper = copper;
|
||||
outbuf->silver = silver;
|
||||
outbuf->gold = gold;
|
||||
outbuf->platinum = platinum;
|
||||
|
||||
AddMoneyToPP(copper, silver, gold, platinum);
|
||||
|
||||
QueuePacket(outapp.get());
|
||||
}
|
||||
|
||||
void Client::SendHPUpdateMarquee(){
|
||||
if (!this || !IsClient() || !current_hp || !max_hp)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user