Jump to content
  • 0
Twiggy

Item restrictions

Question

12 answers to this question

Recommended Posts

  • 0

Check your permissions on conf/groups.conf

 

on id "99" which is the "Admin"

under permissions, you should have this:

can_trade: true

Hope this helps you.

Share this post


Link to post
Share on other sites
  • 0

Check your permissions on conf/groups.conf

 

on id "99" which is the "Admin"

under permissions, you should have this:

can_trade: true

Hope this helps you.

 

I have this but dont work, i think this option is only for trade, drop items without restriction 

 

 

override: 99

 

work it, but i make this for every item with restricion in db? i want override all items with restriction

Share this post


Link to post
Share on other sites
  • 0

An easier method , change your account  group from 99 to 100

[Warning]: pc_authok: AnnieRuru (AID:2000000) logged in with unknown group id (100)! kicking...
nope, the server kick me
{	Id: 501	AegisName: "Red_Potion"	Name: "Red Potion"	Type: 0	Buy: 50	Weight: 70	Trade: {		override: 99		nodrop: true		notrade: true	}	Script: <" itemheal rand(45,65),0; ">},
weird, I tested my GM99 can drop and trade items, but normal player can't Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

 

An easier method , change your account  group from 99 to 100

[Warning]: pc_authok: AnnieRuru (AID:2000000) logged in with unknown group id (100)! kicking...
nope, the server kick me
{	Id: 501	AegisName: "Red_Potion"	Name: "Red Potion"	Type: 0	Buy: 50	Weight: 70	Trade: {		override: 99		nodrop: true		notrade: true	}	Script: <" itemheal rand(45,65),0; ">},
weird, I tested my GM99 can drop and trade items, but normal player can't

I think that's normal  coz 99 group player can by pass that limitation,

if account group cant be changed to 100 and don't wanna edit src,

insert  all item the limitation with 'override: 99'  is needed

 

 

Share this post


Link to post
Share on other sites
  • 0

OHHH ok I understand now

 src/map/itemdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/src/map/itemdb.c b/src/map/itemdb.cindex 34db4b7..eb57026 100644--- a/src/map/itemdb.c+++ b/src/map/itemdb.c@@ -537,7 +537,7 @@ int itemdb_isstackable2(struct item_data *data)  * Trade Restriction functions [Skotlex]  *------------------------------------------*/ int itemdb_isdropable_sub(struct item_data *item, int gmlv, int unused) {-	return (item && (!(item->flag.trade_restriction&ITR_NODROP) || gmlv >= item->gm_lv_trade_override));+	return (item && (!(item->flag.trade_restriction&ITR_NODROP) || gmlv >= item->gm_lv_trade_override || gmlv >= 99)); }  int itemdb_cantrade_sub(struct item_data* item, int gmlv, int gmlv2) {
simple patch

 

hmm ... wait

this is a bug ... I think

why the PC_PERM_TRADE shows up so little in the src folder ...

oh its pc_can_give_items(sd)

 

confirm this is a bug now ...

it seems that can_trade only overwrites the nodrop/notrade mapflag,

but doesn't overwrite the item restriction flag ... hmm ...

I also dunno what to say about this

Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

@@Twiggy

You can also use Regular Expressions to insert text 'override:99' in item_db.conf

 

F: (Trade: {.*?rn)

R: 1ttoverride:99rn

 

F: (Nouse: {.*?rn)

R: 1ttoverride:99rn

Edited by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

seriously ? have you test it ?

my map-server gone crazy with errors

my data.[Warning]: itemdb_search: Item ID 6086 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7194 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 997 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1830 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4513 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 955 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 910 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 938 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 993 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 601 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1002 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 757 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4043 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 603 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 617 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 644 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2404 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2506 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2417 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2610 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4387 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6247 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 937 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1455 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 926 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 936 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 508 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 756 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4062 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 991 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 946 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 910 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 935 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 601 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 757 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1002 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4032 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 705 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 520 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 905 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 711 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 521 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2269 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4515 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 912 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1099 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7003 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 608 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 756 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4252 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7054 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2518 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2626 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7047 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 12128 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 661 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2123 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4400 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7512 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7507 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2148 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6214 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1270 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 985 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2517 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4401 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1095 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2607 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7005 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 611 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 984 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7026 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 912 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4244 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7567 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2422 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7563 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2109 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 12183 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7563 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1061 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4409 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 505 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1035 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2890 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1036 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7446 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 996 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7446 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4379 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 505 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1035 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2890 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1036 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7446 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 996 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7446 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4379 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6067 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7406 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7407 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6065 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6066 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6067 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7406 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7407 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7406 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7407 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7406 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7407 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6065 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6066 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6067 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6067 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6067 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7410 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7411 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7410 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7411 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6067 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 535 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 12192 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7225 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6658 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6804 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6804 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6804 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2267 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1062 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 664 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 546 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 12192 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6805 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6805 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6805 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 2267 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1062 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 664 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 546 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 12192 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 12192 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6914 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 12192 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 6915 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 5083 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1950 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 1750 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 7539 does not exists in the item_db. Using dummy data.[Warning]: itemdb_search: Item ID 4526 does not exists in the item_db. Using dummy data.

Share this post


Link to post
Share on other sites
  • 0

 

An easier method , change your account  group from 99 to 100

[Warning]: pc_authok: AnnieRuru (AID:2000000) logged in with unknown group id (100)! kicking...
nope, the server kick me
{	Id: 501	AegisName: "Red_Potion"	Name: "Red Potion"	Type: 0	Buy: 50	Weight: 70	Trade: {		override: 99		nodrop: true		notrade: true	}	Script: <" itemheal rand(45,65),0; ">},
weird, I tested my GM99 can drop and trade items, but normal player can't

Change gm level to 100 not group, and it will be bypassed.

Share this post


Link to post
Share on other sites
  • 0

 

 

An easier method , change your account  group from 99 to 100

[Warning]: pc_authok: AnnieRuru (AID:2000000) logged in with unknown group id (100)! kicking...
nope, the server kick me
{	Id: 501	AegisName: "Red_Potion"	Name: "Red Potion"	Type: 0	Buy: 50	Weight: 70	Trade: {		override: 99		nodrop: true		notrade: true	}	Script: <" itemheal rand(45,65),0; ">},
weird, I tested my GM99 can drop and trade items, but normal player can't

Change gm level to 100 not group, and it will be bypassed.

in hercules  seems  player's group cant be changed to 100 , read the 6th post of this thread

seriously ? have you test it ?

my map-server gone crazy with errors

I dont have tested before you tell me there are a lot of warnings(lazy XD)

 

but tested now and don't have any warnings,server load item_db.conf successfully

86b5OKaEk.png

Edited by Angelmelody

Share this post


Link to post
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
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.