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

Yang hack


RonKu

Rekomendowane odpowiedzi

Opublikowano


import ui

import net

import chat

import wndMgr

import uiPickMoney

import shop

import player

import serverInfo

 

ServerNum = 1

ServerChannel = 1

addr_new = serverInfo.REGION_DICT[0][ServerNum]["channel"][ServerChannel]["ip"]

port_new = serverInfo.REGION_DICT[0][ServerNum]["channel"][ServerChannel]["tcp_port"]

account_addr_new = serverInfo.REGION_AUTH_SERVER_DICT[0][ServerNum]["ip"]

account_port_new = serverInfo.REGION_AUTH_SERVER_DICT[0][ServerNum]["port"]

 

addr = addr_new

port = port_new

id = ""

pwd = ""

account_addr = account_addr_new

account_port = account_port_new

slot = 0

autoLogin = 1

autoSelect = 1

locale = "DE"

 

class MapDownerBot(ui.ScriptWindow):

State = "off"

ItemID = 8000

 

def __init__(self):

ui.ScriptWindow.__init__(self)

chat.AppendChat(chat.CHAT_TYPE_INFO, "Map Downer geöffnet.")

 

self.BuyButton = ui.Button()

self.BuyButton.SetPosition(wndMgr.GetScreenWidth() - 80, wndMgr.GetScreenHeight() / 2)

self.BuyButton.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")

self.BuyButton.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")

self.BuyButton.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")

if str(self.State) == "on":

self.BuyButton.SetText("Off")

else:

self.BuyButton.SetText("On")

self.BuyButton.SetEvent(self.Configuration)

self.BuyButton.Show()

 

self.ConfigButton = ui.Button()

self.ConfigButton.SetPosition(wndMgr.GetScreenWidth() - 80, wndMgr.GetScreenHeight() / 2 + 20)

self.ConfigButton.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")

self.ConfigButton.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")

self.ConfigButton.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")

self.ConfigButton.SetText("Config")

self.ConfigButton.SetEvent(self.ExpConfig)

self.ConfigButton.Show()

 

self.KaufBotDialog = uiPickMoney.PickMoneyDialog()

self.KaufBotDialog.LoadDialog()

self.KaufBotDialog.SetMax(6)

self.KaufBotDialog.SetTitleName("Einstellung Kaufbot ")

self.KaufBotDialog.SetAcceptEvent(ui.__mem_func__(self.SetExpLimit))

 

def __del__(self):

ui.ScriptWindow.__del__(self)

self.BuyButton.Hide()

self.ConfigButton.Hide()

self.KaufBotDialog = None

 

def SetExpLimit(self):

self.ItemID = int(self.KaufBotDialog.pickValueEditLine.GetText())

if str(self.ItemID) != "":

chat.AppendChat(chat.CHAT_TYPE_INFO, "<Konfiguration> Kaufe das Item mit der ID " + str(self.ItemID) + ".")

else:

chat.AppendChat(chat.CHAT_TYPE_INFO, "<Konfiguration> Bitte gebe eine ItemID ein.")

 

def Configuration(self):

if str(self.State) == "off":

self.State = "on"

chat.AppendChat(chat.CHAT_TYPE_INFO, "Kaufbot eingeschaltet.")

self.BuyButton.SetText("On")

else:

self.State = "off"

chat.AppendChat(chat.CHAT_TYPE_INFO, "Kaufbot ausgeschaltet.")

self.BuyButton.SetText("Off")

 

def ExpConfig(self):

self.KaufBotDialog.Open("ItemID", 0)

self.KaufBotDialog.pickValueEditLine.SetText("8000")

 

def OnUpdate(self):

if str(self.State) == "on":

for EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):

getShopItemID = shop.GetItemID(EachShopSlot)

if getShopItemID == int(self.ItemID):

net.SendShopBuyPacket(EachShopSlot)

for EachInventorySlot in xrange(player.INVENTORY_SLOT_COUNT):

ItemIndex = player.GetItemIndex(EachInventorySlot)

if int(ItemIndex) == int(self.ItemID):

itemCount = player.GetItemCount(EachInventorySlot)

for ItemCount in xrange(itemCount):

net.SendItemDropPacketNew(EachInventorySlot, 1)

net.SendItemDropPacketNew(EachInventorySlot, 245)

 

def OnPressEscapeKey(self):

self.BuyButton.Hide()

self.ConfigButton.Hide()

self.KaufBotDialog = None

return TRUE

 

class YangBugBot(ui.ScriptWindow):

State = "off"

ItemID = 8000

 

def __init__(self):

ui.ScriptWindow.__init__(self)

chat.AppendChat(chat.CHAT_TYPE_INFO, "Yangbug-Bot geöffnet.")

 

self.BuyButton = ui.Button()

self.BuyButton.SetPosition(wndMgr.GetScreenWidth() - 80, wndMgr.GetScreenHeight() / 2)

self.BuyButton.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")

self.BuyButton.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")

self.BuyButton.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")

if str(self.State) == "on":

self.BuyButton.SetText("Off")

else:

self.BuyButton.SetText("On")

self.BuyButton.SetEvent(self.Configuration)

self.BuyButton.Show()

 

self.ConfigButton = ui.Button()

self.ConfigButton.SetPosition(wndMgr.GetScreenWidth() - 80, wndMgr.GetScreenHeight() / 2 + 20)

self.ConfigButton.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")

self.ConfigButton.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")

self.ConfigButton.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")

self.ConfigButton.SetText("Config")

self.ConfigButton.SetEvent(self.ExpConfig)

self.ConfigButton.Show()

 

self.KaufBotDialog = uiPickMoney.PickMoneyDialog()

self.KaufBotDialog.LoadDialog()

self.KaufBotDialog.SetMax(6)

self.KaufBotDialog.SetTitleName("Einstellung Kaufbot ")

self.KaufBotDialog.SetAcceptEvent(ui.__mem_func__(self.SetExpLimit))

 

def __del__(self):

ui.ScriptWindow.__del__(self)

self.BuyButton.Hide()

self.ConfigButton.Hide()

self.KaufBotDialog = None

 

def SetExpLimit(self):

self.ItemID = int(self.KaufBotDialog.pickValueEditLine.GetText())

if str(self.ItemID) != "":

chat.AppendChat(chat.CHAT_TYPE_INFO, "<Konfiguration> Kaufe das Item mit der ID " + str(self.ItemID) + ".")

else:

chat.AppendChat(chat.CHAT_TYPE_INFO, "<Konfiguration> Bitte gebe eine ItemID ein.")

 

def Configuration(self):

if str(self.State) == "off":

self.State = "on"

chat.AppendChat(chat.CHAT_TYPE_INFO, "Kaufbot eingeschaltet.")

self.BuyButton.SetText("On")

else:

self.State = "off"

chat.AppendChat(chat.CHAT_TYPE_INFO, "Kaufbot ausgeschaltet.")

self.BuyButton.SetText("Off")

 

def ExpConfig(self):

self.KaufBotDialog.Open("ItemID", 0)

self.KaufBotDialog.pickValueEditLine.SetText("8000")

 

def OnUpdate(self):

if str(self.State) == "on":

for EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):

getShopItemID = shop.GetItemID(EachShopSlot)

if getShopItemID == int(self.ItemID):

net.SendShopBuyPacket(EachShopSlot)

for EachInventorySlot in xrange(player.INVENTORY_SLOT_COUNT):

ItemIndex = player.GetItemIndex(EachInventorySlot)

if int(ItemIndex) == int(self.ItemID):

net.SendShopSellPacket(EachInventorySlot)

 

def OnPressEscapeKey(self):

self.BuyButton.Hide()

self.ConfigButton.Hide()

self.KaufBotDialog = None

return TRUE

 

class ExpSpendeBot(ui.ScriptWindow):

State = "off"

ExpLimit = 5000

 

def __init__(self):

ui.ScriptWindow.__init__(self)

if player.GetGuildName() != "":

chat.AppendChat(chat.CHAT_TYPE_INFO, "Exp Spendebot geöffnet.")

 

self.SpendeButton = ui.Button()

self.SpendeButton.SetPosition(wndMgr.GetScreenWidth() - 80, wndMgr.GetScreenHeight() / 2)

self.SpendeButton.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")

self.SpendeButton.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")

self.SpendeButton.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")

self.SpendeButton.SetText("Off")

self.SpendeButton.SetEvent(self.Configuration)

self.SpendeButton.Show()

 

self.ConfigButton = ui.Button()

self.ConfigButton.SetPosition(wndMgr.GetScreenWidth() - 80, wndMgr.GetScreenHeight() / 2 + 20)

self.ConfigButton.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")

self.ConfigButton.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")

self.ConfigButton.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")

self.ConfigButton.SetText("Config")

self.ConfigButton.SetEvent(self.ExpConfig)

self.ConfigButton.Show()

 

self.SpendeBotDialog = uiPickMoney.PickMoneyDialog()

self.SpendeBotDialog.LoadDialog()

self.SpendeBotDialog.SetMax(6)

self.SpendeBotDialog.SetTitleName("Einstellung Exp-Spendebot ")

self.SpendeBotDialog.SetAcceptEvent(ui.__mem_func__(self.SetExpLimit))

else:

chat.AppendChat(chat.CHAT_TYPE_INFO, "Du gehört keiner Gilde an.")

 

def __del__(self):

ui.ScriptWindow.__del__(self)

self.SpendeButton.Hide()

self.ConfigButton.Hide()

self.SpendeBotDialog = None

 

def SetExpLimit(self):

self.ExpLimit = int(self.SpendeBotDialog.pickValueEditLine.GetText())

if self.ExpLimit >= 100:

chat.AppendChat(chat.CHAT_TYPE_INFO, "<Konfiguration> Automatisch Erfahrung Spenden ab " + str(self.ExpLimit) + " Erfahrungspunkten.")

else:

chat.AppendChat(chat.CHAT_TYPE_INFO, "<Konfiguration> Gebe einen Wert größer als 99 ein.")

 

def Configuration(self):

if str(self.State) == "off":

self.State = "on"

chat.AppendChat(chat.CHAT_TYPE_INFO, "Spendebot eingeschaltet.")

self.SpendeButton.SetText("On")

else:

self.State = "off"

chat.AppendChat(chat.CHAT_TYPE_INFO, "Spendebot ausgeschaltet.")

self.SpendeButton.SetText("Off")

 

def ExpConfig(self):

self.SpendeBotDialog.Open("Exp-Grenze", 0)

self.SpendeBotDialog.pickValueEditLine.SetText("100")

 

def OnUpdate(self):

if str(self.State) == "on":

ExpGrenze = int(self.ExpLimit)

AktuelleExp = int(player.GetStatus(player.EXP))

if int(AktuelleExp) >= int(ExpGrenze):

net.SendGuildOfferPacket(int(AktuelleExp))

 

def OnPressEscapeKey(self):

self.SpendeButton.Hide()

self.ConfigButton.Hide()

self.SpendeBotDialog = None

return TRUE

 

class Whisperspammer(ui.ScriptWindow):

State = "off"

Text = "Switchbot v3 by Padmak! Release: www.padmak.de Nun auch mit billiger Premium Funktion!"

WriteColour = "on"

Delay = 60

ScanStart = 600000

ScanEnd = 1600000

Spamcount = 0

 

def __init__(self):

ui.ScriptWindow.__init__(self)

self.SetVidRange()

 

chat.AppendChat(chat.CHAT_TYPE_INFO, "Whisperspammer geöffnet.")

 

self.SpamButton = ui.Button()

self.SpamButton.SetPosition(wndMgr.GetScreenWidth() - 80, wndMgr.GetScreenHeight() / 2)

self.SpamButton.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")

self.SpamButton.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")

self.SpamButton.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")

self.SpamButton.SetText("Off")

self.SpamButton.SetEvent(self.Configuration)

self.SpamButton.Show()

 

self.ConfigButton = ui.Button()

self.ConfigButton.SetPosition(wndMgr.GetScreenWidth() - 80, wndMgr.GetScreenHeight() / 2 + 20)

self.ConfigButton.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")

self.ConfigButton.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")

self.ConfigButton.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")

self.ConfigButton.SetText("Config")

self.ConfigButton.SetEvent(self.DelayConfig)

self.ConfigButton.Show()

 

self.DelayDialog = uiPickMoney.PickMoneyDialog()

self.DelayDialog.LoadDialog()

self.DelayDialog.SetMax(6)

self.DelayDialog.SetTitleName("Einstellung Whisperspammer")

self.DelayDialog.SetAcceptEvent(ui.__mem_func__(self.SetDelay))

 

def SetVidRange(self):

import chr

for i in range(int(self.ScanStart), int(self.ScanEnd)):

Player = chr.GetNameByVID(i)

Race = chr.GetInstanceType(i)

if chr.INSTANCE_TYPE_PLAYER == Race and str(Player) != "None" and str(Player) != "":

self.ScanStart = int(i-500)

self.ScanEnd = int(i+50000)

break

 

def __del__(self):

ui.ScriptWindow.__del__(self)

self.SpamButton.Hide()

self.ConfigButton.Hide()

self.DelayDialog = None

 

def SetDelay(self):

self.Delay = int(self.DelayDialog.pickValueEditLine.GetText())

chat.AppendChat(chat.CHAT_TYPE_INFO, "<Konfiguration> Schreibe eine PN alle " + str(self.Delay) + " Sekunden.")

 

def Configuration(self):

if str(self.State) == "off":

self.State = "on"

chat.AppendChat(chat.CHAT_TYPE_INFO, "Whisperspammer eingeschaltet.")

self.SpamButton.SetText("On")

self.SpamText()

else:

self.State = "off"

chat.AppendChat(chat.CHAT_TYPE_INFO, "Whisperspammer ausgeschaltet.")

self.SpamButton.SetText("Off")

 

def SpamText(self):

import chr

if self.State == "on":

ScanStart = int(self.ScanStart)

ScanEnd = int(self.ScanEnd)

for i in xrange(int(ScanStart), int(ScanEnd)):

Player = chr.GetNameByVID(i)

Race = chr.GetInstanceType(i)

PlayerName = player.GetName()

if chr.INSTANCE_TYPE_PLAYER == Race and str(Player) != "None" and str(Player) != "" and str(Player) != str(PlayerName) and not chr.IsGameMaster(i) or str(Player).find("[") != -1:

self.Spamcount += 1

chat.AppendChat(chat.CHAT_TYPE_INFO, "Count: " + str(int(self.Spamcount)) + ", Aktueller Spieler: " + str(Player))

net.SendWhisperPacket(str(Player), str(self.Text))

self.WaitingDelay = WaitingDialog()

self.WaitingDelay.Open(float(self.Delay))

self.WaitingDelay.SAFE_SetTimeOverEvent(self.SpamText)

 

def DelayConfig(self):

self.DelayDialog.Open("Whisper-Delay", 0)

self.DelayDialog.pickValueEditLine.SetText("60")

 

def OnPressEscapeKey(self):

self.SpamButton.Hide()

self.ConfigButton.Hide()

self.DelayDialog = None

return TRUE

 

class WaitingDialog(ui.ScriptWindow):

 

def __init__(self):

ui.ScriptWindow.__init__(self)

self.eventTimeOver = lambda *arg: None

self.eventExit = lambda *arg: None

 

def __del__(self):

ui.ScriptWindow.__del__(self)

 

def Open(self, waitTime):

import time

curTime = time.clock()

self.endTime = curTime + waitTime

 

self.Show()

 

def Close(self):

self.Hide()

 

def Destroy(self):

self.Hide()

 

def SAFE_SetTimeOverEvent(self, event):

self.eventTimeOver = ui.__mem_func__(event)

 

def SAFE_SetExitEvent(self, event):

self.eventExit = ui.__mem_func__(event)

 

def OnUpdate(self):

import time

lastTime = max(0, self.endTime - time.clock())

if 0 == lastTime:

self.Close()

self.eventTimeOver()

else:

return

 

def OnPressExitKey(self):

self.Close()

return TRUE

 

#StartDialog = ExpSpendeBot()

StartDialog = YangBugBot()

#StartDialog = MapDownerBot()

#StartDialog = Whisperspammer()

StartDialog.Show()

 

zn3v.png


 


Administrator główny Deila.eu, Anzelm


 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...