Jump to content
  • 0

Quest 70000 ( bug ) ?


Question

9 answers to this question

Recommended Posts

Posted (edited)

you have exceeded the default Quest ID Limit ?

trunk/src/common/mmo.h

#define MAX_QUEST_DB 2000 //Max quests that the server will load

quest.c

int quest_read_db(void) {
.....
   while(fgets(line, sizeof(line), fp)) {
       if (k == MAX_QUEST_DB) {
           ShowError("quest_read_db: Too many entries specified in %s/quest_db.txt!\n", db_path);
           break;
       }
......
       quest_db[k].id = atoi(str[0]);
       quest_db[k].time = atoi(str[1]);
......
       k++;
   }
}

that MAX_QUEST_DB is just the number of entries a server will load

just like how script command getarraysize limit to 128 <-- our crappy script engine

this one the array limit to 2000

I still remember last year my quest log script -> link

using ID as high as 100100 and it works

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/quest_db.txt

in our SVN its currently already at 60355

if he doesn't show the script I also dunno how to support this

Edited by AnnieRuru
Posted

Are you sure you have the entry in db/quest_db.txt ?

And this message appear when sd doesn't have the quest load, did you verify he had started the quest before attemting to read value from it ?

if(chekquest(70000) < 0 ) mes "quest not started";

Posted

Somewhere you trying to read quest index 70000.

Do a recursive file search on this index or chekquest to figure out where if it's really the case or no

eg linux :

grep -R -i -n 'checkquest(70000' npc/ || grep -R -i -n 'checkquest' npc/ || grep -R -i -n '70000' npc/

(yes that actually 3 chained search, if not found use next search etc)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...