Hello rAthena, this is my first script sharing. I made this script for my little home server. To the point, this script let your player earn EXP while afk AKA Praying/Blessing (i prefer to call it Blessing).
SCREENSHOOT
DESCRIPTIONS
-To start Blessing, you must be inside defined map, then whisper to npc:blessme.
-Exp earned every 10 second and calculated based on Level, Blessing Exp Rate, and your setting in "quest_exp_rate".
-Additionally you can set item to make double exp earning while Blessed. Just put in your inventory and it will be consumed every 10 second of Blessing.
-Changing map/log off will make Blessing stopped.
-Normal class earn half exp than advance class.
-Good for Low-Mid rate server.
CONFIGURATION
//=========================SETTING============================
OnInit:
set .bless_need, 523; //Require item to start Blessing. Default 523 (Holy Water) 0 to disable.
set .bless_needs,0; //Item require setting, 0 = only need it in inventory 1 = consumed every time Blessing started.
set .bless_item,607; //Item for double exp earning. Consumed 1 item/10 seconds, 360/hour, 8640/day
set .bless_map$,"prontera"; //Map require for Blessing
set .bless_mname$, "Prontera City"; //Map name that will be told to player
set .bless_adj,2; //Normal class will earn exp/2 while advance class not
set .bless_rate,1; //Blessing exp rate
set .server_rate,getbattleflag("base_exp_rate")/100; //Your server exp rate. Needed to for dispbottom part.
end;
//============================================================
DOWNLOAD
blessing v1-2.txt
-fix multiple player blessing
-add level restriction,player below level 20 is not available for Blessing
blessing v1-3.txt
-add end; on OnInit
-add item requirement support
CREDIT
Capuche
goddameit