Jump to content
  • 0

@request Item Deny


Apai

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  06/29/13
  • Last Seen:  

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

I think this can be done through script. This have been made 5 days ago by @Emistry. Would you give it a try? :D

-    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] );
        .@quantity = atoi( .@atcmd_parameters$[1] );
        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 ){
            getitem .@itemid,.@quantity;
        }
    }
    end;
}

EDIT : Reference can be found here

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   12
  • Joined:  03/07/12
  • Last Seen:  

I think we already have this @item restriction at the download source area. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  06/29/13
  • Last Seen:  

thanks all

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...