Jump to content
  • 0

Achievement for completequest


Rudra

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   2
  • Joined:  04/18/12
  • Last Seen:  

Is there any way to create an achievement when finishing a quest? if yes, what would the group and condition look like?
 

thanks!

Edited by M4rcelo
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 2

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

15 hours ago, M4rcelo said:

Is there any way to create an achievement when finishing a quest? if yes, what would the group and condition look like?
 

thanks!

Hi, you can find achievment commands here.

============================
|15.- Achievement commands.|
============================

Add your custom achieves in db/re/achievement_db.yml or db/pre/achievement_db.yml like:

  - ID: 220060
    Group: "AG_ADVENTURE"
    Name: "Complete my quest"
    Score: 10

and this to your script when quest complete.

achievementcomplete(220060);
*achievementcomplete(<achievement id>{,<char id>})

This function will complete an achievement for the attached player or the supplied
<char id>. The objective requirements are ignored when using this function.
Returns true on success and false on failure.

don`t forget add your custom achievment to client: yourclient\System\achievement_list.lub

	[220060] = {
		UI_Type = 0,
		group = "ADVENTURE",
		major = 2,
		minor = 0,
		title = "Complete my quest",
		content = {
			summary = "Text",
			details = "Text"
		},
		resource = { [1] = { text = "Text" } },
		reward = {},
		score = 10
	},

I think this will work ^_^

Edited by Balfear
  • Upvote 2
  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   2
  • Joined:  04/18/12
  • Last Seen:  

thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...