Package games.stendhal.server.entity.creature

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.