Examples of RainbowGourdInstance


Examples of npc.model.residences.clanhall.RainbowGourdInstance

    }
   
    final int index = attackers.indexOf(siegeClan);
    int warIndex = Integer.MIN_VALUE;
   
    RainbowGourdInstance gourdInstance = null;
    RainbowGourdInstance gourdInstance2 = null;
    switch (skill.getId())
    {
      case 2240: // nectar
        if (Rnd.chance(90))
        {
          gourdInstance = getGourd(index);
          if (gourdInstance == null)
          {
            return;
          }
         
          gourdInstance.doDecrease(player);
        }
        else
        {
          actor.addMob(NpcUtils.spawnSingle(35592, actor.getX() + 10, actor.getY() + 10, actor.getZ(), 0));
        }
        break;
      case 2241: // mineral water
        warIndex = rndEx(attackers.size(), index);
        if (warIndex == Integer.MIN_VALUE)
        {
          return;
        }
       
        gourdInstance2 = getGourd(warIndex);
        if (gourdInstance2 == null)
        {
          return;
        }
        gourdInstance2.doHeal();
        break;
      case 2242: // water
        warIndex = rndEx(attackers.size(), index);
        if (warIndex == Integer.MIN_VALUE)
        {
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.