maynard Posted March 28, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Share Posted March 28, 2012 This is created by Emistry and it works fine for me. How can I bypass the 128 limit because I put so many that it over lap the first 1. - script Sample -1,{ OnWhisperGlobal: if( getgmlevel() < 40 ) end; mes "Please insert the Item ID"; input .@ItemID; for( set .@i,0; .@i < getarraysize( .Forbidden ); set .@i,.@i + 1 ) if( .@ItemID == .Forbidden[.@i] && getgmlevel() <= .MinGMLevel ){ mes "Sorry you cant create this item."; close; } mes "Input the Amount"; input .@Amount; mes "DOne."; getitem .@ItemID,.@Amount; close; OnInit: set .MinGMLevel,50; setarray .Forbidden[0],501,502,503; end; } Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted March 28, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted March 28, 2012 - script Sample -1,{ OnWhisperGlobal: if( getgmlevel() < 40 ) end; mes "Please insert the Item ID"; input .@ItemID; set .@size,getarraysize(.Forbidden); for( set .@i,0; .@i < .@size; set .@i,.@i + 1 ) if( (.@ItemID == .Forbidden[.@i] && getgmlevel() <= .MinGMLevel) || (.@ItemID == .Forbidden2[.@i] && getgmlevel() <= .MinGMLevel) ){ mes "Sorry you cant create this item."; close; } mes "Input the Amount"; input .@Amount; mes "DOne."; getitem .@ItemID,.@Amount; close; OnInit: set .MinGMLevel,50; setarray .Forbidden[0],501,502,503....128 elements; setarray .Forbidden2[0],504,505,506; end; } Quote Link to comment Share on other sites More sharing options...
maynard Posted March 28, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Author Share Posted March 28, 2012 nice, thank you very much. your a life saver.Its working. If by chance if get to the limit again, How can I add more? Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 28, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Saturday at 07:13 PM Share Posted March 28, 2012 edit the condition checking if( getgmlevel() <= .MinGMLevel && ( .@ItemID == .Forbidden1[.@i] || .@ItemID == .Forbidden2[.@i] || .@ItemID == .Forbidden3[.@i] )){ Array setarray .Forbidden1[0],501,502,503; setarray .Forbidden2[0],501,502,503; setarray .Forbidden3[0],504,505,506; or you can try this [ Pastebin ] Forbid GM Create Item from NPC Quote Link to comment Share on other sites More sharing options...
Question
maynard
This is created by Emistry and it works fine for me. How can I bypass the 128 limit because I put so many that it over lap the first 1.
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.