Jump to content
  • 0

Script Command: pull value from a quest_db.txt entry?


Smoke

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   8
  • Joined:  01/06/12
  • Last Seen:  

Hi,

I'm trying to get the mob-id from specific hunting quest in quest_db.txt, for example :

7074,0,2017,1,0,0,0,0,"Rata Hunt"

Is there a way i can pull 2017 or 1 via script command and use it in a script?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   29
  • Joined:  10/11/12
  • Last Seen:  

Before you use "setquest", you can set the ID.

if( checkquest(7074) == -1 ) {

set MobID, 2017;

set MobQnt, 1;

setquest 7074;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   8
  • Joined:  01/06/12
  • Last Seen:  

Thank you for that, but unfortunately my script is more complex than just a single quest. If there isn't a general way I will have to resort to storing the id in a variable as you suggested.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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