Bes Posted March 26 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 24 Reputation: 3 Joined: 11/30/16 Last Seen: Yesterday at 12:50 AM Share Posted March 26 Is there a way to disabled zeny via trading? Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 26 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 11 hours ago Share Posted March 26 the problem with this idea is even if you disabled zeny trading there still items , people can then use items to sell or move zeny between accounts. Quote Link to comment Share on other sites More sharing options...
0 Bes Posted March 27 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 24 Reputation: 3 Joined: 11/30/16 Last Seen: Yesterday at 12:50 AM Author Share Posted March 27 6 hours ago, sader1992 said: the problem with this idea is even if you disabled zeny trading there still items , people can then use items to sell or move zeny between accounts. yes but if you make items cost lower they cant do that anymore. Quote Link to comment Share on other sites More sharing options...
0 _Terra Posted March 27 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 170 Reputation: 55 Joined: 07/15/13 Last Seen: 5 hours ago Share Posted March 27 You can check this line in src/map/trade.cpp /** * Adds the specified amount of zeny to the trade window * This function will check if the player have enough money to do so * And if the target player have enough space for that money * @param sd : Player who's adding zeny * @param amount : zeny amount */ void trade_tradeaddzeny(map_session_data* sd, int32 amount) { map_session_data* target_sd; nullpo_retv(sd); if( !sd->state.trading || sd->state.deal_locked > 0 ) return; //Can't add stuff. if( (target_sd = map_id2sd(sd->trade_partner.id)) == nullptr ) { trade_tradecancel(sd); return; } if( amount < 0 || amount > sd->status.zeny || amount > MAX_ZENY - target_sd->status.zeny ) { // invalid values, no appropriate packet for it => abort trade_tradecancel(sd); return; } sd->deal.zeny = amount; clif_tradeadditem(sd, target_sd, 0, amount); } Quote Link to comment Share on other sites More sharing options...
0 Bes Posted March 28 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 24 Reputation: 3 Joined: 11/30/16 Last Seen: Yesterday at 12:50 AM Author Share Posted March 28 16 hours ago, _Terra said: You can check this line in src/map/trade.cpp /** * Adds the specified amount of zeny to the trade window * This function will check if the player have enough money to do so * And if the target player have enough space for that money * @param sd : Player who's adding zeny * @param amount : zeny amount */ void trade_tradeaddzeny(map_session_data* sd, int32 amount) { map_session_data* target_sd; nullpo_retv(sd); if( !sd->state.trading || sd->state.deal_locked > 0 ) return; //Can't add stuff. if( (target_sd = map_id2sd(sd->trade_partner.id)) == nullptr ) { trade_tradecancel(sd); return; } if( amount < 0 || amount > sd->status.zeny || amount > MAX_ZENY - target_sd->status.zeny ) { // invalid values, no appropriate packet for it => abort trade_tradecancel(sd); return; } sd->deal.zeny = amount; clif_tradeadditem(sd, target_sd, 0, amount); } what part do i need to edit to make it untradable Quote Link to comment Share on other sites More sharing options...
0 Angeluz Posted March 29 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: April 9 Share Posted March 29 if( amount < 0 || amount > 0 ) { // invalid values, no appropriate packet for it => abort trade_tradecancel(sd); return; } Quote Link to comment Share on other sites More sharing options...
0 Paul Posted March 30 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 43 Reputation: 2 Joined: 08/27/13 Last Seen: Friday at 11:50 AM Share Posted March 30 On 3/28/2025 at 2:54 AM, _Terra said: You can check this line in src/map/trade.cpp /** * Adds the specified amount of zeny to the trade window * This function will check if the player have enough money to do so * And if the target player have enough space for that money * @param sd : Player who's adding zeny * @param amount : zeny amount */ void trade_tradeaddzeny(map_session_data* sd, int32 amount) { map_session_data* target_sd; nullpo_retv(sd); if( !sd->state.trading || sd->state.deal_locked > 0 ) return; //Can't add stuff. if( (target_sd = map_id2sd(sd->trade_partner.id)) == nullptr ) { trade_tradecancel(sd); return; } if( amount < 0 || amount > sd->status.zeny || amount > MAX_ZENY - target_sd->status.zeny ) { // invalid values, no appropriate packet for it => abort trade_tradecancel(sd); return; } sd->deal.zeny = amount; clif_tradeadditem(sd, target_sd, 0, amount); } /** * Adds the specified amount of zeny to the trade window * This function will check if the player have enough money to do so * And if the target player have enough space for that money * @param sd : Player who's adding zeny * @param amount : zeny amount */ void trade_tradeaddzeny(map_session_data* sd, int32 amount) { // Trading is disabled return; } completely removed trading Quote Link to comment Share on other sites More sharing options...
Question
Bes
Is there a way to disabled zeny via trading?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.