SC: Auto Shadow spell

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderators: Moderators, Developers

Message
Author
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: SC: Auto Shadow spell

#41 Post by EternalHarvest »

Dark Airnel wrote:The autocastable skills is being displayed now but the window stays there. It seems it's waiting for a response or a command from the use (which I do not know).
There's no dedicated command, but there's autoSpell config option for that.
Dark Airnel wrote:My computer lagged considerably after typing "ss 2286" on the console and then it displayed an error message "Out of Memory!". Earlier I used wxstart.exe and I think the same thing happened although when using wxstart.exe, it froze to the point I could not see whether ASS was successfully casted or not. The Out of Memory message came out while using start.exe.
Dark Airnel wrote:Then I sent the packets that I recorded using WPE. It was suppose to be the packet sent by the client to the server after picking Firebolt but it didn't work that way. There is like a packet in both Send and Receive field, that changes in every cast.
Can you provide examples you've recorded? Both Receive and Send.

Dark Airnel
Been there done that!
Been there done that!
Posts: 133
Joined: 09 Oct 2009, 01:43
Noob?: No

Re: SC: Auto Shadow spell

#42 Post by Dark Airnel »

ASS skill on both set is Firebolt learned to lvl 10.
Set 1:

Code: Select all

1  Hide  Hide  10  Send  
0000  38 04 01 00 DB 01 C0 88 1E 00                      8.........

2  Hide  Hide  25  Recv  
0000  FB 07 C0 88 1E 00 C0 88 1E 00 00 00 00 00 DB 01    ................
0010  00 00 00 00 08 01 00 00 00                         .........

3  Hide  Hide  48  Recv  
0000  B0 00 07 00 35 07 00 00 3F 04 B5 00 C0 88 1E 00    ....5...?.......
0010  01 C0 27 09 00 01 00 00 00 00 00 00 00 00 00 00    ..'.............
0020  00 1A 01 DB 01 01 00 C0 88 1E 00 C0 88 1E 00 01    ................

4  Hide  Hide  10  Send  
0000  38 04 0A 00 EE 08 C0 88 1E 00                      8.........

5  Hide  Hide  25  Recv  
0000  FB 07 C0 88 1E 00 C0 88 1E 00 00 00 00 00 EE 08    ................
0010  00 00 00 00 1A 03 00 00 00                         .........

6  Hide  Hide  83  Recv  
0000  B0 00 07 00 E0 06 00 00 3F 04 2E 00 C0 88 1E 00    ........?.......
0010  01 6C 07 00 00 00 00 00 00 00 00 00 00 01 00 00    .l..............
0020  00 3F 04 5F 00 C0 88 1E 00 01 FF FF FF FF 01 00    .?._............
0030  00 00 00 00 00 00 00 00 00 00 42 04 0A 00 01 00    ..........B.....
0040  00 00 13 00 1A 01 EE 08 01 00 C0 88 1E 00 C0 88    ................
0050  1E 00 01                                           ...

7  Hide  Hide  8  Recv  
0000  B0 00 07 00 03 07 00 00                            ........

8  Hide  Hide  8  Send  
0000  43 04 01 00 00 00 13 00                            C.......

9  Hide  Hide  34  Recv  
0000  96 01 5F 00 C0 88 1E 00 00 3F 04 89 01 C0 88 1E    .._......?......
0010  00 01 E0 93 04 00 01 00 00 00 00 00 00 00 00 00    ................
0020  00 00                                              ..
Casting of ASS starts on #4 (38 04 0A 00 EE 08 C0 88 1E 00). The packet send after choosing the skill Firebolt is on #8 (43 04 01 00 00 00 13 00).

Set 2:

Code: Select all

1  Hide  Hide  11  Send  
0000  89 00 61 39 33 34 00 DC 68 C5 00                   ..a934..h..

2  Hide  Hide  6  Recv  
0000  7F 00 0E 22 65 05                                  ..."e.

3  Hide  Hide  10  Send  
0000  38 04 0A 00 EE 08 C0 88 1E 00                      8.........

4  Hide  Hide  25  Recv  
0000  FB 07 C0 88 1E 00 C0 88 1E 00 00 00 00 00 EE 08    ................
0010  00 00 00 00 1A 03 00 00 00                         .........

5  Hide  Hide  83  Recv  
0000  B0 00 07 00 FE 06 00 00 3F 04 2E 00 C0 88 1E 00    ........?.......
0010  01 6C 07 00 00 00 00 00 00 00 00 00 00 01 00 00    .l..............
0020  00 3F 04 5F 00 C0 88 1E 00 01 FF FF FF FF 01 00    .?._............
0030  00 00 00 00 00 00 00 00 00 00 42 04 0A 00 01 00    ..........B.....
0040  00 00 13 00 1A 01 EE 08 01 00 C0 88 1E 00 C0 88    ................
0050  1E 00 01                                           ...

6  Hide  Hide  8  Send  
0000  43 04 01 00 00 00 11 00                            C.......

7  Hide  Hide  19  Recv  
0000  96 01 5F 00 C0 88 1E 00 00 10 01 EE 08 00 00 00    .._.............
0010  00 00 00                                           ...

8  Hide  Hide  8  Recv  
0000  B0 00 07 00 21 07 00 00                            ....!...
This time the packet for casting is on #3 (38 04 0A 00 EE 08 C0 88 1E 00). The packet sent after choosing firebolt is on #6 (43 04 01 00 00 00 11 00)

The big chunk of received packet and the packet sent when picking up firebolt seems to change each cast. Otherwise, in theory, I should be able to select firebolt by resending 43 04 01 00 00 00 11 00.

B0 00 07 00 E0 06 00 00 3F 04 2E 00 C0 88 1E 00 - fragment of 1st set received
43 04 01 00 00 00 13 00 - 1st set sent
B0 00 07 00 FE 06 00 00 3F 04 2E 00 C0 88 1E 00 - fragment of 2nd set received
43 04 01 00 00 00 11 00 - 2nd set sent

I only know they are hex codes but I don't know really what they mean. Sorry for the terminologies I used.

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: SC: Auto Shadow spell

#43 Post by EternalHarvest »

Well, packet with ASS's skill list stays the same, that's it:

Code: Select all

# 6  Hide  Hide  83  Recv
42 04 - switch
0A 00 - length in bytes
01 00 00 00 - "why" argument (some constant)
13 00 - Fire Bolt's skill ID
Packet from the client:

Code: Select all

# 8  Hide  Hide  8  Send
43 04 - switch
01 00 00 00 - "why" argument from 0442
13 00 - Fire Bolt's skill ID
It's strange that the second try has a different skill ID.

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: SC: Auto Shadow spell

#44 Post by EternalHarvest »

Dark Airnel wrote:The autocastable skills is being displayed now but the window stays there.
...
"Out of Memory!"
That was with XKore? Can you try without it, and also try autoSpell config option?

Dark Airnel
Been there done that!
Been there done that!
Posts: 133
Joined: 09 Oct 2009, 01:43
Noob?: No

Re: SC: Auto Shadow spell

#45 Post by Dark Airnel »

The Out of Memory error message came out several minutes after casting ASS. I'm not using XKore when I got that message. I took a closer look at it and I found out that after casting ASS, the window where you can select Fire Bolt was shown in the console. However, it stays there, probably because Kore already froze. I could no longer type anything on the console or do anything on it. I can't even close it unless I press CTRL PauseBreak. I tested it again and now checking the memory usage I found out that after typing "ss 2286" memory usage of start.exe rose to 10x the original. From 48,+++.00 it rose up to 500,+++.00. My system lagged and then I have to force terminate start.exe to put things back to normal.

I already set up the skills using useself_ and the autoSpell but it didn't work probably because of the above issue. Everything froze, the bot won't move (same behaviour ingame if you cast ASS and did not select one of the options, the selection window will stay and the character won't move). Console is frozen and it's memory usage continuously increase rapidly.

Config:

Code: Select all

autoSpell Fire Bolt
autoSpell_force 1

useSelf_skill Auto Shadow Spell {
	lvl 5
	sp > 85
	whenStatusInactive Auto Shadow Spell
	inLockOnly 1
	notWhileSitting 1
	notInTown 1
	timeout 10
	disabled 0
	inInventory
}

Dark Airnel
Been there done that!
Been there done that!
Posts: 133
Joined: 09 Oct 2009, 01:43
Noob?: No

Re: SC: Auto Shadow spell

#46 Post by Dark Airnel »

EternalHarvest wrote:Well, packet with ASS's skill list stays the same, that's it:

Code: Select all

# 6  Hide  Hide  83  Recv
42 04 - switch
0A 00 - length in bytes
01 00 00 00 - "why" argument (some constant)
13 00 - Fire Bolt's skill ID
Packet from the client:

Code: Select all

# 8  Hide  Hide  8  Send
43 04 - switch
01 00 00 00 - "why" argument from 0442
13 00 - Fire Bolt's skill ID
It's strange that the second try has a different skill ID.
I'll try capturing more when I got home later today. I can't remember changing skills when I captured those packets.

Dark Airnel
Been there done that!
Been there done that!
Posts: 133
Joined: 09 Oct 2009, 01:43
Noob?: No

Re: SC: Auto Shadow spell

#47 Post by Dark Airnel »

I captured the packets when using ASS with Storm Gust. Here it is:

Code: Select all

1  Hide  Hide  10  Send  
0000  38 04 0A 00 EE 08 19 89 1E 00                      8.........

2  Hide  Hide  25  Recv  
0000  FB 07 19 89 1E 00 19 89 1E 00 00 00 00 00 EE 08    ................
0010  00 00 00 00 E2 02 00 00 00                         .........

3  Hide  Hide  11  Send  
0000  89 00 62 38 32 63 00 3A 96 0A 00                   ..b82c.:...

4  Hide  Hide  83  Recv  
0000  B0 00 07 00 88 07 00 00 3F 04 2E 00 19 89 1E 00    ........?.......
0010  01 D0 07 00 00 00 00 00 00 00 00 00 00 01 00 00    ................
0020  00 3F 04 5F 00 19 89 1E 00 01 FF FF FF FF 01 00    .?._............
0030  00 00 00 00 00 00 00 00 00 00 42 04 0A 00 01 00    ..........B.....
0040  00 00 59 00 1A 01 EE 08 01 00 19 89 1E 00 19 89    ..Y.............
0050  1E 00 01                                           ...

5  Hide  Hide  6  Recv  
0000  7F 00 8F E4 24 29                                  ....$)

6  Hide  Hide  8  Send  
0000  43 04 01 00 00 00 59 00                            C.....Y.

7  Hide  Hide  34  Recv  
0000  96 01 5F 00 19 89 1E 00 00 3F 04 89 01 19 89 1E    .._......?......
0010  00 01 E0 93 04 00 01 00 00 00 00 00 00 00 00 00    ................
0020  00 00                                              ..

8  Hide  Hide  10  Send  
0000  38 04 0A 00 EE 08 19 89 1E 00                      8.........

9  Hide  Hide  25  Recv  
0000  FB 07 19 89 1E 00 19 89 1E 00 00 00 00 00 EE 08    ................
0010  00 00 00 00 E2 02 00 00 00                         .........

10  Hide  Hide  8  Recv  
0000  B0 00 07 00 AF 07 00 00                            ........

11  Hide  Hide  83  Recv  
0000  B0 00 07 00 5A 07 00 00 3F 04 2E 00 19 89 1E 00    ....Z...?.......
0010  01 D0 07 00 00 00 00 00 00 00 00 00 00 01 00 00    ................
0020  00 3F 04 5F 00 19 89 1E 00 01 FF FF FF FF 01 00    .?._............
0030  00 00 00 00 00 00 00 00 00 00 42 04 0A 00 01 00    ..........B.....
0040  00 00 59 00 1A 01 EE 08 01 00 19 89 1E 00 19 89    ..Y.............
0050  1E 00 01                                           ...

12  Hide  Hide  8  Send  
0000  43 04 01 00 00 00 59 00                            C.....Y.

13  Hide  Hide  34  Recv  
0000  96 01 5F 00 19 89 1E 00 00 3F 04 89 01 19 89 1E    .._......?......
0010  00 01 E0 93 04 00 01 00 00 00 00 00 00 00 00 00    ................
0020  00 00                                              ..

14  Hide  Hide  10  Send  
0000  38 04 0A 00 EE 08 19 89 1E 00                      8.........

15  Hide  Hide  25  Recv  
0000  FB 07 19 89 1E 00 19 89 1E 00 00 00 00 00 EE 08    ................
0010  00 00 00 00 E2 02 00 00 00                         .........

16  Hide  Hide  8  Recv  
0000  B0 00 07 00 81 07 00 00                            ........

17  Hide  Hide  83  Recv  
0000  B0 00 07 00 2C 07 00 00 3F 04 2E 00 19 89 1E 00    ....,...?.......
0010  01 D0 07 00 00 00 00 00 00 00 00 00 00 01 00 00    ................
0020  00 3F 04 5F 00 19 89 1E 00 01 FF FF FF FF 01 00    .?._............
0030  00 00 00 00 00 00 00 00 00 00 42 04 0A 00 01 00    ..........B.....
0040  00 00 59 00 1A 01 EE 08 01 00 19 89 1E 00 19 89    ..Y.............
0050  1E 00 01                                           ...

18  Hide  Hide  8  Send  
0000  43 04 01 00 00 00 59 00                            C.....Y.

19  Hide  Hide  34  Recv  
0000  96 01 5F 00 19 89 1E 00 00 3F 04 89 01 19 89 1E    .._......?......
0010  00 01 E0 93 04 00 01 00 00 00 00 00 00 00 00 00    ................
0020  00 00                                              ..

20  Hide  Hide  10  Send  
0000  38 04 0A 00 EE 08 19 89 1E 00                      8.........

21  Hide  Hide  25  Recv  
0000  FB 07 19 89 1E 00 19 89 1E 00 00 00 00 00 EE 08    ................
0010  00 00 00 00 E2 02 00 00 00                         .........

22  Hide  Hide  83  Recv  
0000  B0 00 07 00 D7 06 00 00 3F 04 2E 00 19 89 1E 00    ........?.......
0010  01 D0 07 00 00 00 00 00 00 00 00 00 00 01 00 00    ................
0020  00 3F 04 5F 00 19 89 1E 00 01 FF FF FF FF 01 00    .?._............
0030  00 00 00 00 00 00 00 00 00 00 42 04 0A 00 01 00    ..........B.....
0040  00 00 59 00 1A 01 EE 08 01 00 19 89 1E 00 19 89    ..Y.............
0050  1E 00 01                                           ...

23  Hide  Hide  8  Recv  
0000  B0 00 07 00 FE 06 00 00                            ........

24  Hide  Hide  11  Send  
0000  89 00 31 30 33 39 00 28 C5 0A 00                   ..1039.(...

25  Hide  Hide  6  Recv  
0000  7F 00 85 13 25 29                                  ....%)

26  Hide  Hide  8  Send  
0000  43 04 01 00 00 00 59 00                            C.....Y.

27  Hide  Hide  34  Recv  
0000  96 01 5F 00 19 89 1E 00 00 3F 04 89 01 19 89 1E    .._......?......
0010  00 01 E0 93 04 00 01 00 00 00 00 00 00 00 00 00    ................
0020  00 00                                              ..

28  Hide  Hide  10  Send  
0000  38 04 0A 00 EE 08 19 89 1E 00                      8.........

29  Hide  Hide  25  Recv  
0000  FB 07 19 89 1E 00 19 89 1E 00 00 00 00 00 EE 08    ................
0010  00 00 00 00 E2 02 00 00 00                         .........

30  Hide  Hide  83  Recv  
0000  B0 00 07 00 A9 06 00 00 3F 04 2E 00 19 89 1E 00    ........?.......
0010  01 D0 07 00 00 00 00 00 00 00 00 00 00 01 00 00    ................
0020  00 3F 04 5F 00 19 89 1E 00 01 FF FF FF FF 01 00    .?._............
0030  00 00 00 00 00 00 00 00 00 00 42 04 0A 00 01 00    ..........B.....
0040  00 00 59 00 1A 01 EE 08 01 00 19 89 1E 00 19 89    ..Y.............
0050  1E 00 01                                           ...

31  Hide  Hide  8  Recv  
0000  B0 00 07 00 D0 06 00 00                            ........

32  Hide  Hide  8  Send  
0000  43 04 01 00 00 00 59 00                            C.....Y.

33  Hide  Hide  34  Recv  
0000  96 01 5F 00 19 89 1E 00 00 3F 04 89 01 19 89 1E    .._......?......
0010  00 01 E0 93 04 00 01 00 00 00 00 00 00 00 00 00    ................
0020  00 00                                              ..

34  Hide  Hide  10  Send  
0000  38 04 0A 00 EE 08 19 89 1E 00                      8.........

35  Hide  Hide  25  Recv  
0000  FB 07 19 89 1E 00 19 89 1E 00 00 00 00 00 EE 08    ................
0010  00 00 00 00 E2 02 00 00 00                         .........

36  Hide  Hide  83  Recv  
0000  B0 00 07 00 7B 06 00 00 3F 04 2E 00 19 89 1E 00    ....{...?.......
0010  01 D0 07 00 00 00 00 00 00 00 00 00 00 01 00 00    ................
0020  00 3F 04 5F 00 19 89 1E 00 01 FF FF FF FF 01 00    .?._............
0030  00 00 00 00 00 00 00 00 00 00 42 04 0A 00 01 00    ..........B.....
0040  00 00 59 00 1A 01 EE 08 01 00 19 89 1E 00 19 89    ..Y.............
0050  1E 00 01                                           ...

37  Hide  Hide  8  Send  
0000  43 04 01 00 00 00 59 00                            C.....Y.

38  Hide  Hide  10  Send  
0000  38 04 0A 00 EE 08 19 89 1E 00                      8.........

39  Hide  Hide  42  Recv  
0000  B0 00 07 00 A2 06 00 00 96 01 5F 00 19 89 1E 00    .........._.....
0010  00 3F 04 89 01 19 89 1E 00 01 E0 93 04 00 01 00    .?..............
0020  00 00 00 00 00 00 00 00 00 00                      ..........

40  Hide  Hide  25  Recv  
0000  FB 07 19 89 1E 00 19 89 1E 00 00 00 00 00 EE 08    ................
0010  00 00 00 00 E2 02 00 00 00                         .........

41  Hide  Hide  83  Recv  
0000  B0 00 07 00 4D 06 00 00 3F 04 2E 00 19 89 1E 00    ....M...?.......
0010  01 D0 07 00 00 00 00 00 00 00 00 00 00 01 00 00    ................
0020  00 3F 04 5F 00 19 89 1E 00 01 FF FF FF FF 01 00    .?._............
0030  00 00 00 00 00 00 00 00 00 00 42 04 0A 00 01 00    ..........B.....
0040  00 00 59 00 1A 01 EE 08 01 00 19 89 1E 00 19 89    ..Y.............
0050  1E 00 01                                           ...

42  Hide  Hide  8  Send  
0000  43 04 01 00 00 00 59 00                            C.....Y.

43  Hide  Hide  34  Recv  
0000  96 01 5F 00 19 89 1E 00 00 3F 04 89 01 19 89 1E    .._......?......
0010  00 01 E0 93 04 00 01 00 00 00 00 00 00 00 00 00    ................
0020  00 00                                              ..

44  Hide  Hide  10  Send  
0000  38 04 0A 00 EE 08 19 89 1E 00                      8.........

45  Hide  Hide  25  Recv  
0000  FB 07 19 89 1E 00 19 89 1E 00 00 00 00 00 EE 08    ................
0010  00 00 00 00 E2 02 00 00 00                         .........

46  Hide  Hide  8  Recv  
0000  B0 00 07 00 74 06 00 00                            ....t...

47  Hide  Hide  83  Recv  
0000  B0 00 07 00 1F 06 00 00 3F 04 2E 00 19 89 1E 00    ........?.......
0010  01 D0 07 00 00 00 00 00 00 00 00 00 00 01 00 00    ................
0020  00 3F 04 5F 00 19 89 1E 00 01 FF FF FF FF 01 00    .?._............
0030  00 00 00 00 00 00 00 00 00 00 42 04 0A 00 01 00    ..........B.....
0040  00 00 59 00 1A 01 EE 08 01 00 19 89 1E 00 19 89    ..Y.............
0050  1E 00 01                                           ...

48  Hide  Hide  11  Send  
0000  89 00 38 62 33 61 00 18 F4 0A 00                   ..8b3a.....

49  Hide  Hide  6  Recv  
0000  7F 00 6D 42 25 29                                  ..mB%)

50  Hide  Hide  8  Send  
0000  43 04 01 00 00 00 59 00                            C.....Y.

51  Hide  Hide  34  Recv  
0000  96 01 5F 00 19 89 1E 00 00 3F 04 89 01 19 89 1E    .._......?......
0010  00 01 E0 93 04 00 01 00 00 00 00 00 00 00 00 00    ................
0020  00 00                                              ..

52  Hide  Hide  8  Recv  
0000  B0 00 07 00 46 06 00 00                            ....F...


EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: SC: Auto Shadow spell

#48 Post by EternalHarvest »

It's consistent in this data. 0x59 is Storm Gust.

Dark Airnel
Been there done that!
Been there done that!
Posts: 133
Joined: 09 Oct 2009, 01:43
Noob?: No

Re: SC: Auto Shadow spell

#49 Post by Dark Airnel »

Yes I also noticed it. I may have gotten the earlier packets from different files. However, I still cannot explain as to why Kore seems to hog resources after ASS is casted. Also, in-game, when you successfully casted ASS and then relog, the status remains until the duration of the spell. However, when Kore hang after casting ASS and then the character is relogged, the character does not have the ASS status. I think it's an indication that the ASS was not successfuly casted after all. And if the send and receive are just the same, why is it not possible to completely cast ASS using the send function of Kore? I tried and skill failed error appeared on the console.

Dark Airnel
Been there done that!
Been there done that!
Posts: 133
Joined: 09 Oct 2009, 01:43
Noob?: No

Re: SC: Auto Shadow spell

#50 Post by Dark Airnel »

Is there any update on this? ASS is still not being casted successfully until now. When using the client, the player will have to choose from a selection the skill that he wants to be auto-casted. The player will not be able to move until he chooses a skill from the selection. After selecting the desired skill, that's the only time the SC will get the ASS status and that's the only time the autoskill will be activated.

What's happening in Kore is somewhat incomplete. After casting ASS, the player will be given the selection screen however, there is no command or function to select that skill. So the SC stays on STOP status and from my observation, that is when Kore starts to hog memory. The last time I tried it, Kore's memory usage spiked up to 999,999 (similar to that but not the exact value), then it automatically closes displaying no errors. The only way to effectively use ASS so far while botting is to use XKore 1 and the player should manually choose the desired autocast skill. Please tell me if there is any additional information I should provide to make you guys make this work. Thank you.

Locked