What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Need help to understand the API

Biocide

Member
Joined
Jan 15, 2010
Messages
92
Reaction score
2
Hi

I'm just a programmer wannabee that uses some VB/VBA on a regular basis but now looking into the C# language.
I have some problems understanding the API structure and is therefore asking for your help.
I can search and find everything I want in the API I just cant get the method how to use it.

  • Lets say I want to check if I have any planted crops around me, do I use isExists() Doodad Object?
  • And if I want to check if that's an lets say Azalea?
  • If I want to see what skill im channeling?
  • If I want to check channel time left?

If I could get some examples of this I could get a feeling for the structure and I could get an understanding.

I would really appreciate your help.
 
for doodads 'near' you, use getDoodads().
to check if it's an Azalea, use .name or .phaseID on the DoodadObject.
for things about what's happening to your char, it's mostly on the 'me' attribute:
for example, me.isCasting or me.castEndTime.
Remember to get IntelliSense working, or it's going to be impossible.
 
Thanks for your time. I have looked in to getDoodads() and .name and me. I just did an World Farmer test plugin and it looks like it:

Looking for named pick able Doodad in zone.
If it finds any it gathers them.
If it doesn't find any pick able it starts to plant

I need to monitor it more tomorrow to be sure there is no problem with it.

Im on my way to bed now but if anyone wants to try it ill post it here.
If it works as it should I could post it in the plugin section.

Im on my way to bed now, but if anyone want to bug test it ill post it here.
If everything working as it should ill post it to the Plugin section tomorrow.

Its set to plant Azalea seeds and gather Azaleas that you will get if you plant in a Temperate zone (not Mature Azalea).
The zone is set to a very small area for testing, you can change this in the code.

Code:
REMOVED CODE
Go to: [URL]https://www.thebuddyforum.com/archebuddy-forum/archebuddy-plugins/professions-crafting/182253-plugin-world-farmer-world-farm-plugin.html[/URL]
For latest code
 
Last edited:
np, good luck.
If you ever find how to mount on vehicles, please tell me (:
 
Back
Top