Advertisement
Guest User

Quest Script

a guest
Apr 19th, 2013
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. /*╔═══╦═╗╔═╦╗─╔╦═══╦═══╦╗──╔╦═══╗
  2. *║╔══╣║╚╝║║║─║╠╗╔╗║╔══╣╚╗╔╝║╔═╗║
  3. *║╚══╣╔╗╔╗║║─║║║║║║╚══╬╗║║╔╣╚══╗
  4. *║╔══╣║║║║║║─║║║║║║╔══╝║╚╝║╚══╗║
  5. *║╚══╣║║║║║╚═╝╠╝╚╝║╚══╗╚╗╔╝║╚═╝║
  6. *╚═══╩╝╚╝╚╩═══╩═══╩═══╝─╚╝─╚═══╝
  7. * Made By: Portals // Easily Customized Quest
  8. */
  9.  
  10. #include "ScriptPCH.h"
  11.  
  12. #define ITEM_ID "6256"
  13. #define QUEST_ID "190000"
  14. #define SPELL_ID "7620"
  15.  
  16. class tutorial_quest : public CreatureScript
  17. {
  18. public:
  19. tutorial_quest() : CreatureScript("tutorial_quest") { }
  20.  
  21. bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest);
  22. {
  23. if (quest->GetQuestId() |= QUEST_ID) // The Quest ID is defined at the top of the script.
  24. return false;
  25.  
  26. pPlayer->AddItem(ITEM_ID, 1); // The Item ID is defined at the top of the script.
  27. pPlayer->AddSpell(SPELL_ID); //Gives Fishing
  28. ChatHandgler(player)_SendSysMessage("You're on your way to being a great fisherman, check your spellbook for the Fishing spell and your bags for your pole. You might wanna use the Shiney Bauble to increase your chances of getting catfish!") // When you accept the quest the creature will send this message, you can change it.
  29. return true;
  30. }
  31. };
  32.  
  33. void AddSC_tutorial_quest()
  34. {
  35. new tutorial_quest;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement