Jump to content
  • 0
Sign in to follow this  
Aaeru

Disable/restrict all items in-game with a few exceptions?

Question

Hello dear community,

 

I was wondering if someone could aid me with a issue I've been trying to figure out. On a server I work for, we try to host a novice-only event. Only level 1/1 novices may join and they can only bring the default novice equipment that can be purchased in one of the NPCs.

 

I know how to do the level/job check, so where I get stuck is, how do I put a check in the entrance NPC that doesn't allow a character to pass with any item (other than the default novice equips)? This is as far as I got... it probably makes no sense at all. :P

 

Thank you!

 

 

Note: In the following script, the IDs stated should be the ALLOWED ones.

 

 

    getinventorylist; 
    for(set .@i,0; .@i < getarraysize(@inventorylist_id); .@i++){
        if(@inventorylist_id[.@i] != 2510 && @inventorylist_id[.@i] != 2340 && @inventorylist_id[.@i] != 5055 && @inventorylist_id[.@i] != 2112 && @inventorylist_id[.@i] != 1243 && @inventorylist_id[.@i] != 2414 && @inventorylist_id[.@i] != 2352){
 
            mes .npc$;
            mes "I'm sorry, you're not allowed to carry/wear any items other than the Novice NPC Gear.";
            close;    
            }
        }

Share this post


Link to post
Share on other sites

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

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.