u need to add it in bot.csQuote:
I need to add at part of jumping?
Mob M = GetClosestMonster(C);
if (M == null)
{
Mob M = GetClosestMonster(C);
if (M == null)
{
RandomJump(C);
}
Quote:
u need to add it in bot.cs
then add it under this line:
so it should look like thisPHP Code:Mob M = GetClosestMonster(C);
if (M == null)
{
the only problem is it jumps so fast and dcsPHP Code:Mob M = GetClosestMonster(C);
if (M == null)
{
RandomJump(C);
}
btw, anyone managed to get looting working?
I haven't tested my code for ninja yet. But I can't tell you this. I see 2 CliJump in a jump routine. Even though bot is using queue to dispatch the commands, I am not sure what kind of affect this can cause on client (TQ GUI). I think that could be your problem. I have client update (CliJump) for every second to refresh if current location needs to be refreshed.Quote:
Hmm... It works for me but your source has some major bugs .. i mean at jumping maybe you need to change the Clijump and the oters ..
The problem is like at the speedhack .
2-3 jumps to fast = dc
I was tryed to decrease the speed
/speed jump 600
It works nicely but has problem with update , sp
/speed update 150
Works better but after few kills w/out FS gone jump crazy random but wont hit moobs ;))=))
You have skype ? maybe i can send you some files
not funny warlax not all of us learned C++ or other coding things like you..Quote:
lolololol @ the n00bs
sry i was afk , i don't have skype only yahoo: youssef9449Quote:
not funny warlax not all of us learned C++ or other coding things like you..
I cant learn by reading books or other .. i learn by using / modifying / sharing and editing things .. I added Rand jump but when i use it w/out FS i get dc after few mobs
It doesn't matter where methods go... you can call them from anywhere in the source as long as they are public (if not they can only be called from the same class which is... not something really done in this source).Quote:
Amazing ..
This i need to put in the bot.cs nope?
Quote:
not funny warlax not all of us learned C++ or other coding things like you..
I cant learn by reading books or other .. i learn by using / modifying / sharing and editing things .. I added Rand jump but when i use it w/out FS i get dc after few mobs
i wanted to sniff a packet of using an item, but i found alot of packets recorded and i don't know which one is the right packet the packet log looked like thisQuote:
/sniff?
Keeping in mind it has a default directory using the D: drive iirc. You'll wanna go in and change it to w/e folder you want the logs to go to.
Packet Nr 1. Client -> Server, Length : 58, PacketType: 1004
32 00 EC 03 FF FF FF FF D4 07 00 00 3A 07 00 00 ;2 ìÿÿÿÿÔ :
00 00 00 00 00 00 00 00 06 06 42 6F 54 54 65 52 ; BoTTeR
04 41 6C 6C 20 00 06 2F 73 6E 69 66 66 00 00 00 ;All /sniff
00 00 54 51 43 6C 69 65 6E 74 ; TQClient
Packet Nr 37. Server -> Client, Length : 45, PacketType: 10010
25 00 1A 27 AB 30 1A 00 C4 01 B5 01 00 00 00 00 ;% '«0 ĵ
02 D2 C7 06 89 00 06 00 CD 01 B2 01 EA 03 00 00 ;Òlj Ͳê
00 00 00 00 00 54 51 53 65 72 76 65 72 ; TQServer
Packet Nr 38. Server -> Client, Length : 45, PacketType: 10010
25 00 1A 27 AA 55 06 00 00 00 00 00 00 00 00 00 ;% 'ªU
00 00 00 00 93 01 03 00 CC 01 D3 01 00 00 00 00 ; “ ÌÓ
00 00 00 00 00 54 51 53 65 72 76 65 72 ; TQServer
Packet Nr 39. Server -> Client, Length : 48, PacketType: 1022
28 00 FE 03 00 00 00 00 AA 55 06 00 7F 34 1B 00 ;( þ ªU 4
BF 01 C1 01 34 00 00 00 ED 26 00 00 00 00 00 00 ;¿Á4 í&
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ; TQServer
Packet Nr 40. Server -> Client, Length : 48, PacketType: 1022
28 00 FE 03 00 00 00 00 DE 8A 06 00 CE 63 14 00 ;( þ ÞŠ Îc
BB 01 C4 01 02 00 00 00 00 00 00 00 00 00 00 00 ;Ȁ
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ; TQServer
Packet Nr 2. Client -> Server, Length : 88, PacketType: 1009
50 00 F1 03 18 39 CD 21 00 00 00 00 04 00 00 00 ;P ñ9Í!
E4 FD D1 01 00 00 00 00 00 00 00 00 00 00 00 00 ;äýÑ
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
54 51 43 6C 69 65 6E 74 ;TQClient
Packet Nr 41. Server -> Client, Length : 114, PacketType: 1004
6A 00 EC 03 FF FF FF FF E5 07 00 00 3B 07 00 00 ;j ìÿÿÿÿå ;
00 00 00 00 00 00 00 00 06 0A 23 33 35 43 41 42 ;
#35CAB
4F 23 33 35 04 41 6C 6C 20 00 3A 69 20 6E 65 65 ;O#35All :i nee
64 20 61 6C 6C 20 5B 49 74 65 6D 20 4D 65 74 65 ;d all [Item Mete
6F 72 53 63 72 6F 6C 6C 20 35 36 36 38 35 33 35 ;orScroll 5668535
32 39 20 34 32 39 34 39 36 37 32 39 35 5D 20 31 ;29 4294967295] 1
3D 33 35 30 6B 00 00 00 00 00 54 51 53 65 72 76 ;=350k TQServ
65 72 ;er
Packet Nr 42. Server -> Client, Length : 32, PacketType: 10005
18 00 15 27 04 00 00 00 FB 75 06 00 01 00 00 00 ; ' ûu
BA D5 C7 06 00 00 00 00 54 51 53 65 72 76 65 72 ;ºÕÇ TQServer
Packet Nr 43. Server -> Client, Length : 92, PacketType: 1105
54 00 51 04 AA 55 06 00 7F 34 1B 00 ED 26 00 00 ;T QªU 4 í&
01 00 00 00 7F 34 1B 00 00 00 00 00 00 00 00 00 ; 4
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
00 00 00 00 54 51 53 65 72 76 65 72 ; TQServer
Packet Nr 44. Server -> Client, Length : 48, PacketType: 1022
28 00 FE 03 00 00 00 00 DE 8A 06 00 CE 63 14 00 ;( þ ÞŠ Îc
BB 01 C4 01 02 00 00 00 00 00 00 00 00 00 00 00 ;Ȁ
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ; TQServer
Packet Nr 45. Server -> Client, Length : 84, PacketType: 1009
4C 00 F1 03 18 39 CD 21 FF 00 00 00 03 00 00 00 ;L ñ9Í!ÿ
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
00 00 00 00 00 00 00 00 00 00 00 00 54 51 53 65 ; TQSe
72 76 65 72 ;rver
Packet Nr 46. Server -> Client, Length : 80, PacketType: 10017
48 00 21 27 7F 34 1B 00 02 00 00 00 FF FF FF FF ;H !'4 ÿÿÿÿ
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
00 00 00 00 56 01 00 00 00 00 00 00 00 00 00 00 ; V
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ; TQServer
Packet Nr 47. Server -> Client, Length : 32, PacketType: 10005
18 00 15 27 04 00 00 00 FB 75 06 00 01 00 00 00 ; ' ûu
98 D9 C7 06 00 00 00 00 54 51 53 65 72 76 65 72 ;˜ÙÇ TQServer
Packet Nr 3. Client -> Server, Length : 58, PacketType: 1004
32 00 EC 03 FF FF FF FF D4 07 00 00 3B 07 00 00 ;2 ìÿÿÿÿÔ ;
00 00 00 00 00 00 00 00 06 06 42 6F 54 54 65 52 ; BoTTeR
04 41 6C 6C 20 00 06 2F 73 6E 69 66 66 00 00 00 ;All /sniff
00 00 54 51 43 6C 69 65 6E 74 ; TQClient
Packet Nr 2. Client -> Server, Length : 88, PacketType: 1009 50 00 F1 03 18 39 CD 21 00 00 00 00 04 00 00 00 ;P ñ9Í! E4 FD D1 01 00 00 00 00 00 00 00 00 00 00 00 00 ;äýÑ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; 54 51 43 6C 69 65 6E 74 ;TQClient
Not much.Quote:
What things you added to your bot?
For stop hunting you need to type /hunt
=true ( hunt is on , will attack monsters)
=false(hunt is off , wont attack monsters)
do you mind releasing ur source? cause iam tired of endless errorsQuote:
Not much.
Hunting.
* with looting all and dropping normal items.
* runs within calculated path.
* tried to simulate the movement more realistic. Instead of 18 space jump, I do random jump between 1 to 9.
* Priortized looting.
* autopoting.
* auto pot looting when runs out of pots.
To do.
Mining. - this should be easy.
bluemouse. - I need to help on what method to use when you talk to npc.
GUI - I want to add GUI to control properties as well as map.
Quote:
do you mind releasing ur source? cause iam tired of endless errors