Jump to content
  • 0

help bypass 128 limit


Question

Posted

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;
}

3 answers to this question

Recommended Posts

Posted
- 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;
}

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...