示例#1
0
 def onAttack (self,npc,player,damage,isPet):
   global CLANLEADERS
   for clname in CLANLEADERS:
     if clname <> None :
       if player.getClan().getLeader().getName() == clname :
         DevastatedCastle.getInstance().addSiegeDamage(player.getClan(),damage)
   return
示例#2
0
 def onAttack(self, npc, player, damage, isPet):
     global CLANLEADERS
     for clname in CLANLEADERS:
         if clname <> None:
             if player.getClan().getLeader().getName() == clname:
                 DevastatedCastle.getInstance().addSiegeDamage(
                     player.getClan(), damage)
     return
示例#3
0
 def onTalk (self,npc,player):
   global CLANLEADERS
   npcId = npc.getNpcId()
   if npcId == MESSENGER :
     for clname in CLANLEADERS:
       if player.getName() == clname :
         return "<html><body>You already registered!</body></html>"
     if DevastatedCastle.getInstance().Conditions(player) :
       CLANLEADERS.append(player.getName())
       return "<html><body>You have successful registered on a siege</body></html>"
     else:
       return "<html><body>Condition are not allow to do that!</body></html>"
   return
示例#4
0
 def onTalk(self, npc, player):
     global CLANLEADERS
     npcId = npc.getNpcId()
     if npcId == MESSENGER:
         for clname in CLANLEADERS:
             if player.getName() == clname:
                 return "<html><body>You already registered!</body></html>"
         if DevastatedCastle.getInstance().Conditions(player):
             CLANLEADERS.append(player.getName())
             return "<html><body>You have successful registered on a siege</body></html>"
         else:
             return "<html><body>Condition are not allow to do that!</body></html>"
     return
示例#5
0
 def onKill(self,npc,player,isPet):
   DevastatedCastle.getInstance().SiegeFinish()
   return
示例#6
0
 def onKill(self, npc, player, isPet):
     DevastatedCastle.getInstance().SiegeFinish()
     return