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

06/09/2021 14:58 vojtani#16
@[Only registered and activated users can see links. Click Here To Register...] 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.
06/09/2021 15:04 martinx1#17
Quote:
Originally Posted by vojtani View Post
@[Only registered and activated users can see links. Click Here To Register...] 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.
06/09/2021 16:04 vojtani#18
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 :D
06/09/2021 20:43 martinx1#19
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 :D
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.
06/10/2021 00:56 theashmaster#20
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 :D
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
06/13/2021 04:31 rachadopt#21
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
06/13/2021 14:45 martinx1#22
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.
06/13/2021 22:03 m2yeet#23
maybe a possible add for attack and especially movement speed
06/14/2021 01:23 martinx1#24
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.
06/14/2021 15:57 m2yeet#25
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 :)
06/14/2021 16:28 martinx1#26
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.
06/14/2021 18:51 m2yeet#27
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? :)
06/14/2021 21:11 martinx1#28
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.
06/20/2021 15:30 romanhast#29
It's a very useful library for developers, thank you, my question is is it possible to use python modules in c++?
06/20/2021 21:33 senpaiex#30
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;
[Only registered and activated users can see links. Click Here To Register...]