Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.SystemMessage.addString()


                            target.sendPacket(sm);
                        }
                        else
                        {
                            SystemMessage sm = new SystemMessage(SystemMessageId.S1_WAS_UNAFFECTED_BY_S2);
                            sm.addString(target.getName());
                            sm.addSkillName(skill.getDisplayId());
                            activeChar.sendPacket(sm);
                        }
                  }
                }
View Full Code Here


                           else
                            player.setCurrentHp(player.getCurrentHp() - damage);
                  }

                      SystemMessage smsg = new SystemMessage(SystemMessageId.S1_GAVE_YOU_S2_DMG);
                      smsg.addString(activeChar.getName());
                      smsg.addNumber(damage);
                      player.sendPacket(smsg);

                }
                else
View Full Code Here

  {
    if (getClient().getActiveChar() == null)
        return;
    getClient().getActiveChar().deleteMacro(_id);
      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      sm.addString("Delete macro id="+_id);
    sendPacket(sm);
    sm = null;
  }

  /* (non-Javadoc)
 
View Full Code Here

                    //  continue;

                    if (targetChar.isAlikeDead())
                    {
                      SystemMessage sm = new SystemMessage(SystemMessageId.S1_IS_DEAD_AT_THE_MOMENT_AND_CANNOT_BE_SUMMONED);
                      sm.addString(targetChar.getName());
                      activeChar.sendPacket(sm);
                      continue;
                    }

                    if (targetChar.isInStoreMode())
View Full Code Here

                    }

                    if (targetChar.isInStoreMode())
                    {
                      SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_TRADING_OR_OPERATING_PRIVATE_STORE_AND_CANNOT_BE_SUMMONED);
                      sm.addString(targetChar.getName());
                      activeChar.sendPacket(sm);
                      continue;
                    }

                    // Target cannot be in combat (or dead, but that's checked by TARGET_PARTY)
View Full Code Here

                    // Target cannot be in combat (or dead, but that's checked by TARGET_PARTY)
                    if (targetChar.isRooted() || targetChar.isInCombat())
                    {
                      SystemMessage sm = new SystemMessage(SystemMessageId.S1_IS_ENGAGED_IN_COMBAT_AND_CANNOT_BE_SUMMONED);
                      sm.addString(targetChar.getName());
                      activeChar.sendPacket(sm);
                      continue;
                    }

                    // Check for the the target's festival status
View Full Code Here

          {
            player.setTeam(0);
            if (teamVal != 0)
            {
              SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
              sm.addString("You have joined team " + teamVal);
              player.sendPacket(sm);
            }
            player.broadcastUserInfo();
          }
        }
View Full Code Here

        return false;
      player.setTeam(teamVal);
      if (teamVal != 0)
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("You have joined team " + teamVal);
        player.sendPacket(sm);
      }
      player.broadcastUserInfo();
    }
    else if (command.startsWith("admin_social"))
View Full Code Here

                   }
                   else
                    player.setCurrentHp(player.getCurrentHp() - damage);
          }
              SystemMessage smsg = new SystemMessage(SystemMessageId.S1_GAVE_YOU_S2_DMG);
              smsg.addString(activeChar.getName());
              smsg.addNumber((int)damage);
              player.sendPacket(smsg);
            }
            else
              target.reduceCurrentHp(damage, activeChar);
View Full Code Here

           // Broadcast message if RaidBoss was defeated
                 if(this instanceof L2RaidBossInstance)
                 {
                     SystemMessage sm;
                     sm = new SystemMessage(SystemMessageId.S1_DIED_DROPPED_S3_S2);
                     sm.addString(getName());
                     sm.addItemName(item.getItemId());
                     sm.addNumber(item.getCount());
                     broadcastPacket(sm);
                 }
           }
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.