Discussion on [Release][GF] eXLib - The Python Advanced Module within the Metin2 Hacks, Bots, Cheats, Exploits & Macros forum part of the Metin2 category.
@ 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.
@ 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.
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.
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
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.
[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