Antipush Tibia Auto


Gugu - Karin Uzumaki

Recommended Posts

Iae glr, fmz?

Bom, hoje eu instalei o T.A aqui e deu uma vontade de fazer uma script python, ai eu fiz brincando um antipush. :)

 

A script tem um delay de 0,1 segundos, e fica jogando gp no seu pé se não tiver gp lá. E se o gp acaba ele usa um platinum coin. É uma script boba, mas acho que pode ser um pouco útil pra algumas coisas.

 

class ModuleAntiPush:
	def getName(self):
		return "Anti push by Gustavo Blaze"
	
	def getVersion(self):
		return "1.1"
	
	def getFunDef(self,nr):
		if (nr==0): return (0,100,self.fun1);
		return ();
	
	def getConfigParam(self,nr):
		return ();
	
	def fun1(self,params):
		selfCh = tareader.readSelfCharacter()
		topPos = tareader.mapGetPointTopPos(0, 0, 0)
		itemId = tareader.mapGetPointItemId(0, 0, 0, topPos)
		gpID = 3031
		platID = 3035
		dropGP = tautil().lookupItem(gpID)
		changePlat = tautil().lookupItem(platID)
		if dropGP['contNr'] < 0:
			tasender.useItemInContainer(platID, changePlat['contNr'], changePlat['pos'])
		if not itemId == gpID:
			if dropGP['contNr'] != -1:
					tasender.moveObjectFromContainerToFloor(gpID, 0x40 + dropGP['contNr'], dropGP['pos'], selfCh['x'], selfCh['y'], selfCh['z'], 1)
		return ()

tibiaauto.registerPlugin(ModuleAntiPush) 

Só salvar como um arquivo .py abrir pelo t.a e usar normalmente. Se tiverem alguma ideia de algumas scripts pra fazer, posta ai. 

  • Like 2
Link to comment
Share on other sites

Eu tenho uma que liga com botão, vo postar assim que sair da aula se conseguir fazer meu PC ligar em casa, deu BO nele final de semana na casa da minha muié. Quem tiver interrese, tem no forum do tibia auto, tem muitos scripts bons lá. Tem o da SOFT lá tambem.

OBS: Tem que criar uma acc lá no forum pra ter acesso aos pythons.

  • Like 1
Link to comment
Share on other sites

Eu tenho uma que liga com botão, vo postar assim que sair da aula se conseguir fazer meu PC ligar em casa, deu BO nele final de semana na casa da minha muié. Quem tiver interrese, tem no forum do tibia auto, tem muitos scripts bons lá. Tem o da SOFT lá tambem.

OBS: Tem que criar uma acc lá no forum pra ter acesso aos pythons.

Blz, quando tu puder posta aqui que eu vou dar uma estudada nesse código ai pra poder fazer por htk :)

Link to comment
Share on other sites

import time

class ModulePutShit:
    me=tareader.readSelfCharacter();
    X=0;
    Y=0;
    time = 0;

    def getName(self):   
        return "Put Shit Everywhere" 


    def getVersion(self):
        return "1.0";

    def getFunDef(self,nr):
        if (nr==0): return (2,0,self.readMessage);
        if (nr==1): return (0,200,self.putShit);
        return ();

    def getConfigParam(self,nr):
        return ();
       
    def readMessage(self,params,message):
        if message.count("%ta put") != 0:
                self.X = int(message.split(" ")[2]);
                self.Y = int(message.split(" ")[3]) / -1;
                self.time = int(message.split(" ")[4]);
                self.me = tareader.readSelfCharacter();
        return();


    def putShit(self,params):
        if (self.time > 0):
                me = self.me;
                tasender.moveObjectFromContainerToFloor(3031, 0x40, 0, me['x']+self.X, me['y']+self.Y, me['z'], 1);
                time.sleep(0.1);
                tasender.moveObjectFromContainerToFloor(3492, 0x41, 0, me['x']+self.X, me['y']+self.Y, me['z'], 1);
                self.time = self.time - 1;
        return();
                    
                    
               
tibiaauto.registerPlugin(ModulePutShit);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...