コード例 #1
0
ファイル: gustav.py プロジェクト: andyperm/scoria-interlude
 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
ファイル: gustav.py プロジェクト: andyperm/scoria-interlude
 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
ファイル: gustav.py プロジェクト: andyperm/scoria-interlude
 def onKill(self,npc,player,isPet):
   DevastatedCastle.getInstance().SiegeFinish()
   return
コード例 #6
0
 def onKill(self, npc, player, isPet):
     DevastatedCastle.getInstance().SiegeFinish()
     return