Quest Commands for Temp Race, Texture, Size and Gender Changes
As you can see in the post, this was actually submitted by Striat in this thread:
http://www.eqemulator.net/forums/sho...573#post147573 I take no credit for this code, but I figured that if he posted it openly on the forums that he would have no problems if it was to be added to the source. I think these quest commands could be very useful and could be used to make some creative and fun new quests and events. As far as I know, there is no way to do any of this with the currently available commands. If so, then, there is obviously no need for this to be added, but if not, then I think this would be a great addition to quest commands. The names of the commands and the actual way it works are probably all ok to be adjusted however needed. It might not be a bad idea to reduce this all down into just 1 command with a few options as stated by Striat in the quote below. It could be something like this: Code:
quest::setillusion(<$mobid or $userid>,<illusion type option>,<Illusion ID#>); Code:
quest::setillusion($userid,race,123); A second example using this possible format would be: Code:
quest::setillusion($mobid,texture,3); Quote:
I will probably try to adjust this where I think it is needed and try it out on my server. I am sure I can get the commands renamed, but I am not so sure that I can figure out how to make them all do it in 1 single command like I posted above. It isn't quite necessary to have them all in 1 command, but I think it might make it cleaner and simpler to use. And, Striat, if you have any problems with me posting this, or this going into the code, let me know. I am sure you would be credited for it 100% if so. I certainly don't deserve or want credit for it. I just thought it looked really cool and is a shame to let it go to waste! |
I added this into my source updates and it works great so far. I left it as-is, because after I looked it over further, it seemed great as it was. It might be nice to have them all in 1 command, but this list of commands is simple to remember and use.
I even wrote a little quest for an NPC I made at the spawn point in Nexus where everyone gates to and where all new players pop into. It sets all players that zone in to have a random illusion from the entire global race lists minus player races. It also changes textures sometimes if the race has the texture it selects randomly. Mainly just a fun little quest. I know this isn't the quest section, but here it is if anyone is interested: Code:
sub EVENT_SPAWN { I am going to update my source files that I posted in another section for anyone to download if they so wish. It will include all of the previous updates plus this new feature. |
All times are GMT -4. The time now is 04:46 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.