Jump to content
  • 0

Question about dynamic questing


klaw

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  08/24/13
  • Last Seen:  

After taking a look at Euphy's edit of Lunar's shop , it got me thinking:

 

What would be the easiest way to make the quest(s) able to take turn ins of single items at once towards a certain item? (in case players can't carry all of the reqs)

 

I know there's a quest script that does this already, but it would be ridiculous to make it store what each character gets individually.

 

I was thinking of creating a new table and having it store things there, unless you guys have a simpler solution?

 

Thanks in advance :)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

There aren't many options. It's easiest to just use character variables to store the count of an item, with name formatting like:

quest_total_<item id>
It would be fairly straightforward to use setd/getd in a dynamic script.

A separate SQL table will be slower, but if you're planning to have a lot of quests it'll be more efficient in the long run. (You don't want to end up with tons of character variables floating around.)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  08/24/13
  • Last Seen:  

That's exactly what I was thinking Euphy. Probably 50ish quests total, that's a lot of character variables. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Hmm, I thought about this before, but, you could always store the information into 1 Player Var using implode & explode combinations. I've written a script for this sort of thing before, but it mainly dealt with giving players random quest requirements than other people but for the same item. To make things unique.

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