Jump to content

Block items from @item


herenow

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   4
  • Joined:  02/12/12
  • Last Seen:  

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 by Tribbiani
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  251
  • Reputation:   20
  • Joined:  12/22/11
  • Last Seen:  

1st

wow.. nice ill try this :) btw ty

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

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)"

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   4
  • Joined:  02/12/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

what i meant is, only specific items will be allowed for that grup, since it would be hard to block all of it

Link to comment
Share on other sites

  • 6 months later...

  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

this is not compatible with r16797 T_T

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

nice share, I have this on my old server too also forrefine restriction by @refine and @item2. :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

nice share, I have this on my old server too also forrefine restriction by @refine and @item2. :D

 

sir can you help me with this so that i can apply this on my revision?

rathena version 16928

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...