Basher stuff to consider

Helpful things to consider: Do I have the map in the mudlet mapper? Does the game support giving you information over GMCP or MSDP? This can make things a lot easier what kind of combat does the game have? "kill <thing>" and wait till it dies, balance or turn based?
21 Replies
demonnic
demonnicOP2y ago
@Ieraeako we can work through it here. What game is it? ok. iirc they do support gmcp I'd be a little surprised if nobody's built one of these yet
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
demonnic
demonnicOP2y ago
you can check gmcp using lua gmcp and it should either return {} in which case it doesn't support it, or a whole bunch of information. Which I'm pretty sure it'll do.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
demonnic
demonnicOP2y ago
alright. Well, how familiar/comfortable with scripting in general are you?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
demonnic
demonnicOP2y ago
So if you want to walk a predetermined path, you'll want to record what that path is. Either as a table of directions to go or a table of room IDs to visit in order. If you've got the area mapped in the mudlet mapper the second one lets you use the built in pathfinding to just go to the first room versus having to be in the right starting room. Some of that may depend on what you get in lua gmcp.Room (or gmcp.room but most places went with Room) Also, I'm not sure what the game's rules around this sort of automation are but I'd check them before going too far down this rabbit hole. The general loop will be
Go to first room in list (or go to starting room if using directions)
check for things to kill (triggers or gmcp, preferably gmcp)
kill allthethings!
once allthethings! are dead, move to next room (in next direction)
check for things to kill (repeat)

once in the last room, you can choose to go back to the first room, or move to a new area, or just stop.
Go to first room in list (or go to starting room if using directions)
check for things to kill (triggers or gmcp, preferably gmcp)
kill allthethings!
once allthethings! are dead, move to next room (in next direction)
check for things to kill (repeat)

once in the last room, you can choose to go back to the first room, or move to a new area, or just stop.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
demonnic
demonnicOP2y ago
I honestly don't mind either way, but I know some of that games admins hang around and I always want to make sure people are really sure they know it's ok and/or don't care before getting their characters deleted I'd hate to help someone automate something they didn't actually check on and find out they got banned for it, but if they willingly break the rules or it's ok I don't mind. heh
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
demonnic
demonnicOP2y ago
well, I'd look over the output of lua gmcp to see if the list of mobs in the room is in it and then take a look at https://wiki.mudlet.org/w/Manual:Event_Engine as you'll want to use an event handler for when you enter a room to check
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
demonnic
demonnicOP2y ago
I mean, I would go to any room with a mob in it, and then do lua gmcp and look to see if the information is there. Not as part of doing the killing, but as part of figuring out how you'll get the list of mobs to do the killing
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
demonnic
demonnicOP2y ago
Doing work stuff simultaneously so have to go with the more 'teach you to fish' route
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
demonnic
demonnicOP2y ago
ok, so in that case you'll need to use some triggers to parse the mobs when you enter a room and store the data in a table, and triggers for when you kill a mob so you can remove them from said table. https://demonnic.com/a-look-at-trigger-gates-in-mudlet/ this recent blog post was for getting information on 'friendly' mobs but may still prove useful in capturing the overall list of mobs
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
demonnic
demonnicOP2y ago
One step at a time is all it takes. But it is gonna be some work.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
demonnic
demonnicOP2y ago
Yeah, first step would be to get it to move to the rooms you want it to move to in the right order. You wanna move, stop, wait to be told to move on, move, stop, wait to be told to move on once you have that working then you'll swap the 'wait to be told to move on' out for 'check for and kill anything in the room' or approach it from the other side, get it killing everything in a room and moving manually, then have it do the movement.
Want results from more Discord servers?
Add your server