Jump to content
  • 0

Quest Log System Additional Objectives...


Elijah23

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Hi everyone!.. I don't know where to put this, so decided to put it here...

I have done a quest log script already and functioning properly... What I wanted to do is add Item Objectives and more Mob Objectives cause the quest log system is limited to 3 mobs objectives as far as I know... (sorry if I'm wrong)...

And I think that it could be done through a script... /ok

Already tried putting it in arrays but I'm still having a hard time that's why I decided to ask for help.. :D Thanks.. :)

But if ever someone knows how to do it src mod, would you mind to share?.. :D

Thanks in advance.. :)

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   285
  • Joined:  12/19/11
  • Last Seen:  

Edit common/mmo.h

#define MAX_QUEST_OBJECTIVES 3 //Max quest objectives for a quest

I didn't check, but probably you'll have to edit all entries in db/quest_db.txt as well (to match new number of objectives)

Item objectives are usually handled by script, because there is no real need to this in another fashion.

if(countitem(512) >= 10) // has 10 apples
{
 // do something (quest done)
}
else
{
 // do something else (quest not done yet)
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Edit common/mmo.h

#define MAX_QUEST_OBJECTIVES 3 //Max quest objectives for a quest

I didn't check, but probably you'll have to edit all entries in db/quest_db.txt as well (to match new number of objectives)

Item objectives are usually handled by script, because there is no real need to this in another fashion.

if(countitem(512) >= 10) // has 10 apples
{
 // do something (quest done)
}
else
{
 // do something else (quest not done yet)
}

Thanks for your reply sir Gepard.. /ok

Follow up questions regarding that.. If I'm going to increase the Max Quest Objective, should I add a table in sql?...

And regarding the item objective, yes I'm using countitem.. But I'm going to add multiple items which will use

if (countitem (512) == 10 && countitem(513) == 100 and so on

And I want to make the item id to be get from an array...

Like, setarray .requirements,512,513,514,and so on..

And make it show in the npc like this...

quest1a.jpg

Tried combining my script with the dynamic quest menu made by Lunar, but still no avail.. :D

Thanks in advance.. :)

Edit: Already added custom item objective...

Edited by wakoko321
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...