KoMaR1911 / C4USMultiHack-Metin2

Self Leaked
Apache License 2.0
55 stars 62 forks source link

Python script #8

Open ny0x opened 3 years ago

ny0x commented 3 years ago

Hi I wanna ask u if u can give me guild donate exp script.

ny0x commented 3 years ago

I have only auto revive but when I revive my self I die instantly. Can it somehow start attacking when i will have more HP or something?

There is it: import m2netm2g as net import playerm2g2 as player import chatm2g as chat import ui import time

TIME_WAIT = 3

Get current time in seconds

def GetTime(): return time.clock()

Return a tupple, the first value is true or false according if the timer has been reached, and the second value is the current timer

if first value is true or the old timer if false

def timeSleep(last_time,sleepTime): timer = time.clock() if(last_time<timer-sleepTime): return(True,timer) return(False,last_time)

class window(ui.ScriptWindow): def init(self): ui.ScriptWindow.init(self) self.Show() self.lastTime = 0

def OnUpdate(self):
    val, self.lastTime = timeSleep(self.lastTime,TIME_WAIT)
    if val and player.GetStatus(player.HP) <= 45:
        #Do Your Stuff
        net.SendCommandPacket(5,1)

win = window() win.Show()