Examples of delayedDamage()


Examples of games.stendhal.server.entity.creature.Creature.delayedDamage()

        for (RPObject obj : zone) {
          if (obj instanceof Creature) {
            Creature wolf = (Creature) obj;
           
            if ("wolf".equals(wolf.get("subclass")) && getPen(zone).contains(wolf)) {
                wolf.delayedDamage(wolf.getHP(), "Sato");
                return;
            }
          }
        }
      }
View Full Code Here

Examples of games.stendhal.server.entity.creature.Pet.delayedDamage()

          if("baby_dragon".equals(petType)) {
            player.removePet(pet);
            npc.say("Ah you brought the baby dragon! It will make such a wonderful stew. Baby dragon stew is my speciality and Mr Yeti loves it! You've made us both very happy! Come back in a day to see me for a #reward.");
            player.addKarma(5.0);
            player.addXP(500);
            pet.delayedDamage(pet.getHP(), "Mrs. Yeti");
            player.setQuest(QUEST_SLOT,"reward;"+System.currentTimeMillis());
            player.notifyWorldAboutChanges();
          } else {
            npc.say("That's a cute pet you have there, but I need a baby dragon for Mr Yeti. Try Morgrin at the magic school.")
          }
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.