Jump to content
  • 0

Title as a Quest Reward


OscarScorp

Question


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Is it possible for an NPC to give you a Title?

I plan to make some quests and one of the rewards is a new title.
I've modified my data/luafiles514/lua files/datainfo/titletable.lub to add a few new ones.

What do I need to add in my NPC for it to grant the user a new title?

Thank you in advance! ?

Edit: I just realized this should be in Script Support, sorry!

Edited by OscarScorp
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

create an achievement , and add the title to it as a reward

use "achievementcomplete(<achievement id>{,<char id>})"

now the player have the title

Edited by sader1992
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Perfect!
Created the achievement in:
Server side: db/import/achievement_db.yml
Client side: System/achievement_list.lub

Thank you!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   2
  • Joined:  01/16/12
  • Last Seen:  

On 8/13/2019 at 4:47 AM, OscarScorp said:

Perfect!
Created the achievement in:
Server side: db/import/achievement_db.yml
Client side: System/achievement_list.lub

Thank you!

can you show for me ?

because i've use Ach ID 300001  it's cant finish

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

12 hours ago, coperation said:

can you show for me ?

because i've use Ach ID 300001  it's cant finish

Try with ID: 250000.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   2
  • Joined:  01/16/12
  • Last Seen:  

2 hours ago, OscarScorp said:

Try with ID: 250000.

maybe have Max Achivement id ?

 

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...