public static void valid(final Event e) {
   final MessageBoxControler msgBox =
       Xulor.getInstance()
           .msgBox(
               WakfuTranslator.getInstance().getString("setItemElements.question"),
               WakfuMessageBoxConstants.getMessageBoxIconUrl(0),
               2073L,
               102,
               1);
   msgBox.addEventListener(
       new MessageBoxEventListener() {
         @Override
         public void messageBoxClosed(final int type, final String userEntry) {
           if (type == 8) {
             final SelectItemElementsView elementsView = SelectItemElementsView.INSTANCE;
             final Item item = elementsView.getConcernedItem();
             final SetItemElementsRequestMessage netMsg = new SetItemElementsRequestMessage();
             netMsg.setItemUid(item.getUniqueId());
             netMsg.setDamageElementMask(
                 elementsView.getElementMask(SelectItemElementsView.DAMAGE_ACTION_ID));
             netMsg.setResElementMask(
                 elementsView.getElementMask(SelectItemElementsView.RES_ACTION_ID));
             WakfuGameEntity.getInstance().getNetworkEntity().sendMessage(netMsg);
             WakfuGameEntity.getInstance().removeFrame(UISelectItemElementsFrame.getInstance());
           }
         }
       });
 }
 public static void displayNameError(final byte errorCode) {
   String errorString = null;
   switch (errorCode) {
     case 10:
       {
         errorString = "error.characterCreation.existingName";
         break;
       }
     case 11:
       {
         errorString = "error.characterCreation.invalidName";
         break;
       }
     case 12:
       {
         errorString = "error.characterCreation.tooManyCharacters";
         break;
       }
     default:
       {
         errorString = "error.characterCreation";
         break;
       }
   }
   Xulor.getInstance()
       .msgBox(
           WakfuTranslator.getInstance().getString(errorString),
           WakfuMessageBoxConstants.getMessageBoxIconUrl(1),
           1027L,
           8,
           1);
 }