Jump to content
  • 0

Removing announce in pvp points shop


Question

2 answers to this question

Recommended Posts

  • 1
Posted (edited)
1 hour ago, Get Backers said:

Hello anyone how to remove announce in pvp points shop 

shop.png

You posted in a wrong Category. it should be in "Source Request"


Didn't test in-game. i just checked from the repo it should be simple.
Locate / Find: src/map/npc.cpp
Find:
case NPCTYPE_POINTSHOP: (Line: 1834)

		case NPCTYPE_POINTSHOP:
			if (display) {
				char output[CHAT_SIZE_MAX];

				memset(output, '\0', sizeof(output));

				sprintf(output, msg_txt(sd, 715), nd->u.shop.pointshop_str); // Point Shop List: '%s'
				clif_broadcast(&sd->bl, output, strlen(output) + 1, BC_BLUE,SELF);
			}
			
			cost[0] = static_cast<int>(pc_readreg2(sd, nd->u.shop.pointshop_str));
			break;
	}
}

Replaced:
-   (REMOVED)
+  (ADD)

- sprintf(output, msg_txt(sd, 715), nd->u.shop.pointshop_str); // Point Shop List: '%s'
+ //sprintf(output, msg_txt(sd, 715), nd->u.shop.pointshop_str); // Point Shop List: '%s'

 

Final Output:

		case NPCTYPE_POINTSHOP:
			if (display) {
				char output[CHAT_SIZE_MAX];

				memset(output, '\0', sizeof(output));

				//sprintf(output, msg_txt(sd, 715), nd->u.shop.pointshop_str); // Point Shop List: '%s'
				clif_broadcast(&sd->bl, output, strlen(output) + 1, BC_BLUE,SELF);
			}
			
			cost[0] = static_cast<int>(pc_readreg2(sd, nd->u.shop.pointshop_str));
			break;
	}
}

 

Recompile your "Emulator"

./configure && make clean && make server


 

Edited by Royr
  • Upvote 1
  • Like 1
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...