[CODE]Ingame Functions( POST YOUR FINDINGS HERE )

02/15/2014 17:26 pureleech#31
ive seen some chinese gold farmer bots return to thier botting spot x and y coordinate after killing a monster. is it possible to do it in the macro.lua?

i tried putting my weapon on slot 7 and 8 then add this

CSendSlotBarSkill( 1 )
myWaitSecond( 1 )
CSendSlotBarSkill( 2 )
myWaitSecond( 1 )
CSendSlotBarSkill( 3 )
myWaitSecond( 1 )
CSendSlotBarSkill( 4 )
myWaitSecond( 1 )
CSendSlotBarSkill( 6)
myWaitSecond( 1 )
CSendSlotBarSkill( 7)
myWaitSecond( 0 )
CSendSlotBarSkill( 8)

but it's not switching my weapon. i want to do it so that my weapon won't break when i sleep.
02/15/2014 19:56 ntKid#32
Thx for debugging this pureleech, i will publish the source code for this in few hours, just having a look if there is anything i missed on the source because some people are crashing with this.

I will have a look on the functions you speak of but i need time, the best thing i can do for now is publish the source so people that crash with it can try and fix it.
02/15/2014 21:11 pureleech#33
you're welcome, btw can you also make an option or code to make the bot kill and tab as fast as he can? coz im noticing theres a delay between after killing a monster.
02/15/2014 21:21 ntKid#34
Quote:
Originally Posted by pureleech View Post
you're welcome, btw can you also make an option or code to make the bot kill and tab as fast as he can? coz im noticing theres a delay between after killing a monster.
this is because u have alot of Waiting timers when the mob is already dead, always check if the mob is dead before sending the next skill.

Code:
--[[ LUA SIMPLE EXAMPLE ]]

function myWaitSecond( lpVal )
   lpVal = lpVal or 1
   local dwWait = os.time( ) + lpVal
   while os.time( ) < dwWait do end
end

IsTarget = CGetPlayerTarget( )

if IsTarget == 0 then
	CSelectNearestTarget( )
else
	if CGetPlayerTarget( ) then
		CSendSlotBarSkill( 1 )
		myWaitSecond( 1 )
	end
	if CGetPlayerTarget( ) then
		CSendSlotBarSkill( 2 )
		myWaitSecond( 1 )
	end
	if CGetPlayerTarget( ) then
		CSendSlotBarSkill( 3 )
		myWaitSecond( 1 )
	end
end
And do not remove the timers because the refresh rate of the script is 200 miliseconds if you remove the timers the game engine message pump will have alot of queue causing the game to lag and lose performance.
02/15/2014 21:30 pureleech#35
and also can you add an option to check mobs when there's no one is around? press Q to do it im sorry if im asking too much.
02/15/2014 21:34 ntKid#36
Quote:
Originally Posted by pureleech View Post
and also can you add an option to check mobs when there's no one is around? press Q to do it im sorry if im asking too much.
you are not asking too much i just want to avoid pressing keys thats all, this will need also some more time to research camera position and viewangles.
02/15/2014 21:35 pureleech#37
when i bot i only make my camera topview around 60 degrees then i just make my bot press Q to turn and check other angles.
02/15/2014 21:46 ntKid#38
[UPDATE]( 1 ) ( CHECK FIRST POST )
-Added SelectNearestTarget function using game engine( without sending tab key ) to my research
-Linked AlainProvist research on post #19 to first post.

[UPDATE]( 2 ) ( CHECK FIRST POST )
-Added basic editable LUA multiclient bot example using AFKLoader and the published functions.

[UPDATE]( 3 ) ( CHECK FIRST POST )
-Added Camera ViewDistance variable
-Added Source Code of CLua [Only registered and activated users can see links. Click Here To Register...]
02/15/2014 22:38 pureleech#39
did you update the File Type: zip AFKLoader[Lua].zip on the other thread or i have to apply those codes on my own?
02/15/2014 22:50 ntKid#40
Quote:
Originally Posted by pureleech View Post
did you update the File Type: zip AFKLoader[Lua].zip on the other thread or i have to apply those codes on my own?
Nope. you can use cheat engine for the job( for now ), i need alot of more functions reversed to make a better quality revision on the CLua.
02/15/2014 23:01 pureleech#41
i noticed that when i bot the client just crash, are you experiencing the same too or just me? if so how to resolve it? thank you.
02/15/2014 23:20 TheStupidDog#42
Quote:
Originally Posted by ntKid View Post
Nope. you can use cheat engine for the job( for now ), i need alot of more functions reversed to make a better quality revision on the CLua.
I know SERIOUSLY basic C++ and Assem and have used CE quite a bit. If I can be any help I'd be happy to do so :) I tend to be better at finding bits of broken game and ways to exploit that though.

One thing I'd be interested in seeing if it's easy/possible though is the Eidolon menu (H in game). It'd be nice not to have to keep sending them out and talking to them all the time and automate it, but the interface of it might be tricky to work with I'd imagine.
02/15/2014 23:44 NF725GM#43
Quote:
Originally Posted by AlainProvist View Post

Unfortunatly I know a very good website with the greatest tuto I've ever seen (better than a real teacher actually), but it's in french only :'(.


edit: Holy crap !!! my offsets are no more valid ! I must have failed finding the base offset xD shame on me...

Ok, thanks anyway. Ah, I remember we were using Bloodshed DevC as our dev platform/compiler while I was in uni but can you please tell me which platform/compiler you are using? I really want to help you guys out by sharing my ideas/findings but I need to figure out the tools first.
02/16/2014 10:25 pureleech#44
i hope there will be an auto salvaging item, fortifying an item is pain in the ass
02/16/2014 16:30 AlainProvist#45
Fixed the offsets in my code page 2.