Apai Posted August 28, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 19 Reputation: 0 Joined: 06/29/13 Last Seen: June 10, 2014 Share Posted August 28, 2013 hello can i request item_deny like this http://www.eathena.ws/board/index.php?showtopic=226355&st=0&p=1233284entry1233284 Quote Link to comment Share on other sites More sharing options...
Patskie Posted August 28, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: November 10, 2024 Share Posted August 28, 2013 I think this can be done through script. This have been made 5 days ago by @Emistry. Would you give it a try? - script atcmd_example -1,{ OnInit: bindatcmd "item",strnpcinfo(3)+"::OnAtCommand"; setarray .item_restrict, 607, 7227; .item_restrict_size = getarraysize( .item_restrict ); end; OnAtCommand: .@gmlevel = getgmlevel(); if( .@gmlevel && .@atcmd_numparameters ){ .@itemid = atoi( .@atcmd_parameters$[0] ); .@quantity = atoi( .@atcmd_parameters$[1] ); if( .@gmlevel < 99 ){ for( .@i = 0; .@i < .item_restrict_size; .@i++ ) if( .@itemid == .item_restrict[.@i] ){ message strcharinfo(0),"Cant create this items."; end; } } if( getitemname( .@itemid ) != "null" && .@quantity ){ getitem .@itemid,.@quantity; } } end; } EDIT : Reference can be found here Quote Link to comment Share on other sites More sharing options...
Yummy Posted August 28, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 236 Reputation: 12 Joined: 03/07/12 Last Seen: March 6 Share Posted August 28, 2013 I think we already have this @item restriction at the download source area. Quote Link to comment Share on other sites More sharing options...
Apai Posted August 28, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 19 Reputation: 0 Joined: 06/29/13 Last Seen: June 10, 2014 Author Share Posted August 28, 2013 thanks all Quote Link to comment Share on other sites More sharing options...
Question
Apai
hello can i request item_deny like this
http://www.eathena.ws/board/index.php?showtopic=226355&st=0&p=1233284entry1233284
Link to comment
Share on other sites
3 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.