Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. --[[---------------------------------------------------------
  2. Name: Servers
  3. -----------------------------------------------------------]]
  4.  
  5. If you're looking for very good servers whether it's for garry's mod or other games, then please check out www.KDServers.com
  6.  
  7. --[[---------------------------------------------------------
  8. Name: Creating a Quest.
  9. -----------------------------------------------------------]]
  10.  
  11. If you would like to know where to start & what to look for when you're creating a quest please watch this video: https://www.youtube.com/watch?v=5cYiKu2_N-I -- old will be updated.
  12.  
  13. --[[---------------------------------------------------------
  14. Name: Quest Variables & Functions.
  15. -----------------------------------------------------------]]
  16. JILL.CreateQuest( "unique_quest_identifier", "Quest name", {
  17.  
  18. description = string; description of quest,
  19. objective = string; objective of quest
  20. reward = table; reward you're giving the player for completing the quest, available rewards are, "darkrp_money", "pointshop_points", "vrondakis_xp", "weapon"
  21. repeatable = boolean; Is the quest repeatable?
  22. cooldown = number; If the user fails to complete the quest and or completes it, what should the cooldown be for it? - If this is not set then we will be using the default cooldown time which is in the config.
  23. completiontime = number; How long does the user have to complete it? - If this is not set then we will be using the default completion time which is in the config.
  24. entity = string; the entity you're using for this quest, I used "book" for the 'Retreive the Book' Quest, and "noodles" for the 'Starvation Quest.' - If you're not going to use an entity, simply put NULL inside of a string
  25. refusetype = string; available options are "whitelist"; "blacklist" - all lowercase, remember that.
  26. refuse = table; A table of team names that are unable to accept this quest.
  27. OnAccept = function; has the "player" argument( function( ply ) ). This is called when a player accepts this quest.
  28. OnComplete = function; has the "player" argument( function( ply ) ). This is called when a player completes this quest.
  29.  
  30. } )
  31.  
  32. Heres an example of using JILL.CreateQuest.
  33.  
  34. JILL.CreateQuest( "Custom_Quest_1", "My super example quest", {
  35.  
  36. description = "Our description",
  37. objective = "Our objective.",
  38. reward = { [ "darkrp_money" ] = 1000, [ "weapon" ] = "weapon_357" },
  39. entity = "NULL",
  40. refusetype = "whitelist",
  41. refuse = { [ "Civil Protection" ] = true, [ "Civil Protection Chief" ] = true, [ "Citizen" ] = true },
  42. repeatable = false,
  43. cooldown = 5,
  44. completiontime = 600
  45. OnAccept = function( ply )
  46.  
  47. ply:MessageClient( "good", "This is an exmaple" )
  48.  
  49. end,
  50. OnComplete = function( ply )
  51.  
  52. ply:MessageClient( "good", "This is another example" )
  53.  
  54. end
  55.  
  56. } )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement