diff --git a/Server/src/main/content/region/kandarin/ardougne/westardougne/dialogue/CivilianDialogue.kt b/Server/src/main/content/region/kandarin/ardougne/westardougne/dialogue/CivilianDialogue.kt index dcf6f73..386b99a 100644 --- a/Server/src/main/content/region/kandarin/ardougne/westardougne/dialogue/CivilianDialogue.kt +++ b/Server/src/main/content/region/kandarin/ardougne/westardougne/dialogue/CivilianDialogue.kt @@ -124,6 +124,7 @@ class CivilianDialogue(player: Player? = null) : DialoguePlugin(player) { if (removeItem(player, cat)){ player.familiarManager.removeDetails(cat) addItem(player, Items.DEATH_RUNE_560, 100) + player.incrementAttribute("/save:stats_manager:cats_sold"); break } } @@ -169,9 +170,10 @@ class CatTrade : InteractionListener{ onUseWith(IntType.NPC, cats, NPCs.CIVILIAN_785, NPCs.CIVILIAN_786, NPCs.CIVILIAN_787){ player, used, with -> if(removeItem(player, used)){ val dialogue = CatTradeDialogue() - // Remove the cat + Remove the cat player.familiarManager.removeDetails(used.id) addItem(player, Items.DEATH_RUNE_560, 100) + player.incrementAttribute("/save:stats_manager:cats_sold"); openDialogue(player, dialogue, with as NPC) } diff --git a/Server/src/main/core/game/system/command/sets/StatAttributeKeys.kt b/Server/src/main/core/game/system/command/sets/StatAttributeKeys.kt index 431cb84..368eb68 100644 --- a/Server/src/main/core/game/system/command/sets/StatAttributeKeys.kt +++ b/Server/src/main/core/game/system/command/sets/StatAttributeKeys.kt @@ -9,6 +9,7 @@ const val STATS_ROCKS = "rocks_mined" const val STATS_RC = "essence_crafted" const val STATS_FOOD_COOKED = "food_cooked" const val STATS_CATS_RAISED = "cats_raised" +const val STATS_CATS_SOLD = "cats_sold" const val STATS_PK_KILLS = "player_kills" const val STATS_PK_DEATHS = "player_deaths" const val STATS_ALKHARID_GATE = "alkharid_gate" diff --git a/Server/src/main/core/game/system/command/sets/StatsCommandSet.kt b/Server/src/main/core/game/system/command/sets/StatsCommandSet.kt index b9b6e32..fae3b49 100644 --- a/Server/src/main/core/game/system/command/sets/StatsCommandSet.kt +++ b/Server/src/main/core/game/system/command/sets/StatsCommandSet.kt @@ -62,7 +62,7 @@ class StatsCommandSet : CommandSet(Privilege.STANDARD) { 72 -> sendLine(player,"Quest Points: ${queryPlayer.questRepository.points}",i) 73 -> sendLine(player,"Ironman Mode: ${queryPlayer.ironmanManager.mode.name.lowercase(Locale.getDefault())}",i) 74 -> sendLine(player,"Deaths: ${queryPlayer.getAttribute("$STATS_BASE:$STATS_DEATHS",0)}",i) - 75 -> sendLine(player, SPACER,i) + 75 -> sendLine(player, "Cats Sold: ${queryPlayer.getAttribute("$STATS_BASE:$STATS_CATS_SOLD", 0)}", i) 76 -> sendLine(player,"Logs Chopped: ${queryPlayer.getAttribute("$STATS_BASE:$STATS_LOGS",0)}",i) 77 -> sendLine(player,"Rocks Mined: ${queryPlayer.getAttribute("$STATS_BASE:$STATS_ROCKS",0)}",i) 78 -> sendLine(player,"Fish Caught: ${queryPlayer.getAttribute("$STATS_BASE:$STATS_FISH",0)}",i)