Emistry

Utility: [SQL] Mission Board

Recommended Posts

Maybe it's time to contact and pay someone to fix this, since seems abandoned... i will try to pay someone and if i get the fix of this whole script i will  share it with you guys (: 

 

(i will keep the credit of AnnieRuru, Emistry and anyone who worked in this script)

  • Upvote 1

Share this post


Link to post
Share on other sites

 

Well...Same Error

 

 

[Error]:  Loading NPC file: npc/custom/missionfilds.txt

script error on npc/custom/missionfilds.txt line 1019

    parse_line: expect command, missing function name or calling undeclared function

  1014 :        // max mission per npc take by character

  1015 :        .max_mission_per_char = 4;

  1016 :

  1017 :        // predefined values.

  1018 :        .npc_name$ = strnpcinfo(0);

* 1019 :        .server_max_level = getserverdef( 'V'AR_MAX_LEVEL );

  1020 :        setarray .base_job,

  1021 :                EAJ_SWORDMAN,

  1022 :                EAJ_MAGE,

  1023 :                EAJ_ARCHER,

  1024 :                EAJ_ACOLYTE,

 

 

I've updated my rAthena, and no work.

 

i got that same error too so i'm not using it ):

 

Replace * 1019 :        .server_max_level = getserverdef( 'V'AR_MAX_LEVEL ); 

with

.server_max_level = MAX_LEVEL; 

as you are no longer able to use VAR_MAX_LEVEL to call for max level as it is not in the in db/const.txt anymore but moved to src/map/script.c as MAX_LEVEL. There are still other errors in this script however.

Edited by ThisIsSlain

Share this post


Link to post
Share on other sites

 

 

Well...Same Error

 

 

[Error]:  Loading NPC file: npc/custom/missionfilds.txt

script error on npc/custom/missionfilds.txt line 1019

    parse_line: expect command, missing function name or calling undeclared function

  1014 :        // max mission per npc take by character

  1015 :        .max_mission_per_char = 4;

  1016 :

  1017 :        // predefined values.

  1018 :        .npc_name$ = strnpcinfo(0);

* 1019 :        .server_max_level = getserverdef( 'V'AR_MAX_LEVEL );

  1020 :        setarray .base_job,

  1021 :                EAJ_SWORDMAN,

  1022 :                EAJ_MAGE,

  1023 :                EAJ_ARCHER,

  1024 :                EAJ_ACOLYTE,

 

 

I've updated my rAthena, and no work.

 

i got that same error too so i'm not using it ):

 

Replace * 1019 :        .server_max_level = getserverdef( 'V'AR_MAX_LEVEL ); 

with

.server_max_level = MAX_LEVEL; 

as you are no longer able to use VAR_MAX_LEVEL to call for max level as it is not in the in db/const.txt anymore but moved to src/map/script.c as MAX_LEVEL. There are still other errors in this script however.

 

 

Yeah i already did that, my players got a problem, when they relog they lose the kill count of some mobs, i can't set properly the quest time and so on @[email protected] thanks for ther help btw o:!

Share this post


Link to post
Share on other sites

HAHA nomore update for emistry yet still waiting :D

Share this post


Link to post
Share on other sites

Ok,the main problem has been fixed  , but i have another problem on "NPC Limitation" When I try to select the letter A, the letter B is selects

I mean that if i active the letter "A" doesn't work, only the letter "B", and if I select the letter "C" doesnt works,  and works letter "D"

....

and the options when i try select is disordered without alphabetical order

maybe can use increase the *sleep time inside OnInit: label ...

 

 

How do I make the OnNPCKillEvent: Show the mission name instead of the numbers

unfortunately, the way Emistry scripted it, needs to run query_sql every single time to read the `title` from `mission_board` table

and accessing query_sql too frequently can lag a server

well ... I added it, but remains commented

 

make it stop listing the kills after you reached the amount required

this one possible

 

tell you the mission is complete to return to the mission board?

this one require lots of checking ...

its better to just type '@mission' to check your progress

 

And how do i change the cash point reward to free points?

unless you understand the script ... otherwise its even hard to tell how to do it

because everything from zeny to cashpoints are hard-coded

 

 

Yeah i already did that, my players got a problem, when they relog they lose the kill count of some mobs, i can't set properly the quest time and so on @[email protected] thanks for ther help btw o:!

I thought I already fixed them in 1.4 ?

1.6 [paste=ftsocdeysre]

- fix the getserverdef script command

- increase sleep time inside OnInit to make lesser chance of getting unsorted ID

- in commented lines, stop listing the monsters when the kill count reached

- in commented lines, added listing for the mission name instead of mission ID

though, type @mission is a preferable choice

  • Upvote 1

Share this post


Link to post
Share on other sites

 

Ok,the main problem has been fixed  , but i have another problem on "NPC Limitation" When I try to select the letter A, the letter B is selects

I mean that if i active the letter "A" doesn't work, only the letter "B", and if I select the letter "C" doesnt works,  and works letter "D"

....

and the options when i try select is disordered without alphabetical order

maybe can use increase the *sleep time inside OnInit: label ...

 

 

How do I make the OnNPCKillEvent: Show the mission name instead of the numbers

unfortunately, the way Emistry scripted it, needs to run query_sql every single time to read the `title` from `mission_board` table

and accessing query_sql too frequently can lag a server

well ... I added it, but remains commented

 

make it stop listing the kills after you reached the amount required

this one possible

 

tell you the mission is complete to return to the mission board?

this one require lots of checking ...

its better to just type '@mission' to check your progress

 

And how do i change the cash point reward to free points?

unless you understand the script ... otherwise its even hard to tell how to do it

because everything from zeny to cashpoints are hard-coded

 

 

Yeah i already did that, my players got a problem, when they relog they lose the kill count of some mobs, i can't set properly the quest time and so on @[email protected] thanks for ther help btw o:!

I thought I already fixed them in 1.4 ?

1.6 [paste=ftsocdeysre]

- fix the getserverdef script command

- increase sleep time inside OnInit to make lesser chance of getting unsorted ID

- in commented lines, stop listing the monsters when the kill count reached

- in commented lines, added listing for the mission name instead of mission ID

though, type @mission is a preferable choice

 

thank you but i found out awhile back after messing with it displaying mission name instead of id caused alot of problems lagged my sql out til the point it would lose connection.

Share this post


Link to post
Share on other sites

 

Ok,the main problem has been fixed  , but i have another problem on "NPC Limitation" When I try to select the letter A, the letter B is selects
I mean that if i active the letter "A" doesn't work, only the letter "B", and if I select the letter "C" doesnt works,  and works letter "D"
....
and the options when i try select is disordered without alphabetical order

maybe can use increase the *sleep time inside OnInit: label ...
 
 

How do I make the OnNPCKillEvent: Show the mission name instead of the numbers

unfortunately, the way Emistry scripted it, needs to run query_sql every single time to read the `title` from `mission_board` table
and accessing query_sql too frequently can lag a server
well ... I added it, but remains commented
 

make it stop listing the kills after you reached the amount required

this one possible

 

tell you the mission is complete to return to the mission board?

this one require lots of checking ...
its better to just type '@mission' to check your progress

 

And how do i change the cash point reward to free points?

unless you understand the script ... otherwise its even hard to tell how to do it
because everything from zeny to cashpoints are hard-coded
 
 

Yeah i already did that, my players got a problem, when they relog they lose the kill count of some mobs, i can't set properly the quest time and so on @[email protected] thanks for ther help btw o:!

I thought I already fixed them in 1.4 ?


1.6 [paste=ftsocdeysre]
- fix the getserverdef script command
- increase sleep time inside OnInit to make lesser chance of getting unsorted ID
- in commented lines, stop listing the monsters when the kill count reached
- in commented lines, added listing for the mission name instead of mission ID
though, type @mission is a preferable choice

 

OH god you don't know how much i missed you! 

 

uh yeah still i found some errors (stated above, even with the latest rA rev.) thank you so much for the helpsssssss!!!!!!

 

/rice

Share this post


Link to post
Share on other sites
[Debug]: script debug : 0 110013108 : [ Mission Board ] Total NPC Loaded : 8 ...

what does that means?

Share this post


Link to post
Share on other sites
[Debug]: script debug : 0 110013108 : [ Mission Board ] Total NPC Loaded : 8 ...

what does that means?

 

 

It just tells ypu that 8 npcs were loaded, isn't a problem or error (i'm right D: ? )

Share this post


Link to post
Share on other sites

 

[Debug]: script debug : 0 110013108 : [ Mission Board ] Total NPC Loaded : 8 ...

what does that means?

 

 

It just tells ypu that 8 npcs were loaded, isn't a problem or error (i'm right D: ? )

 

 

well i know that, but im worry does it will effect the quest? like error or sumthing?

Share this post


Link to post
Share on other sites

 

 

[Debug]: script debug : 0 110013108 : [ Mission Board ] Total NPC Loaded : 8 ...

what does that means?

 

 

It just tells ypu that 8 npcs were loaded, isn't a problem or error (i'm right D: ? )

 

 

well i know that, but im worry does it will effect the quest? like error or sumthing?

 

 

I don't think so, i tested this a hile weeks ago and it worked o:

Share this post


Link to post
Share on other sites

help...

[Error]: script error in file 'npc/pre-re/custom/mission_board.txt' line 1127 column 14
    parse_simpleexpr: unmatched ')'
  1124:         end;
  1125:
  1126: OnCommand:
* 1127:         if ( !strcmp( strnpcinfo(0), .npc_name$ ) ) {
        ~~~~~~~~~~~~~~~~~~~~^
  1128:                 if ( @ms_size ) {
  1129:                         for ( [email protected] = 0; [email protected] < @ms_size; [email protected]++ ) {
  1130:                                 [email protected]_size = getarraysize( getd( "@ms_"+ @ms_list$[[email protected]] +"_list" ) );
[Info]: Done loading '13066' NPCs:
        -'3087' Warps
        -'9' Shops
        -'9955' Scripts
        -'3911' Spawn sets
        -'40461' Mobs Cached
        -'14' Mobs Not Cached
[Status]: Event 'OnInit' executed with '1694' NPCs.
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Event 'OnInterIfInitOnce' executed with '0' NPCs.

@edit
already resolved.

Edited by Soel

Share this post


Link to post
Share on other sites

im looking forward for this script, for me this is one of the coolest scripts of rathena

 

it'll be much more cooler if it has

 

-quest progress message prompt like (kill poring 4/5) (kill poring complete!) (30 mins left to complete quest)

-time attack quest

-chain quest

-quest custom variable reward

-call quest cutin (cutin that will display when you register a quest)

-custom variable quest condition  (for example quest: be a millionaire - checks you character zeny) (quest: be a mass murderer - checks #kill variable)

-chain mission

-support party-assist , guild-assist to completing the quests .

-quest auto warp (sets a map and coordinates for a certain quest :3)

-automatic reward (after completing the quest, you will be rewarded automatically where ever you are)

 

hooooooooo this will be a lot of work

Share this post


Link to post
Share on other sites

help...

[Error]: script error in file 'npc/pre-re/custom/mission_board.txt' line 1127 column 14
    parse_simpleexpr: unmatched ')'
  1124:         end;
  1125:
  1126: OnCommand:
* 1127:         if ( !strcmp( strnpcinfo(0), .npc_name$ ) ) {
        ~~~~~~~~~~~~~~~~~~~~^
  1128:                 if ( @ms_size ) {
  1129:                         for ( [email protected] = 0; [email protected] < @ms_size; [email protected]++ ) {
  1130:                                 [email protected]_size = getarraysize( getd( "@ms_"+ @ms_list$[[email protected]] +"_list" ) );
[Info]: Done loading '13066' NPCs:
        -'3087' Warps
        -'9' Shops
        -'9955' Scripts
        -'3911' Spawn sets
        -'40461' Mobs Cached
        -'14' Mobs Not Cached
[Status]: Event 'OnInit' executed with '1694' NPCs.
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Event 'OnInterIfInitOnce' executed with '0' NPCs.

@edit

already resolved.

as solved ? I'm having the same problem

Share this post


Link to post
Share on other sites

 

help...

[Error]: script error in file 'npc/pre-re/custom/mission_board.txt' line 1127 column 14
    parse_simpleexpr: unmatched ')'
  1124:         end;
  1125:
  1126: OnCommand:
* 1127:         if ( !strcmp( strnpcinfo(0), .npc_name$ ) ) {
        ~~~~~~~~~~~~~~~~~~~~^
  1128:                 if ( @ms_size ) {
  1129:                         for ( [email protected] = 0; [email protected] < @ms_size; [email protected]++ ) {
  1130:                                 [email protected]_size = getarraysize( getd( "@ms_"+ @ms_list$[[email protected]] +"_list" ) );
[Info]: Done loading '13066' NPCs:
        -'3087' Warps
        -'9' Shops
        -'9955' Scripts
        -'3911' Spawn sets
        -'40461' Mobs Cached
        -'14' Mobs Not Cached
[Status]: Event 'OnInit' executed with '1694' NPCs.
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Event 'OnInterIfInitOnce' executed with '0' NPCs.

@edit

already resolved.

 

as solved ? I'm having the same problem

 

change this

        if ( !strcmp( strnpcinfo(0), .npc_name$ ) ) { 

for this

	if ( .npc_name$ == strnpcinfo(0) ) {

i'm use Hercules Emulator

Edited by Soel

Share this post


Link to post
Share on other sites

I need help pls how to fix this i put this onto my SQL 
 

  1. /*
  2.  
  3. DROP TABLE IF EXISTS `mission_board`;
  4. CREATE TABLE IF NOT EXISTS `mission_board` (
  5. `id` int(11) unsigned NOT NULL,
  6. `title` varchar(30) NOT NULL default '',
  7. `desc` varchar(255) NOT NULL default '',
  8. `mob_list` varchar(50) NOT NULL default '',
  9. `mob_qty` varchar(50) NOT NULL default '',
  10. `item_list` varchar(50) NOT NULL default '',
  11. `item_qty` varchar(50) NOT NULL default '',
  12. `class_limitation` int(11) unsigned NOT NULL default '0',
  13. `class_branch` int(11) unsigned NOT NULL default '0',
  14. `min_lv` smallint(6) unsigned NOT NULL default '1',
  15. `max_lv` smallint(6) unsigned NOT NULL default '99',
  16. `repeat` smallint(6) unsigned NOT NULL default '0',
  17. `duration` int(11) unsigned NOT NULL default '0',
  18. `reward_list` varchar(50) NOT NULL default '',
  19. `reward_qty` varchar(50) NOT NULL default '',
  20. `base_exp` int(11) unsigned NOT NULL default '0',
  21. `job_exp` int(11) unsigned NOT NULL default '0',
  22. `zeny` int(11) unsigned NOT NULL default '0',
  23. `cash` int(11) unsigned NOT NULL default '0',
  24. `aid` int(11) unsigned NOT NULL default '0',
  25. `name` varchar(30) NOT NULL default '',
  26. `time_update` datetime NOT NULL default '0000-00-00 00:00:00',
  27. `npc_id` varchar(255) NOT NULL default '',
  28. `redo_delay` smallint(6) unsigned NOT NULL default '0',
  29. PRIMARY KEY (`id`)
  30. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  31.  
  32.  
  33. DROP TABLE IF EXISTS `player_mission`;
  34. CREATE TABLE IF NOT EXISTS `player_mission` (
  35. `id` int(11) unsigned NOT NULL,
  36. `mission_id` int(11) unsigned NOT NULL,
  37. `aid` int(11) unsigned NOT NULL default '0',
  38. `cid` int(11) unsigned NOT NULL default '0',
  39. `name` varchar(30) NOT NULL default '',
  40. `mob_hunt` varchar(50) NOT NULL default '',
  41. `expire` int(11) unsigned NOT NULL default '0',
  42. `starting` datetime NOT NULL default '0000-00-00 00:00:00',
  43. `completion` datetime NOT NULL default '0000-00-00 00:00:00',
  44. PRIMARY KEY (`id`)
  45. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  46.  
  47. */

    then rest is the script but i have this error
  48.  
  49. : DB error - Table 'ragnarok.mission_board' doesnt exist
    [Debug]: at script.c:16142 - SELECT 'id IN ( SELECT 'id FROM 'mission_board ect ect ect


    Can someone can help me pls.?

Share this post


Link to post
Share on other sites

I cant get a quest if that quest have Redo-delay it told me

 

"You cant pick this mission, you have mission redo delay isnt finish yet."

Edited by zaruramen

Share this post


Link to post
Share on other sites

+20 for this :)


any update of this npc?

 

query_sql "select timestampdiff( hour, completion, now() ), unix_timestamp( date_add( completion, interval "+ [email protected]_delay +" hour ) ) from player_mission where cid = "+ getcharid(0) +" and mission_id = "+ [email protected][[email protected]] +" order by completion desc limit 1", [email protected]_delay, [email protected]_time;

 

that line of code might conflict so that npc says "You cant pick this mission, you have mission redo delay isnt finish yet."

Edited by stealth61

Share this post


Link to post
Share on other sites

Links are all down >.< would be great if some one would reupload maybe a working version like the 1.6 from Annie

Thanks!

Share this post


Link to post
Share on other sites

error
EXP setting 2000
Collar reward 1000

NPC said Something went wrong ..
what reason

Share this post


Link to post
Share on other sites

Can someone post their own collection of missions of the SQL Mission Table (mission_board) with some ready-made quests to get a starting point?
Thank you very much for this...

Share this post


Link to post
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
Reply to this topic...

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

Loading...