I am looking for a quest code but i cant find one.
The quest code i am looking for is like there is a quest giver (an NPC that gives outr quests) and when you talk to him he would say "Hi, would you like to go on a quest?" then there are 2 options, Yes and No, and if the user clicks no the pop up will close, but if the user clicks yes a new pop up wiht various quests will appear.
For example a quest could be called "Kill Jack" and when you get the quest you have to find the target NPC and kill him/her, then after you kill the target NPC something will pop up saying "Weldone you have successfully completed your mission" Then when the clicks "OK" and they are the correct class their reward will be a new skill!
SUMMARY!
So basically its a quest that everyone can do but if someone in a certain class does the quest they will recieve a new skill, money and Exp
ID:158548
Aug 8 2009, 8:25 am
|
|
Part One: Check to see if they have completed the mission already. This can be done with a simple variable, and setting it to TRUE when the mission is complete.
mob/var/IDidDaMission=0
Popup with two options: input proc
Example of code:
Deciding what to do with the results:
if() or switch(), up to you.
Example:
As for the rest of it, you'd need to implement a customized DeathCheck() for your quest mob, and another if() in the NPCs chat verb to check to see if the quest is already done.