ajaytrix Posted August 23, 2013 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 84 Reputation: 0 Joined: 03/29/12 Last Seen: February 15, 2017 Share Posted August 23, 2013 Good day rA! Requesting for this script. A script that restricts specific item when using @item. Case: Example: Restricted @item : 607, 7227, Apple, etc. Only GM with this level = prefer GM 99 can override the restricted item. GM Below 99 cannot @item the said restricted item. Thanks! Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 23, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 17 hours ago Share Posted August 23, 2013 try http://upaste.me/raw/4014f6 Quote Link to comment Share on other sites More sharing options...
0 Kurag Posted September 3, 2018 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 31 Reputation: 0 Joined: 05/31/13 Last Seen: April 1, 2023 Share Posted September 3, 2018 The normal player level is 0 cannot used the @item except restrictions item Quote Link to comment Share on other sites More sharing options...
ajaytrix Posted August 26, 2013 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 84 Reputation: 0 Joined: 03/29/12 Last Seen: February 15, 2017 Author Share Posted August 26, 2013 try http://upaste.me/raw/4014f6 This error comes up whether I'm GM 99 and below. Quote Link to comment Share on other sites More sharing options...
Capuche Posted August 26, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted August 26, 2013 It may be an issue. Replace the 2 OnAtCommand by OnAtcommand Also replace if( getitemname( .@itemid ) != "" && .@quantity ){ by if( getitemname( .@itemid ) != "null" && .@quantity ){ getitemname return "null" for an non-existent item EDIT wth I post after your report and my post is above your xD Quote Link to comment Share on other sites More sharing options...
snaked2012 Posted September 25, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 05/16/12 Last Seen: June 29, 2016 Share Posted September 25, 2013 script doesnt working Quote Link to comment Share on other sites More sharing options...
sotf Posted October 2, 2013 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 173 Reputation: 9 Joined: 11/14/12 Last Seen: June 7, 2023 Share Posted October 2, 2013 (edited) I tried this script, I can't @item any item haha. I removed the script, and the effect is still there haha now I can't @item anything fixed my problem with: - script unbinditem -1,{OnInit:unbindatcmd "item";} I REALLY do hope that there's a working script that works like this :/ Edited October 2, 2013 by orochimakoto Quote Link to comment Share on other sites More sharing options...
Lil Troll Posted October 2, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Share Posted October 2, 2013 I tried this script, I can't @item any item haha. I removed the script, and the effect is still there haha now I can't @item anything Tried removing it from conf and reloading the script? Quote Link to comment Share on other sites More sharing options...
Capuche Posted October 3, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted October 3, 2013 - 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] ); 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 = atoi( .@atcmd_parameters$[1] ); if ( .@quantity < 1 ) .@quantity = 1; getitem .@itemid,.@quantity; } } end; } Quote Link to comment Share on other sites More sharing options...
Erba Posted January 30, 2014 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 January 30, 2014 - 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] ); 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 = atoi( .@atcmd_parameters$[1] ); if ( .@quantity < 1 ) .@quantity = 1; getitem .@itemid,.@quantity; } } end; } still not able to use @item even with GM LVL 99 , using latest SVN bump bump buuuuuuump need help Quote Link to comment Share on other sites More sharing options...
Capuche Posted January 31, 2014 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted January 31, 2014 it's working for me... Quote Link to comment Share on other sites More sharing options...
Erba Posted February 1, 2014 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 February 1, 2014 im using rathena 17701.. and it doesnt work Quote Link to comment Share on other sites More sharing options...
Question
ajaytrix
Good day rA!
Requesting for this script.
A script that restricts specific item when using @item.
Case:
Example:
Restricted @item : 607, 7227, Apple, etc.
Only GM with this level = prefer GM 99 can override the restricted item.
GM Below 99 cannot @item the said restricted item.
Thanks!
Link to comment
Share on other sites
11 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.