Promise Posted August 31, 2015 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 386 Reputation: 38 Joined: 04/28/13 Last Seen: March 22, 2024 Share Posted August 31, 2015 Hi everyone, this is my 2nd free source release for rAthena. - By PromisE - v1.0 - GMs Ignore necessary distance to trade - Broadcast on GM trade (group_id > 1 || < 99 -- Normal Players and admins dont send broadcast on trade.) Apply Guide: Open src/map/trade.c 1.- find: // Players can not request trade from far away, unless they are allowed to use @trade. if (!pc_can_use_command(sd, "trade", COMMAND_ATCOMMAND) && (sd->bl.m != target_sd->bl.m || !check_distance_bl(&sd->bl, &target_sd->bl, TRADE_DISTANCE))) { clif_tradestart(sd, 0); // too far return ; } 2.- Replace to: // Players can not request trade from far away, unless they are allowed to use @trade. // 1.0 GMS ignore distance limit [PromisE] // 1.1 Broadcast on GM trade [PromisE] if ( pc_get_group_level(sd) <= 50 && !pc_can_use_command(sd, "trade", COMMAND_ATCOMMAND) && (sd->bl.m != target_sd->bl.m || !check_distance_bl(&sd->bl, &target_sd->bl, TRADE_DISTANCE))) { clif_tradestart(sd, 0); // too far return ; } if (pc_get_group_level(sd) >= 1 && pc_get_group_level(sd) < 99) { npc_event(sd,"TradeSecure::OnSettings",0); target_sd->trade_partner = sd->status.account_id; sd->trade_partner = target_sd->status.account_id; clif_traderequest(target_sd, sd->status.name); return ; } 3.- Then download the npc file and add it. *Remember to compile after edit trade.c ScreenShots: http://prntscr.com/8aujig tradesecure.txt 1 Quote Link to comment Share on other sites More sharing options...
manuel Posted October 8, 2019 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 48 Reputation: 2 Joined: 03/19/14 Last Seen: April 16 Share Posted October 8, 2019 error npc_event(sd,"TradeSecure::OnSettings",0); compile ... last version. ^^ Quote Link to comment Share on other sites More sharing options...
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.