Item Multiquest Turn in Script
Wrote this to help somebody out who was requesting this feature in Discord. Figured should post for anyone else in the future.
Script to simulate how live used to allow item quests to be completed by multiple players. At the time known as "multiquesting". I.e Quest requires 1 bat wing 1 Wolf Pelt 1 Bear Skin If Player A turns in 1 bat wing only, and then Player B turns in the wolf pelt and the bear skin, Player B will receive the reward for completing the quest. This script is probably not the be all end all way to do this, but it works. If you were to use this extensively probably should be converted to a plugin. Code:
#Title: Mulitquest Item Turn in script |
Quote:
especially on a global basis. Thanks Kayen |
I think we've had something like this before, I remember there being a mq_handin or something in the handin plugin somewhere. The only problem I see with a script like this is that entity variables reset when a zone reboots, so if Player 1 hands in item X and then zones out and Player 2 zones in to hand in item Y, the NPC won't remember that it received item X.
|
These are in the check handin plugin. Didn't notice before.
Code:
sub mq_process_items { |
Well that is what i get for not having an up to date plugins folder!
Kingly, if you really wanted it to be zone reset proof, you could exchange the entityvars for npc specific qglobals. |
All times are GMT -4. The time now is 08:38 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.