nfeiof22222 2 Posted February 3 Share Posted February 3 When the target that can be attacked is a humanoid creature, how should this judgment statement be written in C code? Thanks for your help! Skemez and nax 2 Link to comment https://wrobot.eu/forums/topic/15604-seeking-help-on-the-conditional-statement-of-fight-class/ Share on other sites More sharing options...
Droidz 2752 Posted February 7 Share Posted February 7 Hello, you can use if (wManager.Wow.ObjectManager.ObjectManager.Target.CreatureTypeTarget == "Humanoid") { // cast your spell here } nax 1 Link to comment https://wrobot.eu/forums/topic/15604-seeking-help-on-the-conditional-statement-of-fight-class/#findComment-69900 Share on other sites More sharing options...
nfeiof22222 2 Posted February 10 Author Share Posted February 10 On 2/7/2025 at 8:08 PM, Droidz said: Hello, you can use if (wManager.Wow.ObjectManager.ObjectManager.Target.CreatureTypeTarget == "Humanoid") { // cast your spell here } Thanks for your help! Mr. Droidz Link to comment https://wrobot.eu/forums/topic/15604-seeking-help-on-the-conditional-statement-of-fight-class/#findComment-69903 Share on other sites More sharing options...
nfeiof22222 2 Posted February 10 Author Share Posted February 10 On 2/7/2025 at 8:08 PM, Droidz said: Hello, you can use if (wManager.Wow.ObjectManager.ObjectManager.Target.CreatureTypeTarget == "Humanoid") { // cast your spell here } HI Mr.Droidz !Write here as per the code you gave, get a bunch of errors. It seems that I didn't express it clearly, and I should have asked how to write it in C Sharp Code 1.bmp Link to comment https://wrobot.eu/forums/topic/15604-seeking-help-on-the-conditional-statement-of-fight-class/#findComment-69907 Share on other sites More sharing options...
Droidz 2752 Posted February 10 Share Posted February 10 Do you use an updated version of the bot ? Can you share the full log file please? How and where do you run this code? Link to comment https://wrobot.eu/forums/topic/15604-seeking-help-on-the-conditional-statement-of-fight-class/#findComment-69908 Share on other sites More sharing options...
nfeiof22222 2 Posted February 11 Author Share Posted February 11 11 hours ago, Droidz said: 您是否使用机器人的更新版本?您能分享完整的日志文件吗?您如何以及在何处运行此代码? Yes, the bot version has been updated to 2.8.2 I added this code to the FC skill item. I know it may not be correct to add it this way. So I'd like to ask how to fill in the code I need if it's FC CShrapCode here. Thanks again! Link to comment https://wrobot.eu/forums/topic/15604-seeking-help-on-the-conditional-statement-of-fight-class/#findComment-69911 Share on other sites More sharing options...
Droidz 2752 Posted February 11 Share Posted February 11 in "Value" put only this code wManager.Wow.ObjectManager.ObjectManager.Target.CreatureTypeTarget == "Humanoid" Link to comment https://wrobot.eu/forums/topic/15604-seeking-help-on-the-conditional-statement-of-fight-class/#findComment-69912 Share on other sites More sharing options...
nfeiof22222 2 Posted February 12 Author Share Posted February 12 thanks , it's work nice Link to comment https://wrobot.eu/forums/topic/15604-seeking-help-on-the-conditional-statement-of-fight-class/#findComment-69915 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now