1
Submit your Script / Trick or Treat 2023 with style!
« on: October 10, 2023, 01:46:48 PM »
So there are a few trick or treat scripts out there, but nothing that really did what I wanted.. so I decided to cobble together my own! I've been using EUO scripts for a long time now.. but got into the game so late, there hasn't been a lot of inspiration to create something because everyone has done a great job before me.. so I was excited to come up with something.
A few things it does:
Things I've learned:
Concatenating persistent variable names between the comma and dot operators is the worst, it definitely gave me the most trouble. In the end.. I just didn't concat anything, so my persistent variables don't have pretty names, but they are dynamic per character. Good enough, I'm over it!
A few things it does:
- No rails or anything, it will look for NPCs up to 20 steps away and use pathfinding to get there. When it can't find anyone new to trick or treat with, within 20 steps, it recalls away.
- Just one runebook, I have it set to use runebook spot 2 for bank, and rune spots 3-16 for trick or treat spots. You need to let the script know how many runes you have.
- It will remember all of the NPCs that it tries to trick or treat with, but actively don't support trick or treating. This means your runs should be more efficient after you make your first couple of rounds.
- It will bank candy and "special" things in separate containers in your bank. Or one container, if you select the same container for both. Not set up to work in housing secures currently.
- Added functionality to reset the NPC ID list the first time you run the script each day after the server restart, since that refreshes NPC IDs (v1.1)
Things I've learned:
Concatenating persistent variable names between the comma and dot operators is the worst, it definitely gave me the most trouble. In the end.. I just didn't concat anything, so my persistent variables don't have pretty names, but they are dynamic per character. Good enough, I'm over it!