viewing paste check_cashpoints | Diff

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
 src/map/battle.c | 8 ++++++++
 1 file changed, 8 insertions(+)
 
diff --git a/src/map/battle.c b/src/map/battle.c
index e9e1770..9cb374c 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -6000,6 +6000,14 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
    if( (s_bl = battle->get_master(src)) == NULL )
        s_bl = src;
 
+   if ( s_bl->type == BL_PC && t_bl->type == BL_PC ) {
+       TBL_PC *sd = BL_CAST(BL_PC, s_bl);
+       TBL_PC *pl_sd = BL_CAST(BL_PC, t_bl);
+       char aaa[255];
+       sprintf( aaa, "You have %d cashpoint and your target [%s] has %d cashpoint", pc_readaccountreg( sd, script->add_str("#CASHPOINTS") ), pl_sd->status.name, pc_readaccountreg( pl_sd, script->add_str("#CASHPOINTS") ) );
+       clif->message( sd->fd, aaa );
+   }
+
    if ( s_bl->type == BL_PC ) {
        switch( t_bl->type ) {
            case BL_MOB: // Source => PC, Target => MOB
 
Viewed 1213 times, submitted by AnnieRuru.