Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Hacks, Bots, Cheats, Exploits & Macros
You last visited: Today at 13:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE]Functions SpeedAttack,MoveSpeed,LockMob,Combo,Instant-Crash,Upgrade{Python}

Discussion on [RELEASE]Functions SpeedAttack,MoveSpeed,LockMob,Combo,Instant-Crash,Upgrade{Python} within the Metin2 Hacks, Bots, Cheats, Exploits & Macros forum part of the Metin2 category.

Reply
 
Old 12/29/2012, 23:27   #16
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1
Received Thanks: 0
ma ajuta si pe mne cineva pls.. ? *** tre sa folosesc scripturile astea plss 3
sexyboy2010 is offline  
Old 12/30/2012, 03:13   #17
 
elite*gold: 5
Join Date: Jun 2009
Posts: 2,262
Received Thanks: 2,596
Joda sagt du nicht benutzen unsere Macht

lol
Quote:
Helfen Sie mir und dem mne jemand PLS. ? Wie man das diese Skripte plss 3 benutzt

lg
kamarun is offline  
Old 12/30/2012, 04:06   #18
 
elite*gold: 0
Join Date: Oct 2011
Posts: 28
Received Thanks: 3
i think a unixtime function to prevent using timers in functions like autopots...
is a better post...
a LOT of python hacks seem to use timers for this..
Code:
functiontoactivatetimer
      timer here...
functiontodeactivatetimer
      timer 999999999999999999999
function here
      code...
      timer
to me code like this is dumb
Code:
AutoPotRed = "on"
class mybla(ui.ThinBoard):
      code to initicialize dialog here....

      self.autopotredlast = self.blabla.unixtime()
      self.potsinterval = 300

      def OnRender(self):
           global autopotsred
           unixtime = self.blabla.unixtime()
           if str(AutoPotRed) == "on":
                 lastusedon = unixtime - self.autopotredlast
                 if lastusedon > self.potsinterval:
                 self.AutoPotRed()

      def AutoPotRed()
           getHP....
           loop through inventory...
           and here...
           if ItemValue == 27001 or ItemValue == 27002 or ItemValue == 27003:
                 self.autopotredlast = self.blabla.unixtime()
                 net.SendItemUsePacket(i)
                 break

class blabla:
	def unixtime(self):
		return long((round(time.clock(),7) + 0.5) * 1000)
I posted the actual unixtime function... because it was one thing on my code
that kinda gave me a hard time to get something that actually works proper for an older python version such as the one in metin
and some parts here and there just to make people understand how to make an autopotter without using timers

with this one you can also decide how long it should take between pots so the autopotting looks "human" instead of potting like 30 pots in 1 second
and it's based on the time when you last potted...so even if you lag...pots will never be sent like 10 at once ;]
setting a timer to 999999999999999999999 or whatever..doesnt actually turn it off..and for players that play all day and keep turning off/on the pots...this adds uselessness to the userspace
also keep in mind that OnRender (only updates when frames are updated)
so if you lagggggg so much that the screen freezes for quite a long time...the autopotting wont work...
so you can use something like OnUpdate to check if the HP is less than 50% of the autopots value..to prevent the char from dying ;]

hope this helps whoever is interested...happy hacking ;]

PS: I still haven't figured out how to bind keys in python scripts..someone care to enlighten me? tks
kikusz is offline  
Old 12/30/2012, 04:20   #19
 
elite*gold: 5
Join Date: Jun 2009
Posts: 2,262
Received Thanks: 2,596
this is the nomral update fixx vor move speed and you make 9999999999999 ?

self time is0.3

lol

setmove its no mor given

lg

wwhy you use c++ clsses you nedd onli importe Time
why

use ce for wall and use fixxed adresses
what this lol
kamarun is offline  
Old 12/30/2012, 04:29   #20
 
elite*gold: 0
Join Date: Oct 2011
Posts: 28
Received Thanks: 3
Quote:
Originally Posted by kamarun View Post
this is the nomral update fixx vor move speed and you make 9999999999999 ?

self time is0.3

lol

setmove its no mor given

lg

wwhy you use c++ clsses you nedd onli importe Time

oks first of all...learn some proper english before you come out talking trash
english is my 3rd language and so I don't accept excuses from anybody that says they can't speak it properly when english is the *universal* language
second...this has nothing to do with move speed or whatever speed hack...
read it again before you make a fool of yourself coming out trying to act smart
moving on from all the **** posted by you since it seems you didn't understand anything I posted...
as for the classes...unixtime gets updated too fast on windows hence the why it needs to stay in another class so you don't get the same millisecond using unixtime() inside the same class...
if you're gonna post something also please leave the bullshit and "lol's" behind
as I'm not here to be judged by you or anybody...
don't have something useful to comment? then DON'T
I accept constructive criticism...not jokes or stupidity

“Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." Albert Einstein
kikusz is offline  
Old 12/30/2012, 04:41   #21
 
elite*gold: 5
Join Date: Jun 2009
Posts: 2,262
Received Thanks: 2,596
ok make you +hust+

hey i read your script and this is Scrap
only 'import Time use this #import Time with c++ or Py you only ned Time


lg
auserdeem arbeiten alle py botbots mit dem time import uter 0.1 secunden beim potten
und jetzt haste trotdem 0 Plan
in deinem script pottet er nur alle 0.5 milesc is langsahm oder
take this z.b is lag frei

Quote:
import time
import ui

class DefaultTimerDialog(ui.ScriptWindow):

def __init__(self):
ui.ScriptWindow.__init__(self)
self.__LoadDialog()
self.eventTimeOver = lambda *arg: None
self.eventExit = lambda *arg: None

def __del__(self):
ui.ScriptWindow.__del__(self)

def __LoadDialog(self):
try:
PythonScriptLoader = ui.PythonScriptLoader()
PythonScriptLoader.LoadScriptFile(self, "defaulttimer.py")

except:
import exception
exception.Abort("ConnectingDialog.LoadDialog.BindO bject")

def Open(self, waitTime):
curTime = time.clock()
self.endTime = curTime + waitTime

self.SetCenterPosition()
self.Show()

def Close(self):
self.Hide()

def Destroy(self):
self.Hide()
self.ClearDictionary()

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):
lastTime = max(0, self.endTime - time.clock())
if 0 == lastTime:
self.Close()
self.eventTimeOver()
else:
pass

def OnPressExitKey(self):
#self.eventExit()
return TRUE
Quote:
if (float(curPoint) / max(1, float(maxPoint)) * 100) < iPotionR:
for eachSlot in xrange(player.INVENTORY_PAGE_SIZE*2):
itemVNum = player.GetItemIndex(eachSlot)
if itemVNum == 27001 or itemVNum == 27002 or itemVNum == 27003:
net.SendItemUsePacket(eachSlot)
break
self.timerDialog = TimerDialogRed()
self.timerDialog.Open(0.1)
self.timerDialog.SetText("")
self.timerDialog.SAFE_SetTimeOverEvent(self.AutoPo tRed)
self.timerDialog.SAFE_SetExitEvent(self.OnCloseRed )
kamarun is offline  
Old 12/30/2012, 04:59   #22
 
elite*gold: 0
Join Date: Oct 2011
Posts: 28
Received Thanks: 3
make you hust? is that a new word or something in english?

oks let me see if I can make you understand..because this here..has nothing to do with
import time or c++ classes...
it's basically explaining how to use a time reference from the last time used when potting
unixtime() is a millisecond function to return current time with milliseconds included
and you basically use it to set time....onrender pops up and checks from last time and uses the autopot if more than 300 milliseconds have passes... (this time is to be configurable so I can change it at any time instead of hard coding it into the code)

vamos ver se consigo fazer-te entender...por causa que isto não tem nada a ver com import time ou classes c++
é basicamente uma explicação de como usar uma referência de tempo da ultima vez que foram usados pots
unixtime() é uma função em milisegundos para retornar o tempo actual com milisegundos incluido
tu básicamente usas ela para defenir o tempo actual...o onrender quando funciona vê o tempo desde a ultima vez que o autopot foi usado e se mais de 300 milisegundos passaram...(este tempo é configuravel para que possas muda-lo a qualquer hora ao invez de mete-lo no próprio código)

a ver se yo te puedo hacer intender... porque esto no tiene nada con import time o clases de c++
esto es basicamente una forma de como usar una referencia de tiempo desde la ultima vez que fueron usados pots
unixtime() es una funcion en milisegundos para retornar la hora actual con milisegundos
uste usala para definir la hora actual..la funcion onrender quando funciona chequa la ultima vez que lo autopot fue usado y se mas de 300 millis passaron...(esto tiempo é configurable para que puedas cambiarlo a qualquier hora al invez de meterlo en lo mismo codigo)

I hope multiple translations work out for you...because it doesn't seem to me like you understand anything I say...

also...I posted exactly..how NOT to use timers..
to prevent clutter
and for an autopotter function it has to be OnRender as OnUpdate is way slower...
but seems like you're learning...constructive criticism..is the way to talk to people..not trash talking


and btw...curTime = time.clock()
this doesn't work for a millisecond return in python 22
which was the reason why I posted my millisecond unixtime function..
because it took a while to get it to work proper...not even the people at irc.. #python on sourceforge.org had any idea how to do it...
they simply told me nobody remembers because python22 is so old
kikusz is offline  
Old 12/30/2012, 05:03   #23
 
elite*gold: 5
Join Date: Jun 2009
Posts: 2,262
Received Thanks: 2,596
yep Hust exaktly for you
and you use time slow for potting
use this Timer no lagg
Quote:
import ui
import snd
import systemSetting
import net
import chat
import app
import locale
import constInfo
import chrmgr
import player
import chr
import game
import background
import uiPhaseCurtain
import interfaceModule
import time

class TimerDialogWithoutTextAndBoard(ui.ScriptWindow):

def __init__(self):
ui.ScriptWindow.__init__(self)
self.__LoadDialog()
self.eventTimeOver = lambda *arg: None
self.eventExit = lambda *arg: None

def __del__(self):
ui.ScriptWindow.__del__(self)

def __LoadDialog(self):
try:
PythonScriptLoader = ui.PythonScriptLoader()
PythonScriptLoader.LoadScriptFile(self, "timerdialogwithouttextandboard.py")

# self.board = self.GetChild("board")
# self.message = self.GetChild("message")

except:
import exception
exception.Abort("ConnectingDialog.LoadDialog.BindO bject")

def Open(self, waitTime):
curTime = time.clock()
self.endTime = curTime + waitTime

self.SetCenterPosition()
#self.SetTop()
self.Show()

def Close(self):
self.Hide()

def Destroy(self):
self.Hide()
self.ClearDictionary()

def SetText(self, text):
self.message.SetText(text)

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):
lastTime = max(0, self.endTime - time.clock())
if 0 == lastTime:
self.Close()
self.eventTimeOver()
else:
pass

def OnPressExitKey(self):
#self.eventExit()
return TRUE
kamarun is offline  
Old 12/30/2012, 05:26   #24
 
elite*gold: 0
Join Date: Oct 2011
Posts: 28
Received Thanks: 3
so you "cough"/hust for me?!?!? alright..whatever that means to you...
read all my posts again...maybe you will understand them eventually..
because to me this seems like a language barrier
and I am a bit tired of explaining to you what it is for since I already translated it even in multiple languages...
and then you "coughed" for me :P
I am even trying not to use apostrophes now so maybe you will understand it through a google translation or something because this discussion is pointless...
kikusz is offline  
Old 01/05/2013, 23:23   #25
 
Syndicаte's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 87
Received Thanks: 12
dont work win 7 32 bit
Syndicаte is offline  
Reply


Similar Threads Similar Threads
Python 2.7 For New Functions
01/29/2013 - Metin2 PServer Guides & Strategies - 24 Replies
Dont need anything just add to m2 path.
Python Functions von Mt2 per C++ Code Inject ausführen?
12/02/2011 - C/C++ - 5 Replies
Hallo, wollte fragen, ob mir eventuell jemand beantworten kann, wie man Python Functions nützt, welche in den Metin2 - pack Files gespeichert sind. Und ob das überhaupt so wie ich mir das vorstelle möglich ist.
Instant Combo Bot
11/18/2008 - Nostale - 24 Replies
Meine Signatur sagt alles EDIT Info : Ihr kommt mit dem IC Bot kommt ihr zu 99% in den IC rein. Ihr kommt in den IB zu 100% rein aber viel schneller als die meisten. Sogesagt man kan sich gleich buffen oder sonstwas.
[Tip] Instant combo (G15 and G11)
06/02/2008 - General Gaming Releases - 0 Replies
If you have a G15 or G11 keyboard, go into the program that lets you bind things to your G keys. Make a new profile for Age of Conan, or use it on default. Now make sure you know your combo's action bar binding. For example my Enraging Wound action bar hotkey is "5" and to execute it I need to do an upper attack "W". In the logitech keyboard program click on one of the unassigned G keys click on the button, and select assign macro. Now do this for your own combo and executions,...



All times are GMT +2. The time now is 13:54.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.