Jump to content

Recommended Posts

Posted

Compendium


Compendium - A levelable battle pass inspired majority of games out there. 

Feature :
Easy customizable settings.
Three types of selectable daily quest.
Daily quest requirements are randomized.
Daily quest count resets everyday.
Compendium resets on the first day of the month.
Rewards are sent via mail.
'@compendium' command to access the compendium

Settings :

 

Adding a reward on the compendium
Rewards : "Level | Reward ID, Amount, Reward ID, Amount,... ==|
Level order doesn't matter but 'duplicates' will bug out the script.

setarray .compendium_reward$, 
"1|501:10,502:20",
"10|501:20,502:30",
"5|501:100,502:500";


Adding a monster/item/mvp to hunt or collect
Just add the ID on the following line.

setarray .mvp_list
setarray .hunt_list
setarray .gather_list


Changing EXP given on the quest types.
.gathering_exp = 50;
.hunt_exp = 50;
.mvp_hunt_exp = 100;


 


 

  • Upvote 1
  • Love 5
Posted (edited)

wow, I was thinking about that, compendiuns got very popular lately on games, it's a way to tax for new contents monthly.
Good work!  Certainly I'm going to use this.

@edit
I'll try to improve to have free and vip rewards

Edited by fusqueta
Posted

@crazyarashi your file description could do with a little more.. description. I.e What is it, how do you use it, why should I use it, who benefits from it, your inspiration for creating it, etc.

  • 3 weeks later...
  • 3 weeks later...
  • 2 months later...
  • 1 month later...
  • 1 month later...
Posted (edited)
Em 17/05/2021 às 12h19, Snaehild disse:

Onde normalmente instalamos scripts .c? Eles vão para a pasta npc também?

você precisa renomear o arquivo para .txt

Compêndio 1.1.c

para

Compêndio 1.1.txt

it goes to npc folder

 

Edited by kennykiro
Posted
On 12/30/2020 at 1:24 AM, celeron0134 said:

got an error.. pasted your script on npc/custom/quests/Compendium.c

am i doing it right?

compedium error.png

why does it says needs ';'?

i think its a typo, try use strnpcinfo(0) instead of strnpcnfo(0)

  • 1 month later...
  • 1 year later...
Posted
On 6/27/2021 at 8:57 AM, nobodyelse said:

i think its a typo, try use strnpcinfo(0) instead of strnpcnfo(0)

That fixed that but now this one shows up
 

script error on npc/custom/etc/Compendium.txt line 366
    parse_simpleexpr: unmatched ')'
   361 : OnHour00:
   362 :        if(gettime(DT_DAYOFMONTH) == 1){
   363 :                query_sql("TRUNCATE `compendium`");
   364 :                end;
   365 :        }
*  366 :        query_sql("UPDATE `compendium` SET `quest` = '"+.quest_count+" WHERE `quest` < '"+.quest_count'"''");
   367 : end;
   368 :
   369 : function       compendium_getexp       {
   370 :        .@exp_value = getarg(0);
   371 :        .@account_id = getcharid(3);

Anyone got this one working?

Posted
On 3/29/2023 at 12:49 PM, reidouraidou said:

That fixed that but now this one shows up
 

script error on npc/custom/etc/Compendium.txt line 366
    parse_simpleexpr: unmatched ')'
   361 : OnHour00:
   362 :        if(gettime(DT_DAYOFMONTH) == 1){
   363 :                query_sql("TRUNCATE `compendium`");
   364 :                end;
   365 :        }
*  366 :        query_sql("UPDATE `compendium` SET `quest` = '"+.quest_count+" WHERE `quest` < '"+.quest_count'"''");
   367 : end;
   368 :
   369 : function       compendium_getexp       {
   370 :        .@exp_value = getarg(0);
   371 :        .@account_id = getcharid(3);

Anyone got this one working?

	query_sql("UPDATE `compendium` SET `quest` = '"+.quest_count+" WHERE `quest` < '"+.quest_count+"'");
  • 3 months later...
Posted

@crazyarashi got a bunch of questions

1. How does the daily quest resets is it 0000hrs or time of the all quest done

2. How can i modify from 100 exp needed to level to 1000exp

3. How can i modify from 3 DQ to 5 or more DQ

 

thanks for the script

Posted
13 hours ago, Gouki said:

No. Wasn't able to fix this..

thanks for the response! Was this script working for you? We are encountering a problem when we choose a certain quest even if we dont do it and click submit it will automatically give an Experience.

Posted
8 hours ago, AinsLord said:

@crazyarashi

image.png

how to fix this SQL error

thanks

Upon checking the query, I think there's just a missing + symbol.

Find the line with:

query_sql("UPDATE `compendium` SET `quest` = '"+.quest_count+" WHERE `quest` < '"+.quest_count"'");

Change to:

query_sql("UPDATE `compendium` SET `quest` = '"+.quest_count+" WHERE `quest` < '"+.quest_count+"'");

  • 1 month later...
  • 2 months later...
  • 1 year later...
Posted

No errors BUT, when i do one mission i can complete all others missions without working....
Also is can do with all chars of account it is not good

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.

  • Recently Browsing   0 members

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