Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.callSkill()


        owner.setTarget(_tamedBeast);
        GArray<L2Character> targets = new GArray<L2Character>();
        targets.add(_tamedBeast);
        // emulate a call to the owner using food, but bypass all checks for range, etc
        // this also causes a call to the AI tasks handling feeding, which may call onReceiveFood as required.
        owner.callSkill(SkillTable.getInstance().getInfo(foodTypeSkillId, 1), targets, true);
        owner.setTarget(oldTarget);
      }
      else // if the owner has no food, the beast immediately despawns, except when it was only
        // newly spawned. Newly spawned beasts can last up to 5 minutes
        if(_tamedBeast.getRemainingTime() < MAX_DURATION - 300000)
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.