Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Buffbot w pythonie


hancocki

Rekomendowane odpowiedzi

Opublikowano


import app

import chat

import chr

import locale

import net

import time

import ui

import player

import chrmgr

 

Buffbotstarten = ""

 

class Botdialog(ui.ThinBoard):

 

def __init__(self):

ui.ThinBoard.__init__(self)

self.LoadBoard()

 

def LoadBoard(self):

self.SetCenterPosition()

self.SetSize(300, 120)

self.Show()

self.AddFlag("movable")

 

self.LoadText()

self.LoadButton()

 

def LoadText(self):

self.Titel = ui.TextLine()

self.Titel.SetParent(self)

self.Titel.SetDefaultFontName()

self.Titel.SetPosition(-70, 4)

self.Titel.SetFeather()

self.Titel.SetWindowHorizontalAlignCenter()

self.Titel.SetText("Buffbot by DasKuchen")

self.Titel.SetFontColor(1.0, 0.8, 0)

self.Titel.SetOutline()

self.Titel.Show()

 

self.TargetName = ui.TextLine()

self.TargetName.SetParent(self)

self.TargetName.SetDefaultFontName()

self.TargetName.SetPosition(-70, 33)

self.TargetName.SetFeather()

self.TargetName.SetWindowHorizontalAlignCenter()

self.TargetName.SetText("None")

self.TargetName.SetOutline()

self.TargetName.Show()

 

self.Info = ui.TextLine()

self.Info.SetParent(self)

self.Info.SetDefaultFontName()

self.Info.SetPosition(-125, 33)

self.Info.SetFeather()

self.Info.SetWindowHorizontalAlignCenter()

self.Info.SetFontColor(1.0, 0.8, 0)

self.Info.SetText("Dein Ziel: ")

self.Info.SetOutline()

self.Info.Show()

 

self.Info2 = ui.TextLine()

self.Info2.SetParent(self)

self.Info2.SetDefaultFontName()

self.Info2.SetPosition(-105, 55)

self.Info2.SetFeather()

self.Info2.SetWindowHorizontalAlignCenter()

self.Info2.SetFontColor(1.0, 0.8, 0)

self.Info2.SetText("VID:")

self.Info2.SetOutline()

self.Info2.Show()

 

def LoadButton(self):

self.CloseButton = ui.Button()

self.CloseButton.SetParent(self)

self.CloseButton.SetPosition(280, 4)

self.CloseButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")

self.CloseButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")

self.CloseButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")

self.CloseButton.SetToolTipText(locale.UI_CLOSE, 0, - 23)

self.CloseButton.SetEvent(ui.__mem_func__(self.Close))

self.CloseButton.Show()

 

self.BuffBotStartButton = ui.Button()

self.BuffBotStartButton.SetParent(self)

self.BuffBotStartButton.SetUpVisual("d:/ymir work/ui/public/xlarge_button_01.sub")

self.BuffBotStartButton.SetOverVisual("d:/ymir work/ui/public/xlarge_button_02.sub")

self.BuffBotStartButton.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")

self.BuffBotStartButton.SetText("Buffbot Starten")

self.BuffBotStartButton.SetPosition(60, 85)

self.BuffBotStartButton.SetEvent(ui.__mem_func__(self.StartBuffbot))

self.BuffBotStartButton.Show()

 

self.GetVIDButton = ui.Button()

self.GetVIDButton.SetParent(self)

self.GetVIDButton.SetUpVisual("d:/ymir work/ui/public/large_button_01.sub")

self.GetVIDButton.SetOverVisual("d:/ymir work/ui/public/large_button_02.sub")

self.GetVIDButton.SetDownVisual("d:/ymir work/ui/public/large_button_03.sub")

self.GetVIDButton.SetText("Get VID")

self.GetVIDButton.SetPosition(190, 30)

self.GetVIDButton.SetEvent(ui.__mem_func__(self.GetVID))

self.GetVIDButton.Show()

 

self.ChatSlotBar = ui.SlotBar()

self.ChatSlotBar.SetParent(self)

self.ChatSlotBar.SetSize(140, 18)

self.ChatSlotBar.SetPosition(0, 55)

self.ChatSlotBar.SetWindowHorizontalAlignCenter()

self.ChatSlotBar.Show()

 

self.ChatEditLine = ui.EditLine()

self.ChatEditLine.SetParent(self.ChatSlotBar)

self.ChatEditLine.SetSize(100, 17)

self.ChatEditLine.SetPosition(10, 2)

self.ChatEditLine.SetMax(24)

self.ChatEditLine.SetText("")

self.ChatEditLine.SetFocus()

self.ChatEditLine.Show()

 

def __del__(self):

ui.ThinBoard.__del__(self)

 

def Show(self):

ui.ThinBoard.Show(self)

 

def Close(self):

player.ClearTarget()

self.Hide()

 

def StartBuffbot(self):

global Buffbotstarten

Buffbotstarten = 1

 

def GetVID(self):

vid = player.GetTargetVID()

info = chrmgr.GetVIDInfo(vid)

chat.AppendChat(chat.CHAT_TYPE_INFO, info)

 

def OnUpdate(self):

vid = player.GetTargetVID()

name = chr.GetNameByVID(vid)

self.TargetName.SetText(name)

self.TargetName.Show()

ZielVID = self.ChatEditLine.GetText()

global Buffbotstarten

if Buffbotstarten != "":

player.SetTarget(int(ZielVID))

player.ClickSkillSlot(4)

player.ClickSkillSlot(5)

player.ClickSkillSlot(6)

else:

return

 

 

StartDialog = Botdialog()

StartDialog.Show()

  • 8 miesięcy temu...
Opublikowano
import app
import chat
import chr
import locale
import net
import time
import ui
import player
import chrmgr

Buffbotstarten = ""

class Botdialog(ui.ThinBoard):

	def __init__(self):
		ui.ThinBoard.__init__(self)
		self.LoadBoard()
		
	def LoadBoard(self):
		self.SetCenterPosition()
		self.SetSize(300, 120)
		self.Show()
		self.AddFlag("movable")
		
		self.LoadText()
		self.LoadButton()
		
	def LoadText(self):
		self.Titel = ui.TextLine()
		self.Titel.SetParent(self)
		self.Titel.SetDefaultFontName()
		self.Titel.SetPosition(-70, 4)
		self.Titel.SetFeather()
		self.Titel.SetWindowHorizontalAlignCenter()
		self.Titel.SetText("Buffbot by DasKuchen")
		self.Titel.SetFontColor(1.0, 0.8, 0)
		self.Titel.SetOutline()
		self.Titel.Show()
		
		self.TargetName = ui.TextLine()
		self.TargetName.SetParent(self)
		self.TargetName.SetDefaultFontName()
		self.TargetName.SetPosition(-70, 33)
		self.TargetName.SetFeather()
		self.TargetName.SetWindowHorizontalAlignCenter()
		self.TargetName.SetText("None")
		self.TargetName.SetOutline()
		self.TargetName.Show()

		self.Info = ui.TextLine()
		self.Info.SetParent(self)
		self.Info.SetDefaultFontName()
		self.Info.SetPosition(-125, 33)
		self.Info.SetFeather()
		self.Info.SetWindowHorizontalAlignCenter()
		self.Info.SetFontColor(1.0, 0.8, 0)
		self.Info.SetText("Dein Ziel: ")
		self.Info.SetOutline()
		self.Info.Show()

		self.Info2 = ui.TextLine()
		self.Info2.SetParent(self)
		self.Info2.SetDefaultFontName()
		self.Info2.SetPosition(-105, 55)
		self.Info2.SetFeather()
		self.Info2.SetWindowHorizontalAlignCenter()
		self.Info2.SetFontColor(1.0, 0.8, 0)
		self.Info2.SetText("VID:")
		self.Info2.SetOutline()
		self.Info2.Show()			
		
	def LoadButton(self):
		self.CloseButton = ui.Button()
		self.CloseButton.SetParent(self)
		self.CloseButton.SetPosition(280, 4)
		self.CloseButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
		self.CloseButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
		self.CloseButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
		self.CloseButton.SetToolTipText(locale.UI_CLOSE, 0, - 23)
		self.CloseButton.SetEvent(ui.__mem_func__(self.Close))
		self.CloseButton.Show()
		
		self.BuffBotStartButton = ui.Button()
		self.BuffBotStartButton.SetParent(self)
		self.BuffBotStartButton.SetUpVisual("d:/ymir work/ui/public/xlarge_button_01.sub")
		self.BuffBotStartButton.SetOverVisual("d:/ymir work/ui/public/xlarge_button_02.sub")
		self.BuffBotStartButton.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
		self.BuffBotStartButton.SetText("Buffbot Starten")
		self.BuffBotStartButton.SetPosition(60, 85)
		self.BuffBotStartButton.SetEvent(ui.__mem_func__(self.StartBuffbot))
		self.BuffBotStartButton.Show()	

		self.GetVIDButton = ui.Button()
		self.GetVIDButton.SetParent(self)
		self.GetVIDButton.SetUpVisual("d:/ymir work/ui/public/large_button_01.sub")
		self.GetVIDButton.SetOverVisual("d:/ymir work/ui/public/large_button_02.sub")
		self.GetVIDButton.SetDownVisual("d:/ymir work/ui/public/large_button_03.sub")
		self.GetVIDButton.SetText("Get VID")
		self.GetVIDButton.SetPosition(190, 30)
		self.GetVIDButton.SetEvent(ui.__mem_func__(self.GetVID))
		self.GetVIDButton.Show()	

		self.ChatSlotBar = ui.SlotBar()
		self.ChatSlotBar.SetParent(self)
		self.ChatSlotBar.SetSize(140, 18)
		self.ChatSlotBar.SetPosition(0, 55)
		self.ChatSlotBar.SetWindowHorizontalAlignCenter()
		self.ChatSlotBar.Show()
		
		self.ChatEditLine = ui.EditLine()
		self.ChatEditLine.SetParent(self.ChatSlotBar)
		self.ChatEditLine.SetSize(100, 17)
		self.ChatEditLine.SetPosition(10, 2)
		self.ChatEditLine.SetMax(24)
		self.ChatEditLine.SetText("")
		self.ChatEditLine.SetFocus()
		self.ChatEditLine.Show()
		
	def __del__(self):
		ui.ThinBoard.__del__(self)

	def Show(self):
		ui.ThinBoard.Show(self)

	def Close(self):
		player.ClearTarget()
		self.Hide()
		
	def StartBuffbot(self):
		global Buffbotstarten
		Buffbotstarten = 1
		
	def GetVID(self):
		vid = player.GetTargetVID()
		info = chrmgr.GetVIDInfo(vid)
		chat.AppendChat(chat.CHAT_TYPE_INFO, info)
				
	def OnUpdate(self):
		vid = player.GetTargetVID()
		name = chr.GetNameByVID(vid)
		self.TargetName.SetText(name)
		self.TargetName.Show()
		ZielVID = self.ChatEditLine.GetText()
		global Buffbotstarten
		if Buffbotstarten != "":
			player.SetTarget(int(ZielVID))
			player.ClickSkillSlot(4)
			player.ClickSkillSlot(5)
			player.ClickSkillSlot(6)		
		else:
			return			
		
	
StartDialog = Botdialog()
StartDialog.Show()

Co nalezy z tym zrobic? gdzie to wkleic itp? 

Opublikowano

wpisz sobie w google python module loader i masz

Dzieki takim wskazowkom, spedze troche wiecej czasu, zastanawiajac sie nad niemieckim jezykiem, nad calkowitym funkcjonowaniem programu. NAPRAWDE DZIEKI! 

Opublikowano

k***a, wszystko na tacy podać

 

wpisujesz python module loader, wchodizsz w link od epvp

pobierz, wklejasz do klienta i przy uruchamianiu klienta od razu ci się odpala, wybierasz ten plik z tym botem i run..

Opublikowano

k***a, wszystko na tacy podać

 

wpisujesz python module loader, wchodizsz w link od epvp

pobierz, wklejasz do klienta i przy uruchamianiu klienta od razu ci się odpala, wybierasz ten plik z tym botem i run..

Powiem Ci tak, nasciagalem sie sporo plikow, probowalem wgrac, odpalac, zmieniac itp. bo potrzebowalem buffbota do Virtuala (w sumie juz od dwoch dni siedze i sie bawie sprawdzajac czy dziala). Wiekszosc tematow mialo nieaktywne linki, jedynie co mialem aktualne to kod pythona. Nie mam zielonego pojecia co z tym zrobic, jedyna rzecz ktora pierwszy raz wpadla mi w rece. Chcialem tylko linka, z poradnikiem jesli istnieje, w ktorym jest napisane jak sie tym obslugiwac. Nie jestem taka osoba ktora chce wszystko na tacy. Poprosilem Cie o pomoc i wiedziales mniej wiecej czego oczekuje. Odpowiedzi typu google, dla tych ktorzy sie staraja.. poprostu dobija.

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...