Alright, some coding help would be much appreciated. So grabbed a spider, however, i have tried editing the part about the horse and changed it to "wolfspider" however i get the error message that i need a mount.
my code looks something like this...
return
SUB FindWolfSpider
finditem %mount G_3
set %animal #findid
if #findcnt < 1
something tells me "G_3" is the problem, how do i get the code/ know the code for the wolfspider, i think that is still the horse code.
The %mount is most likely the horse ID. But that is a variable being declared somewhere else. It would look like "set %mount XXXXXX", the Xs being letters or numbers. You would need to change the XXXXXX to whatever the ID of the spider is. The G_3 is telling the script to only look for the item within 3 ground tiles of your character. Your easiest way to find the ID of your spider would be to target it using anything then look in the system variables in EUO to find #LTARGETID. That will be the ID of the last thing you targeted. I also added code to the end of the post to help you get the type and ID.
Also i tried to swap out the club code with a dagger code.
finditem %weapon D_ , #charid
the Club code just had a C before the underscore, i swapped it to a D, with that work?? Thanks in advance
The %weapon is what you need to change. But like above, it is being declared or set somewhere else. The C_ , #charid is telling the script what container to look in. D_ isn't an argument for finditem.
Check out the documentation on
FindItem and
Variables. A lot of scripts just need you to edit variables and if you understand them a bit better you can get a lot of scripts to work for you.
Below is the part of the script you need to change. You should first start with a fresh unedited version of the original script. If you read the comments he left below in his code it says not to edit below the line. Most scripts are only going to have you edit variable values at the very beginning. You'll want to change set %weapon and set %mount. The %mount is going to be your spider ID. Don't change the name, just leave it as %mount to keep things easy. So use something like animal lore to target your spider than look up it's ID under #LTARGETID in the EUO variables. Do the same thing again for your weapon, targeting it with something to get #LTARGETID. The ID will be six digits. The script only has 3 digit items because he's looking for items by type but it's ok to replace it with your 6 digit ID for the sake of being easy. If your weapon breaks or something you will have to change the ID manually. You could also double click your weapon and see what the item type is bye looking under #LOBJECTTYPE and using it instead. Then you wouldn't have to worry about the weapon breaking since it'll just grab the next one.
; SET UP
;===========================================================================================
chooseskill bush Bushido
set %weapon YSF_QOH_ ; ID's the types of weapons - Mace, Club ---- Modify this to whatever weapon type
; you'll be using to train with
set %mount SF_OF_; ID's the types of mounts/animals - White Horse, Brown Horse ---- Modify this to whatever animal
; type you'll be using to train with
set %start #skill
set %attempts 0
set %gains 0
set %starttime #scnt
;============================================================================================
;DO NOT EDIT BELOW THIS LINE
;============================================================================================
Here's a couple easy pieces of code to run to get the ID or Type of an target. Just run each as their own script to get what you want and it'll pop up with a display with the information.
;Finds the Type of an object
;When you press play a target will appear and you have 10 seconds to dlick an object
set #TARGCURS 1
wait 10s
finditem #LTARGETID
wait 5
display ok #FINDTYPE $
halt
;Finds the ID of an object
;When you press play a target will appear and you have 10 seconds to dlick an object
set #TARGCURS 1
wait 10s
display ok #LTARGETID $
halt