serakh00 Posted December 27, 2012 Posted December 27, 2012 (edited) 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 Note: -For Blessing item, i suggest make new item with 0 weight. Player will need it a lot. -I'm a newbie scripter so i need suggestion and lesson Edited December 28, 2012 by serakh00 4 Quote
mrlongshen Posted December 27, 2012 Posted December 27, 2012 thx for the sharing script. i will use in my RO. tq Quote
RafaelS2Tatiana Posted December 27, 2012 Posted December 27, 2012 (edited) Nice script ty for sharing. One suggestion, you could add a needed item for the blessing was started, the players would do well to get a quest item needed. Edited December 27, 2012 by RafaelS2Tatiana Quote
Capuche Posted December 28, 2012 Posted December 28, 2012 Put a end; at the end of OnInit otherwise mapserv tell us player no attached when reloading. Well, nice script Quote
serakh00 Posted December 28, 2012 Author Posted December 28, 2012 Nice script ty for sharing. One suggestion, you could add a needed item for the blessing was started, the players would do well to get a quest item needed. updated.. glad to see your feedback. Put a end; at the end of OnInit otherwise mapserv tell us player no attached when reloading. Well, nice script OK edited.. thanks for advice Quote
nanakiwurtz Posted December 28, 2012 Posted December 28, 2012 (edited) -To start Blessing, you must be inside defined map, then whisper to npc:blessme. I think it will be better to talk (click) an NPC rather to whisper to npc:blessme Overall I like your script, thanks for sharing (I rate 4 stars for this) Edited December 28, 2012 by nanakiwurtz Quote
serakh00 Posted December 28, 2012 Author Posted December 28, 2012 -To start Blessing, you must be inside defined map, then whisper to npc:blessme. I think it will be better to talk (click) an NPC rather to whisper to npc:blessme Overall I like your script, thanks for sharing (I rate 4 stars for this) I want to make player easily start Blessing anywhere as long as they are inside the map. Clicking NPC require player to walk to NPC then click it. Wow thanks for rate. Quote
nanakiwurtz Posted December 28, 2012 Posted December 28, 2012 Or maybe create a custom item for that purpose, so the item will be consumed upon activating the blessing, just like the .bless_needs did. Btw if you plan to create the NPC script, the NPC could be easily duplicated so players won't having hard time to find them, isn't it? Quote
RafaelS2Tatiana Posted December 28, 2012 Posted December 28, 2012 I took the liberty of making a slight modification to the item needed to stop it closing blessing. If you want. find this getmapxy(@mapb$, @xb, @yb, 0 ); if (@mapb$ != .bless_map$) { dispbottom "Blessing is stopped because you are not in "+.bless_mname$+"."; set @blessing,0; end; } Add after if (countitem(.bless_need) == 0){ dispbottom "Blessing is stopped because you dont have more "+getitemname(.bless_need)+"."; set @blessing,0; end; } Sorry for bad english Quote
serakh00 Posted December 29, 2012 Author Posted December 29, 2012 (edited) Or maybe create a custom item for that purpose, so the item will be consumed upon activating the blessing, just like the .bless_needs did. Btw if you plan to create the NPC script, the NPC could be easily duplicated so players won't having hard time to find them, isn't it? Yeah you're right. Praying in front of statue of holy person will look great I took the liberty of making a slight modification to the item needed to stop it closing blessing. If you want. find this getmapxy(@mapb$, @xb, @yb, 0 ); if (@mapb$ != .bless_map$) { dispbottom "Blessing is stopped because you are not in "+.bless_mname$+"."; set @blessing,0; end; } Add after if (countitem(.bless_need) == 0){ dispbottom "Blessing is stopped because you dont have more "+getitemname(.bless_need)+"."; set @blessing,0; end; } Sorry for bad english i think you should comment this line : if (.bless_needs == 1 && .bless_need != 0){delitem .bless_need,1;} or player will lose 2 item upon Blessing started. Well im planning some rare item earning while Blessing (lowlowlow chance) Edited December 29, 2012 by serakh00 Quote
RafaelS2Tatiana Posted December 29, 2012 Posted December 29, 2012 The change I made was in the case bless_need end it stops receiving bless. Thus he was the player bless_need ended and continued receiving Quote
serakh00 Posted December 29, 2012 Author Posted December 29, 2012 The change I made was in the case bless_need end it stops receiving bless. Thus he was the player bless_need ended and continued receiving so everytime player gain exp, they will lost 1 item? Quote
RafaelS2Tatiana Posted December 29, 2012 Posted December 29, 2012 Yes he loses the item,and when the item expire the exp is stop Quote
mrlongshen Posted December 31, 2012 Posted December 31, 2012 bro, i suggest u made an npc for this, some player will not understand to whisper to npc:blessme. Quote
sietse11 Posted March 24, 2013 Posted March 24, 2013 I dont wanne cry or anything BUT this should NOT be an npc this should NOT be an item this should NOT be a skill Make this an @command Like autovend or whatever its called for merchants Suggestion @autobless --- player is logged off, and will auto bless/+increase agi when clicked. (priest tree) Possibillities--- When invoking @command player could set an item or zeny amount to trigger the buff, before logging off. ------------------ Exp should be toggled on or off by the person whos installing the script. ================================= Expending the feature ================================= @autolink --- player is logged off, and will auto spirit link when clicked (soullinker) Possibilities-- When invoking @command player could set an item or zeny amount to trigger the link before loging off. ================================= @autoball --- Player is logged off and will autocast his lvl of transfer spiritball(???right name??) (monk tree) etc... I havent actually read your script yet, but to me it sounds like an autovend option for other classes And if it could be accessed by an @command that would make a world of difference. Thats probably gonne take more then just a simple txt file. But I think it would get way more love Also if it meets my criteria ill buy it from you!! Quote
stydianx Posted June 15, 2013 Posted June 15, 2013 Put a end; at the end of OnInit otherwise mapserv tell us player no attached when reloading.Well, nice script Hi capuche, uhmm.. when i run the script, it says "npc_parsesrcfile: file not found" how can i resolve this? Quote
xienne15 Posted July 2, 2013 Posted July 2, 2013 (edited) It would be cool if they can stay in one spot,if they moved wherever they started praying like walking 1 cell or such ,the prayer blessing will be stopped/cancelled. It makes sense since its a AFK Blessing meaning you are away from the keyboard and must not need to move anywhere in the area where you started to pray. P.S. I can walk in whole prontera with blessing ON, the thing i did is to set it in a small room without anything/NPC etc in it so they are forced to really AFK since they cannot stroll like we can do in Prontera, so if they leave that room the blessing prayer will be cancelled. Edited July 2, 2013 by xienne15 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.