mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 13:47:57 +00:00
Implement Corpse counting methods for global/zone-specific counting.
Global: - Perl: quest::getplayercorpsecount(uint32 char_id); - Lua: eq.get_player_corpse_count(uint32 char_id); Zone-specific: - Perl: quest::getplayercorpsecountbyzoneid(uint32 char_id, uint32 zone_id); - Lua: eq.get_player_corpse_count_by_zone_id(uint32 char_id, uint32 zone_id);
This commit is contained in:
@@ -1910,6 +1910,21 @@ bool QuestManager::summonallplayercorpses(uint32 char_id, const glm::vec4& posit
|
||||
return true;
|
||||
}
|
||||
|
||||
int QuestManager::getplayercorpsecount(uint32 char_id) {
|
||||
if (char_id > 0)
|
||||
return database.CountCharacterCorpses(char_id);
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
int QuestManager::getplayercorpsecountbyzoneid(uint32 char_id, uint32 zone_id) {
|
||||
if (char_id > 0 && zone_id > 0)
|
||||
return database.CountCharacterCorpsesByZoneID(char_id, zone_id);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32 QuestManager::getplayerburiedcorpsecount(uint32 char_id) {
|
||||
uint32 Result = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user