snippet of code that makes the fishbot work
the fishbot works fully or it could
it doesn't catch because I only paid for the basic sub no wardrobes and my ebisu is in a wardrobe
so it does everything besides catch
this was wrote for Lik but I definitely plan to expand soon
it releases everything besides Lik
and it would catch Lik but it just autofights them then stops when the stamina hits zero
it types /fish then obtains the fishID if the fishID matches Lik then the bot stops that repeating process and depletes the fish then would catch
if the fishID is not a Lik then it loops the code and keeps looping until it is a Lik
this is what the fishing section of the code looks like
but it's not enough to actually run the code I'll post the full code below
fun fact this code is actually longer than crafter is at 370 lines vs 351 lines
I haven't done the research to add a condition to the way I do my digging loop which allows to stop the loop
It probably is possible but I need to get some sleep
the only "flaw" with this code is after about 30 mins it breaks but you just close reopen and restart
I suspect if I can add a def inside a def I can shorten the code and make it not break but that did not work on my first try so i'll need to do more research
the full code will work if you know how to install Python and Visual Studio code
I wrote this in 3.13.3 32-bit
fishing part of code:
full code:
this is about the biggest win for my computer programmer experience since I learned to turn a .py into a .exe probably even bigger because that was pretty easy
i'm still so excited I managed to actually get this done and make a few things last night and today
I'm a very fast learner and computer programming is a passion of mine
since I learn fast most of the code sticks and once I understand I can usually write it
I do work heavily with google AI which comes down to knowing how to format your search
I had to type "python ctypes ELITEAPI_API int __stdcall GetFishId1(void* apiObject);" about a million times with different ELITEAPI_API lines which google ai would translate how to make the different language code work in python
once I finally understood int bool uint stdcall void and apiobject I got the hang of it
now all those long nights of getting no where when i'm sure someone could of told me in 15 mins
but I actually did it myself with no help besides from google AI
I can finally say I did it
Please enjoy what I have created so far
and know I will love every minute working on this in the future
pc management 8th grade 2006-2007
bcis 9th grade 2007-2008
webpage design 10th grade 2008-2009
bim 11th grade 2009-2010
bim teachers aid 12th grade 2010-2011
cisco networking 12th grade 2010-2011
computer programming college 2012
wrote my first python script in 11th grade (2010)
been at it for 15 years now
from writing crafting compass and learning to add the script to my website
to writing crafter
to finally getting to where I can actually read what is happening in ffxi with my code and use logic to make my programs better
No comments:
Post a Comment