herenow Posted August 12, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 36 Reputation: 4 Joined: 02/12/12 Last Seen: January 25, 2017 Share Posted August 12, 2012 (edited) File Name: Block items from @item File Submitter: Tribbiani File Submitted: 31 Jul 2012 File Category: Source Modifications Content Author: Tribb A mod to prevent some items from being get on @item, good for full pvp servers. You can add the item, and the min gm level to bypass Instructions: 1 - Add the item_block_atcmd.txt to the db/ folder 2 - Apply the diffs. How to use: Just add line by line each item to be blocked. Item_Id, Min_gmlv_to_bypass Click here to download this file Edited September 12, 2012 by Tribbiani 1 Quote Link to comment Share on other sites More sharing options...
java Posted August 12, 2012 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 263 Reputation: 35 Joined: 12/22/11 Last Seen: 7 hours ago Share Posted August 12, 2012 1st wow.. nice ill try this btw ty Quote Link to comment Share on other sites More sharing options...
Lighta Posted August 12, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted August 12, 2012 Hi Tribbiani sound like a nice little mod but you ain't fully compatible with rAthena. Seem like you still using old gmlevel systeme instead group_id. "if(item_data->atcmd_block && sd->gmlevel < item_data->atcmd_block_minlvl)" map_session_data doesn't have gmlevel attribute see : http://rathena.org/doxygen/structmap__session__data.html Quick fix would be : "if(item_data->atcmd_block && pc_get_group_level(sd) < item_data->atcmd_block_minlvl)" Quote Link to comment Share on other sites More sharing options...
Virtue Posted August 17, 2012 Group: Members Topic Count: 92 Topics Per Day: 0.02 Content Count: 354 Reputation: 22 Joined: 11/17/11 Last Seen: May 12, 2024 Share Posted August 17, 2012 this would be nice if you could also set what items can be allowed for certain gmlevels / groups example, for an event GM she/he could only @item the items that allowed for their group. Quote Link to comment Share on other sites More sharing options...
herenow Posted August 24, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 36 Reputation: 4 Joined: 02/12/12 Last Seen: January 25, 2017 Author Share Posted August 24, 2012 1.1 - Fixed incompabibility with the new group system of rathena (still works with the old gm_level) Hi Tribbiani sound like a nice little mod but you ain't fully compatible with rAthena. Seem like you still using old gmlevel systeme instead group_id. "if(item_data->atcmd_block && sd->gmlevel < item_data->atcmd_block_minlvl)" map_session_data doesn't have gmlevel attribute see : http://rathena.org/d...sion__data.html Quick fix would be : "if(item_data->atcmd_block && pc_get_group_level(sd) < item_data->atcmd_block_minlvl)" Thanks! Fixed it, i guess. this would be nice if you could also set what items can be allowed for certain gmlevels / groups example, for an event GM she/he could only @item the items that allowed for their group. Yeah your already can, when you add a item to the db file to need to input item_id, min_group_level_to_bypass Quote Link to comment Share on other sites More sharing options...
Virtue Posted August 25, 2012 Group: Members Topic Count: 92 Topics Per Day: 0.02 Content Count: 354 Reputation: 22 Joined: 11/17/11 Last Seen: May 12, 2024 Share Posted August 25, 2012 what i meant is, only specific items will be allowed for that grup, since it would be hard to block all of it Quote Link to comment Share on other sites More sharing options...
Erba Posted March 9, 2013 Group: Members Topic Count: 84 Topics Per Day: 0.02 Content Count: 550 Reputation: 9 Joined: 11/06/12 Last Seen: August 14, 2014 Share Posted March 9, 2013 this is not compatible with r16797 T_T Quote Link to comment Share on other sites More sharing options...
Cydh Posted March 16, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted March 16, 2013 nice share, I have this on my old server too also forrefine restriction by @refine and @item2. Quote Link to comment Share on other sites More sharing options...
Erba Posted March 16, 2013 Group: Members Topic Count: 84 Topics Per Day: 0.02 Content Count: 550 Reputation: 9 Joined: 11/06/12 Last Seen: August 14, 2014 Share Posted March 16, 2013 nice share, I have this on my old server too also forrefine restriction by @refine and @item2. sir can you help me with this so that i can apply this on my revision? rathena version 16928 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.