Task Reward, Radiant Crystals?
Not really sure where to put this, didn't think it belonged in the quest folder.
Made a Task on the EoC tasks window .. it's functioning perfectly but I'm wondering if there's a way to make it reward radiant crystals? I know I could put single item reward in and have it reward A radiant crystal but I want my task to give 40 of them. As my workaround to this issue I planned on having the task reward everyone(group) a "voucher" and then the voucher can be handed in for 40 radiant crystals. Would that be the easiest way to do this or is there a way I can have the actual task reward radiant crystals? Thanks! |
If the current task code doesn't allow charges, then you can have a quest controlled reward give out 40 RCs.
|
Quote:
|
Quote:
Use your global_player script in EVENT_TASK_COMPLETE Example: Code:
sub EVENT_TASK_COMPLETE{ |
Quote:
What should I name it .. name of the task or like name of the final mob in the task? |
No, global/global_player.pl
This is a player script that is responsible for handling player events. So as a task is completed, that sub EVENT is triggered. In which $task_id passed through it as the current task that the client has completed. You just need to check for that task id and complete the task. You could do something like this just to test ingame: Code:
sub EVENT_TASK_COMPLETE{ |
Okay, I understand now - going to play with it a bit and get it to work. I like that a lot more than having to hand out a voucher. Figured there had to be some way to do it but I haven't played with any global_player stuff yet so didn't know about it :P
Thanks Akka! |
Quote:
|
One thing of note to add to what Akkadius said. global_player.pl works in any zone. THis means the logic fires everytime you complete a task in any zone.
If your task is impossible to complete in more than one zone, then you should put the code in the player.pl for that zone. Yes for a single task or even a hundred it will really not make a big difference. But for a hundred tasks on a server where 10 or 20 people are completing tasks at the same time, it can start to have an impact on performance. |
If you put this in global_player.pl and you find it not working, make sure all your zones have a player.pl that you'd like the task to be completed it, the player.pl may be empty, but it's necessary to have one for global_player.pl to work.
|
Sorvani/KK,
So, instead of using the global_player.pl I could create a "player.pl" in the zone where the task will be completed and that will also work? |
Yes, that could work as well. Global_player.pl is just for things you want to be allowed on the global side, but if you just want one zone you can put a player.pl in that zone's folder and do the same thing.
|
All times are GMT -4. The time now is 07:40 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.