Jump to content

  •  

Photo

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


  • Please log in to reply
2 replies to this topic

#1 Aaeru

Aaeru

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 25 October 2016 - 12:28 PM

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


#2 wallaby

wallaby

    Advanced Member

  • Members
  • PipPipPip
  • 77 posts

Posted 26 October 2016 - 03:18 AM

Quite easily achieved with Annie's noitem:

 

http://herc.ws/board...noitem-mapflag/

 

What it does is when the character enters the designated map(s) that have been mapflaged, it will unequip the items(s) defined.


Edited by wallaby, 26 October 2016 - 03:21 AM.


#3 Hirist

Hirist

    Advanced Member

  • Members
  • PipPipPip
  • 88 posts

Posted 26 October 2016 - 03:45 AM

Make a set for event,

Join event will be auto equip them,
unequip them = kick out






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 23 user(s)