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 20:35

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

Advertisement



[Release][GF] eXLib - The Python Advanced Module

Discussion on [Release][GF] eXLib - The Python Advanced Module within the Metin2 Hacks, Bots, Cheats, Exploits & Macros forum part of the Metin2 category.

Reply
 
Old 06/09/2021, 14:58   #16
 
elite*gold: 0
Join Date: Aug 2013
Posts: 6
Received Thanks: 0
@ Thnx man now it works fine. I supose that I have the last question. Is there func to use bravery cape? It is last thing that i need to finish my farming bot. Maybe i should ask if is there some more complex ducumentation about all functions, because i used few functions(i found it on web) that I didnt find in your pdf.
vojtani is offline  
Old 06/09/2021, 15:04   #17
 
elite*gold: 0
Join Date: Jun 2009
Posts: 70
Received Thanks: 149
Quote:
Originally Posted by vojtani View Post
@ Thnx man now it works fine. I supose that I have the last question. Is there func to use bravery cape? It is last thing that i need to finish my farming bot.
No, but i think you can achive that by looping trough every instance and SendAttackPacket. I think this will pull the mobs towords you.
martinx1 is offline  
Old 06/09/2021, 16:04   #18
 
elite*gold: 0
Join Date: Aug 2013
Posts: 6
Received Thanks: 0
I tried this, but i think that i have bad understanding about the list that InstancesList Func returns
Code:
import chat,eXLib,player,net
i = 0
chat.AppendChat(3,"-----------------------------------------------------------------")
#All player arround
vids = eXLib.InstancesList
chat.AppendChat(3,"Monsters List: "+str(vids))
mob = vids.keys()[0]
chat.AppendChat(3,"MOB: "+str(mob))
chat.AppendChat(3,"Is death?: "+str(eXLib.IsDead(mob)))
keys = vids.keys()
chat.AppendChat(3,str(keys))
for x in keys:
	chat.AppendChat(3,str(vids.keys()[i]))
	eXLib.SendAttackPacket(vids.keys()[i],1)

	i = i + 1


#eXLib.SendAttackPacket(vids.keys()[1],1)

my_vid = net.GetMainActorVID()
chat.AppendChat(3,"My vid: "+str(my_vid))
#Older GetPixelPosition
#Can also be used as chr.GetPixelPosition()
#x,y,z = eXLib.GetPixelPosition(my_vid)
#path = eXLib.FindPath(x,y,50000,50000)
#chat.AppendChat(3,"The path found contains "+str(len(path))+" points")
chat.AppendChat(3,"-----------------------------------------------------------------")
I hope that these thousands of questions helps someone
vojtani is offline  
Old 06/09/2021, 20:43   #19
 
elite*gold: 0
Join Date: Jun 2009
Posts: 70
Received Thanks: 149
Quote:
Originally Posted by vojtani View Post
I tried this, but i think that i have bad understanding about the list that InstancesList Func returns
Code:
import chat,eXLib,player,net
i = 0
chat.AppendChat(3,"-----------------------------------------------------------------")
#All player arround
vids = eXLib.InstancesList
chat.AppendChat(3,"Monsters List: "+str(vids))
mob = vids.keys()[0]
chat.AppendChat(3,"MOB: "+str(mob))
chat.AppendChat(3,"Is death?: "+str(eXLib.IsDead(mob)))
keys = vids.keys()
chat.AppendChat(3,str(keys))
for x in keys:
	chat.AppendChat(3,str(vids.keys()[i]))
	eXLib.SendAttackPacket(vids.keys()[i],1)

	i = i + 1


#eXLib.SendAttackPacket(vids.keys()[1],1)

my_vid = net.GetMainActorVID()
chat.AppendChat(3,"My vid: "+str(my_vid))
#Older GetPixelPosition
#Can also be used as chr.GetPixelPosition()
#x,y,z = eXLib.GetPixelPosition(my_vid)
#path = eXLib.FindPath(x,y,50000,50000)
#chat.AppendChat(3,"The path found contains "+str(len(path))+" points")
chat.AppendChat(3,"-----------------------------------------------------------------")
I hope that these thousands of questions helps someone
It should be like this:
Code:
for x in keys:
	chat.AppendChat(3,str(x))
        x,y,z=chr.GetPixelPosition(x)
        eXLib.SendStatePacket(x,y,0,eXLib.CHAR_STATE_STOP,0)
	eXLib.SendAttackPacket(x,0)
Although, it seems like it doesn't work like in 2012. You need to hit the mob, for that i added that SendStatePacket, that is what allows you to create waithack. But you need to be carefull becuase the server only allows you to teleport maximum of 2500 units. I won't get into much detail into how to this, since i'm gonna release a waithack today or tommorrow using this lib.
martinx1 is offline  
Thanks
1 User
Old 06/10/2021, 00:56   #20
 
elite*gold: 0
Join Date: Jun 2011
Posts: 17
Received Thanks: 3
Quote:
Originally Posted by vojtani View Post
I tried this, but i think that i have bad understanding about the list that InstancesList Func returns
Code:
import chat,eXLib,player,net
i = 0
chat.AppendChat(3,"-----------------------------------------------------------------")
#All player arround
vids = eXLib.InstancesList
chat.AppendChat(3,"Monsters List: "+str(vids))
mob = vids.keys()[0]
chat.AppendChat(3,"MOB: "+str(mob))
chat.AppendChat(3,"Is death?: "+str(eXLib.IsDead(mob)))
keys = vids.keys()
chat.AppendChat(3,str(keys))
for x in keys:
	chat.AppendChat(3,str(vids.keys()[i]))
	eXLib.SendAttackPacket(vids.keys()[i],1)

	i = i + 1


#eXLib.SendAttackPacket(vids.keys()[1],1)

my_vid = net.GetMainActorVID()
chat.AppendChat(3,"My vid: "+str(my_vid))
#Older GetPixelPosition
#Can also be used as chr.GetPixelPosition()
#x,y,z = eXLib.GetPixelPosition(my_vid)
#path = eXLib.FindPath(x,y,50000,50000)
#chat.AppendChat(3,"The path found contains "+str(len(path))+" points")
chat.AppendChat(3,"-----------------------------------------------------------------")
I hope that these thousands of questions helps someone
Idk if it has changed (specially in official GF servers, since I've never played on them), but there was a function in the net module which allowed to use an item on an specific slot.

Try importing the net module and call the net.SendItemUsePacket(itemslot) function, that should do it for you.

ps.: to see if this function is still available, you can use something like print(str(dir(net))) or whatever the net module is called nowadays to retrieve all the functions in that module
theashmaster is offline  
Old 06/13/2021, 04:31   #21
 
elite*gold: 0
Join Date: Jan 2013
Posts: 3
Received Thanks: 1
Thank you for sharing, it is great! Also, i have a small question. Is it possible to speed up player movement? Like speed hack?

Thank you once more
rachadopt is offline  
Old 06/13/2021, 14:45   #22
 
elite*gold: 0
Join Date: Jun 2009
Posts: 70
Received Thanks: 149
Quote:
Originally Posted by rachadopt View Post
Thank you for sharing, it is great! Also, i have a small question. Is it possible to speed up player movement? Like speed hack?

Thank you once more
I might export a function to do that.
But for now you can simulate the same by teleporting, using SetPixelPosition and SendStatePacket.
martinx1 is offline  
Thanks
1 User
Old 06/13/2021, 22:03   #23
 
elite*gold: 0
Join Date: Jan 2020
Posts: 21
Received Thanks: 1
maybe a possible add for attack and especially movement speed
m2yeet is offline  
Old 06/14/2021, 01:23   #24
 
elite*gold: 0
Join Date: Jun 2009
Posts: 70
Received Thanks: 149
Quote:
Originally Posted by m2yeet View Post
maybe a possible add for attack and especially movement speed
The movement speed has already been requested, the attack part i didn't understand.
martinx1 is offline  
Old 06/14/2021, 15:57   #25
 
elite*gold: 0
Join Date: Jan 2020
Posts: 21
Received Thanks: 1
Quote:
Originally Posted by martinx1 View Post
The movement speed has already been requested, the attack part i didn't understand.
Fair enough, I was talking about attack speed
m2yeet is offline  
Old 06/14/2021, 16:28   #26
 
elite*gold: 0
Join Date: Jun 2009
Posts: 70
Received Thanks: 149
Quote:
Originally Posted by m2yeet View Post
Fair enough, I was talking about attack speed
I will not be adding that, because is usseless, given that you can SendAttackPacket, to simulate more attacks to a specific target.
martinx1 is offline  
Old 06/14/2021, 18:51   #27
 
elite*gold: 0
Join Date: Jan 2020
Posts: 21
Received Thanks: 1
Quote:
Originally Posted by martinx1 View Post
I will not be adding that, because is usseless, given that you can SendAttackPacket, to simulate more attacks to a specific target.
Ahh I see, do u have a discord where u post updates and so on?
m2yeet is offline  
Old 06/14/2021, 21:11   #28
 
elite*gold: 0
Join Date: Jun 2009
Posts: 70
Received Thanks: 149
Quote:
Originally Posted by m2yeet View Post
Ahh I see, do u have a discord where u post updates and so on?
No, this is the main thread. Any updates will be posted here, but don't expect updates to often as this is a project which i only work on my free time.
martinx1 is offline  
Old 06/20/2021, 15:30   #29
 
elite*gold: 0
Join Date: May 2020
Posts: 3
Received Thanks: 0
It's a very useful library for developers, thank you, my question is is it possible to use python modules in c++?
romanhast is offline  
Old 06/20/2021, 21:33   #30
 
elite*gold: 0
Join Date: Nov 2016
Posts: 245
Received Thanks: 147
Quote:
Originally Posted by romanhast View Post
It's a very useful library for developers, thank you, my question is is it possible to use python modules in c++?
Yes, actually python is already made in C

About your question;
senpaiex is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[RELEASE] Python-Module + Funktionen
09/25/2017 - Metin2 PServer Guides & Strategies - 15 Replies
Moin, ich dachte mir mal, ich trete in die Fußstapfen von hier mehr oder weniger bekannten Mitgliedern (hier ihre Namen verschlüsselt: CxxP & LaSor) und release was, das ich innerhalb von 5 Minuten bekommen kann. Und zwar: Eine vollständige Liste ALLER Module und zugehörigen Funktionen in der Metin2-Binary Die Binary ist von 2010, da ich aber nicht länger als 5 Minuten brauchen darf, konnte ich die neueren Sachen alle noch nicht extracten. Werde ich nachliefern, sobald die gewünschte...
[Release]Python Module Loader fix (musicinstructor's version)
08/23/2014 - Metin2 PServer Guides & Strategies - 26 Replies
Tag Leute, war eben verwundert, dass es dafür noch keinen fix auf epvp gibt. Daher hier ein kurzer Guide: - python22.dll oder python27.dll mit HxD o.Ä. öffnen - nach diesen beiden Text-Strings suchen (Strg + F): PyRun_SimpleFile PyRun_SimpleString - Jeweils die Strings durch etwas anderes ersetzen



All times are GMT +1. The time now is 20:35.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.