Script para estourar pots vazias


Cacau Luh

Recommended Posts

Uso o scipt abaixo para estourar pots vazias no chão:

 

class ModuleDesintegrator:
      def getName(self):
          return "Money Rune"
 
      def getVersion(self):
          return "1.1"
 
      def getFunDef(self,nr):
          if (nr==0): return (0,1000,self.fun1);
          return ();
         
      def getConfigParam(self,nr):
          return ();
 
      def fun1(self,params):
        selfCh=tareader.readSelfCharacter();
        moneyRuneId = 3193    
        useOnItemIDs = [285, 284, 283, 3038, 3039, 3037, 3036]
        for offsetX in range(-1,2):
          for offsetY in range(-1,2):
            items = tareader.mapGetPointItemsCount(offsetX, offsetY, 0)
            topPos = tareader.mapGetPointTopPos(offsetX, offsetY, 0)
            itemId = tareader.mapGetPointItemId(offsetX, offsetY, 0, topPos)
            if itemId in useOnItemIDs:         
              tasender.useWithObjectOnFloor(moneyRuneId, itemId, selfCh['x']+offsetX, selfCh['y']+offsetY, selfCh['z'], 2)                  
              return()

tibiaauto.registerPlugin(ModuleDesintegrator)

André, existe a possibilidade de alteração ou adição de uma linha, pra que estoure os posts dentro de uma bp q esteja aberta?

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...