Jump to content
  • 0

help bypass 128 limit


maynard

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites

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.

×
×
  • Create New...