Examples of calcHeading()


Examples of lineage2.gameserver.model.Player.calcHeading()

    }
    if (_forceUse)
    {
      target.getAI().setIntention(CtrlIntention.AI_INTENTION_COUPLE_ACTION, actor, socialId);
    }
    int heading = actor.calcHeading(target.getX(), target.getY());
    actor.setHeading(heading);
    actor.broadcastPacket(new ExRotation(actor.getObjectId(), heading));
    actor.broadcastPacket(new SocialAction(actor.getObjectId(), socialId));
  }
 
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.calcHeading()

        actor.deleteMe();
      }
    }
    else if (((lastSayTime + SAY_INTERVAL) < System.currentTimeMillis()) && (actor.getDestination() == null))
    {
      final int heading = actor.calcHeading(target.getX(), target.getY());
      actor.setHeading(heading);
      actor.broadcastPacket(new ExRotation(actor.getObjectId(), heading));
      lastSayTime = System.currentTimeMillis();
      Functions.npcSay(actor, string, ChatType.NPC_SAY, 800, target.getName());
    }
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.calcHeading()

          st.set("zone", 2);
        }
      }
      else if (((lastSayTime + SAY_INTERVAL) < System.currentTimeMillis()) && (actor.getDestination() == null))
      {
        final int heading = actor.calcHeading(target.getX(), target.getY());
        actor.setHeading(heading);
        actor.broadcastPacket(new ExRotation(actor.getObjectId(), heading));
        lastSayTime = System.currentTimeMillis();
        target.sendPacket(new ExShowScreenMessage(NpcString.CATCH_UP_TO_KING_HES_WAITING, 1500, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER));
        st.set("saytimes", ++saytimes);
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.calcHeading()

          st.setCond(2);
        }
      }
      else if (((lastSayTime + SAY_INTERVAL) < System.currentTimeMillis()) && (actor.getDestination() == null))
      {
        final int heading = actor.calcHeading(target.getX(), target.getY());
        actor.setHeading(heading);
        actor.broadcastPacket(new ExRotation(actor.getObjectId(), heading));
        lastSayTime = System.currentTimeMillis();
        target.sendPacket(new ExShowScreenMessage(NpcString.CATCH_UP_TO_KING_HES_WAITING, 1500, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER));
        st.set("saytimes", ++saytimes);
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.