Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.92 KB | None | 0 0
  1. class ModuleAutoFollow:
  2.       def getName(self):
  3.           return "Auto Follow By Gustavo Blaze(Slash)"
  4.  
  5.       def getVersion(self):
  6.           return "1.2"
  7.  
  8.       def getFunDef(self,nr):
  9.           if (nr==0): return (0,500,self.fun1);
  10.           return ();
  11.          
  12.       def getConfigParam(self,nr):
  13.           if (nr==0): return ('followName', 'Nome do jogador para dar follow');
  14.           return ();
  15.  
  16.       def fun1(self,params):
  17.         selfCh=tareader.readSelfCharacter();
  18.         if not params['followName']:
  19.           return()
  20.        
  21.         if tareader.getFollowedCreature() == 0 and tareader.getAttackedCreature() == 0:
  22.           for i in range(255):
  23.            player = tareader.readVisibleCreature(i);
  24.            if player['tibiaId'] == 0: break;
  25.            if player['name'] == params['followName']: tasender.follow(player['tibiaId']); break;
  26.         return()
  27.  
  28. tibiaauto.registerPlugin(ModuleAutoFollow)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement