ajaytrix Posted August 23, 2013 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
0 Kurag Posted September 3, 2018 Posted September 3, 2018 The normal player level is 0 cannot used the @item except restrictions item Quote
ajaytrix Posted August 26, 2013 Author Posted August 26, 2013 try http://upaste.me/raw/4014f6 This error comes up whether I'm GM 99 and below. Quote
Capuche Posted August 26, 2013 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
sotf Posted October 2, 2013 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
Lil Troll Posted October 2, 2013 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
Capuche Posted October 3, 2013 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
Erba Posted January 30, 2014 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
Erba Posted February 1, 2014 Posted February 1, 2014 im using rathena 17701.. and it doesnt work Quote
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!
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.