Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()


          player.setName(val);
          player.store();
          L2World.getInstance().addToAllPlayers(player);
         
          player.sendMessage("Your name has been changed by a GM.");
          player.broadcastUserInfo();
         
          if (player.isInParty())
          {
            // Delete party window for other party members
            player.getParty().broadcastToPartyMembers(player, new PartySmallWindowDeleteAll());
View Full Code Here


       
        player.setRecomHave(player.getRecomHave() + value);
        SystemMessage sm = new SystemMessage(SystemMessageId.GM_S1);
        sm.addString("You have been recommended by a GM");
        player.sendPacket(sm);
        player.broadcastUserInfo();
        player = null;
        sm = null;
        val = null;
       
        return true;       
View Full Code Here

            iu = new InventoryUpdate();
            iu.addRemovedItem(item);
            player.sendPacket(iu);
          }
          player.sendPacket(new UserInfo(player));
          player.broadcastUserInfo();
        }
        catch (NullPointerException e)
        {
                    /**/
                }
View Full Code Here

          if (player != activeChar)
          {
            player.sendMessage("A GM changed your class to " + newclass);
          }
         
          player.broadcastUserInfo();
          activeChar.sendMessage(player.getName() + " changed to " + newclass);
         
          newclass = null;
          return true;
        }
View Full Code Here

          sm.addString(name);
          sm.addNumber(1000);
          clan.broadcastToOnlineMembers(sm);
        }
        player.sendPacket(new UserInfo(player));
        player.broadcastUserInfo();
      }
      else
      {
        Connection con = null;
        PreparedStatement statement = null;
View Full Code Here

      else
      {
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16));
        activeChar.setNoble(true);
        activeChar.sendMessage("You Are Now a Noble,You Are Granted With Noblesse Status , And Noblesse Skills.");
        activeChar.broadcastUserInfo();
        playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
        activeChar.getInventory().addItem("Tiara", 7694, 1, activeChar, null);
      }
      activeChar = null;
    }
View Full Code Here

        player.getAppearance().setSex(player.getAppearance().getSex() ? false : true);
        L2PcInstance.setSexDB(player, 1);
        player.sendMessage("Your gender has been changed by a GM");
        player.decayMe();
        player.spawnMe(player.getX(), player.getY(), player.getZ());
        player.broadcastUserInfo();
       
        return true;
      }
      case admin_setcolor:
      {     
View Full Code Here

        }
       
        L2PcInstance player = (L2PcInstance) target;
        player.getAppearance().setNameColor(Integer.decode("0x" + val));
        player.sendMessage("Your name color has been changed by a GM");
        player.broadcastUserInfo();
        st = null;
        player = null;
        target = null;
        return true;
      }
View Full Code Here

                target.addSkill(skill);
              }
              Hero.getInstance().putHero(target, false);
            }
            target.broadcastStatusUpdate();
            target.broadcastUserInfo();
           
            if (save)
            {
              Olympiad.getInstance().saveOlympiadStatus();
            }
View Full Code Here

      {
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16));
        activeChar.setHero(true);
        updateDatabase(activeChar, Config.HERO_CUSTOM_DAY * 24L * 60L * 60L * 1000L);
        activeChar.sendMessage("You Are Now a Hero,You Are Granted With Hero Status , Skills ,Aura.");
        activeChar.broadcastUserInfo();
        playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
        activeChar.getInventory().addItem("Wings", 6842, 1, activeChar, null);
      }
      activeChar = null;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.