SendUseSkill

05/15/2021 16:50 macnn50#1
Edit : Fixed
05/19/2021 22:51 sad666#2
If you are calling a function containing things related to python from another thread client will crash after a while so you have to call these functions from main thread
05/20/2021 11:02 macnn50#3
Quote:
Originally Posted by sad666 View Post
If you are calling a function containing things related to python from another thread client will crash after a while so you have to call these functions from main thread
I don't call it with python, I directly access and use the clickskillclot function
05/20/2021 14:26 MrCrisp#4
Again, inline assembly?
You can just easily debug it with function pointers. Why don't people understand?
05/20/2021 19:37 sad666#5
I mean you are using __UseSkill function right ? If you check this function source you can see it contains some python calls inside. I might be wrong but your client crashes due to this situation.
05/20/2021 21:35 macnn50#6
Quote:
Originally Posted by sad666 View Post
I mean you are using __UseSkill function right ? If you check this function source you can see it contains some python calls inside. I might be wrong but your client crashes due to this situation.
yes i saw it but what can i do? yes it calls python but we have to use it to suppress skill in the game?
05/20/2021 22:09 sad666#7
try to hook OnUpdate function and execute here instead of createthread. I hope someone knows a better way
05/21/2021 15:34 MrCrisp#8
Quote:
Originally Posted by sad666 View Post
I mean you are using __UseSkill function right ? If you check this function source you can see it contains some python calls inside. I might be wrong but your client crashes due to this situation.
It doesn't matter if __UseSkill calls Python functions.

@[Only registered and activated users can see links. Click Here To Register...]
Why don't you use SendUseSkillPacket directly? Or send the packet on your own?
05/21/2021 22:39 sad666#9
Quote:
Originally Posted by MrCrisp View Post
It doesn't matter if __UseSkill calls Python functions.

@[Only registered and activated users can see links. Click Here To Register...]
Why don't you use SendUseSkillPacket directly? Or send the packet on your own?
I was getting crash randomly when calling this functions from thread i created and using hook solved my problem. I tried to debug but it redirect me python dll
05/29/2021 19:49 macnn50#10
Quote:
Originally Posted by sad666 View Post
I was getting crash randomly when calling this functions from thread i created and using hook solved my problem. I tried to debug but it redirect me python dll
Can you explain how you solved this?