Fleeing Turkeys Thanksgiving Event
For a custom event on my server, I am working on a multi-part event for Thanksgiving. Part of that event will be for players to chase and kill Gobblers (AKA Turkeys). I wrote a script that I thought might be useful to others either as a reference, or to do something similar.
What this script does, is it looks for clients withing a certain range of it. If it finds a client, it starts running around in a distanced area of the client. It will follow them to an extent, but always stays at range. If they try to chase it, it will just run from them like mad. It is set so that when it is running, it will stay in the same quadrant relative to the client, so it won't cross them trying to get to another loc nearby. The key to this event is to invite a friend to do it with you. If 2 players get within a certain range of the Gobblers, they slow their speed and don't run nearly as far from the clients. So, then they can actually kill them. But, solo, they are nearly impossible even for the fastest bard. The setup for using this script as-is, would be set in The Overthere and would use the Cockatrice race #96. The Cockatrice should be set to about run speed 5 or 6, and should be set to Type H so it won't aggro. You can also make it immune to spells, speed changes etc, so that they aren't too easy to kill. I am going to have mine setup to only be killable by a special NO RENT bane weapon that is specifically made for this quest. This quest should be pretty easy to test in just about any scenario, but it works best in outdoor zones. For indoor, it would require more code to help define the shape of the room they are in. Even if no one really wants to use it for chicken chasing, I think it has some interesting stuff for finding nearby clients that should be useful to almost any admin that makes custom events :) Code:
# Fleeing Gobbler Script |
:-D Neat script. Should work well for well for a Club the Baby Seals event in Iceclad. :-D
|
I edited the code some and tweaked it a bit more too. One of the things I added was a way for it to run from the closest client, instead of just the highest client entityID in range. But, the main thing I added is an area limitation so you can set the min/max x/y to set it to only run in that area. I think all little issues have been worked out. Feel free to try putting this script on an NPC near the PoK portal in the Overthere, just to check it out quickly. It is pretty fun lol. Or, feel free to check out Storm Haven in the week or so after Thanksgiving when it will be running for all levels and easy to get to :)
|
just wanted to say...
this is freaking hillarious! good creative original work Trevius! |
Too bad you can't add a custom .mp3 to the event... I would play Benny Hill's theme song.
|
Quote:
I still have more work to do on it and maybe 1 or 2 more event parts for the total event, but it should be pretty awesome when it is all done lol. The pathing part that was submitted in this thread should be complete though. If I do any more tweaks, I will update the script here with them. A couple of my players and me were having fun just testing this script and getting it all tuned last night. We even joked about how funny it would be to have a Giant Raid version that the whole raid has to chase to make it run slower :P I always try to come up with original ideas for events, and this one came to me when I was thinking about Thanksgiving and the phrase "chicken chasing" came to mind. LOL, I think this event fits that phrase pretty well. With all of the work I put into it, it is kinda sad that it will only be temporary. But, I do think the running code can be useful in other permanent encounters on my server in the future. So, it is all worth it :) Note: Due to the huge numbers of checks this script runs, you probably would want to make sure you aren't logging quests when you are running it. I know my logs were getting huge when I had an issue with the quest that was spitting out errors non-stop while it was running. Basically, you can check if it is an issue by starting the script, and let it run around you for a couple of minutes and check to see if your log files are growing at an insane rate. At one point, I had 12GBs of quest error logs lol. That issue was resolved though, so hopefully this isn't a problem for anyone. I wanted to make sure to point it out incase anyone saw a problem with it creating huge logs. |
All times are GMT -4. The time now is 02:10 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.