Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ModuleAutoFollow:
- def getName(self):
- return "Auto Follow By Gustavo Blaze(Slash)"
- def getVersion(self):
- return "1.2"
- def getFunDef(self,nr):
- if (nr==0): return (0,500,self.fun1);
- return ();
- def getConfigParam(self,nr):
- if (nr==0): return ('followName', 'Nome do jogador para dar follow');
- return ();
- def fun1(self,params):
- selfCh=tareader.readSelfCharacter();
- if not params['followName']:
- return()
- if tareader.getFollowedCreature() == 0 and tareader.getAttackedCreature() == 0:
- for i in range(255):
- player = tareader.readVisibleCreature(i);
- if player['tibiaId'] == 0: break;
- if player['name'] == params['followName']: tasender.follow(player['tibiaId']); break;
- return()
- tibiaauto.registerPlugin(ModuleAutoFollow)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement