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
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
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
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
def onKill(self,npc,player,isPet): DevastatedCastle.getInstance().SiegeFinish() return
def onKill(self, npc, player, isPet): DevastatedCastle.getInstance().SiegeFinish() return