Jump to content

Blessing/Praying System : Earn Exp While AFK


serakh00

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   4
  • Joined:  02/08/12
  • Last Seen:  

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

post-2188-0-43432100-1356624593_thumb.jpg

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 :P

Edited by serakh00
  • Upvote 4
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

thx for the sharing script. i will use in my RO. tq ;)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/05/12
  • Last Seen:  

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 by RafaelS2Tatiana
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Put a

end;

at the end of OnInit otherwise mapserv tell us player no attached when reloading.

Well, nice script :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   4
  • Joined:  02/08/12
  • Last Seen:  

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 :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

-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 by nanakiwurtz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   4
  • Joined:  02/08/12
  • Last Seen:  

-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. /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/05/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   4
  • Joined:  02/08/12
  • Last Seen:  

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 /ok

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 by serakh00
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/05/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   4
  • Joined:  02/08/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/05/12
  • Last Seen:  

Yes he loses the item,and when the item expire the exp is stop

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

bro, i suggest u made an npc for this, some player will not understand to whisper to npc:blessme.

:)

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   7
  • Joined:  02/10/13
  • Last Seen:  

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 :P

 

Also if it meets my criteria ill buy it from you!!

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Nice script!

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

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? :)

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

Will somebody turn this into an NPC? :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

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 by xienne15
Link to comment
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.

×
×
  • Create New...