Editar script


Generalspectro

Recommended Posts

Tentei editar conforme dito em topicos que para mudar a script de sd para qualquer outra ( no caso quero de avalanche) bastava apenas mudar ID, so que nao obtive sucesso.

peguei a original e mudei a "id" pra avalanche "3161" 

 

class ModuleAutoCastRune:
      def getName(self):
          return "Auto Cast Rune on Target By Faramir"
 
      def getVersion(self):
          return "1.1"
 
      def getFunDef(self,nr):
          if (nr==0): return (0,1000,self.fun1);
          return ();
         
      def getConfigParam(self,nr):
          if (nr==0): return ('RuneId', 'ID da runa para usar no alvo'); # rune ID to cast on target
          return ();
 
      def fun1(self,params):
         runeId = 3161
         if params['3161']:
           runeId = int(params['3161']);
           
         target = tareader.getAttackedCreature()
         if target:
          tasender.useItemOnCreature(runeId, target)
                                        
tibiaauto.registerPlugin(ModuleAutoCastRune)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.