Jump to content

Utility: Sader's Account/Guild Buff Rental


sader1992

Recommended Posts


  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

Sader's Account/Guild Buff Rental


buff rental

2 options (menu for each option)

account option = you rent the buff for your own account

guild option where the guild leader can rent a buff for all his guild

you rent the buff for x time

in this time you can get the buff from the buffer npc anytime you want as long as the rent time did not end

you can add the guild buffs and the account buffs to your normal healer so the players only talk to the healer to get all the buffs they rent

the players can disable buffs they already rent or their guild rent and enable them again via the manage option in the npc so if they don't want a kind of buff they can disable it without problem

if there is no buffs for the account buffs the npc will say to the player `this service not available yet!` when choosing the account option // same thing for the guild option

for guild option only guild leader can use it and only the guild leader can buy buffs for his guild in the guild option

 

V2 Changes:

you can now use item as requirement to rent the buff > the item amount will be removed from the player.

you can now use a variable as requirement for renting a buff > like cash points.

adding an option to Extend the rent time for the buff.

 

no better explain that giving you the file header

//===== rAthena Script =======================================
//= Paid Script
//= sader's Buff Rental Npc
//===== By: ==================================================
//= Sader1992
//https://rathena.org/board/profile/30766-sader1992/
//= Email sader1992@gmail.com
//===== Compatible With: ===================================== 
//= rAthena Project
//============================================================
//= Version 2.0
//============================================================
//= Support only sc_start and specialeffect2 (sc_start2-3-4 not supported)
/*============================================================
!!!!!!						WORNING						!!!!!!			
	DO NOT CHANGE/DELETE THE BUFF ORDER AFTER YOU ADD THEM
OR ELSE YOUR PLAYERS WHO RENT IT WILL GET THE NEXT ONE IN ORDER
You Can edit add delete what ever you want before you put the npc to the players.
You can add more at the end if you want but do not change the ORDER after the players rent from the npc.
//==================  How To Add A Buff  =====================
Go down to 'OnInit:' lebal
you will see something like this

.VariableName$:
	the variable name that the player would see in the npc message .
.VariableID$:
	the variable it self.

.Acc_Extend_Option:	For Account.
.Gld_Extend_Option:	For Guild.
	true = enabled | false = disabled
	this for if the player want to Extend the buff rent time while he already have time left.
	
AddBuffs(<TYPE>,<SC_ID>,<"Buff_Name">,<SC_LEVEL>,<SC_TIME(in seconds)>,<RENT_TIME(in days)>,<ZENY_PRICE>,<ITEM_ID>,<ITEM_COUNT>,<VARIABLE_AMMOUNT_PRICE>,<Effect_ID>)

TYPE :
	1 = Account Buffs || 2 = Guild Buffs

SC_ID:
	is the Stat ID
	YOU can see all the status in this file rAthena/src/map/status.hpp

Buff_Name:
	the buff name is what the player see in the menus (string)
		
SC_LEVEL:
	is the status level ( the buff level )
	
SC_TIME:
	this is the buff duration in Seconds

RENT_TIME:
	the rent tile for the buff in Days

ZENY_PRICE:
	the buff rent price in Zeny. if not you can put 0.
	
ITEM_ID:
	if you want an item requirement cost for the buff here you put the item id. if not you can put 0.
ITEM_COUNT:
	the item count requirement for the item id above.

VARIABLE_AMMOUNT_PRICE:
	if you want i variable cost for the buff , put the amount , the variable name is .VariableName$ .VariableID$ see the read above to know more.
	if not you can put 0.

Effect_ID:
	The effect that will play on the charcter when get the buff
	use 0 if you don't want it
	you can see all the effects in this file rAthena/doc/effect_list.txt
	
Example:

	AddBuffs(1,30,"Blessing",10,1200,1,500000,512,10,50,42);
	
	1 = Account Buff
	"BLESSING" = the name that the player see
	30 = the stat ID of SC_BLESSING
	10 = the level
	1200 = duration 20 minutes
	1 = 1 days rent time
	500000 = 500000 zeny price
	512 = THE APPLE ID
	10 = the apple count required
	50 = the amount of points required (in case of .VariableID$ = "#CASHPOINTS"; than it would be 50 cash points)
	42 = the effect id of EF_BLESSING
	
	
to Add the buffs to your Own healer
just add this line at the end of your healer

for Account Buffs 
	doevent "SaderBuffRental::OnAccBuffs";

for Guild Buffs
	doevent "SaderBuffRental::OnGldBuffs";

*/
//============================================================

 

and the video

 

 

License : 

by downloading this file you are agree on the following:

  • i will Back Up my server before using this file.
  • i will use this file for my own private server only , not for a group of servers .
  • i will never share this file with anyone .
  • i will never upload this file to public and i wont leave it on shared storage .
  • i will report any bugs or errors to sader1992 .
  • all the rights retain to sader1992 .
  • Charge-back scams are not tolerated and will get you punished on rAthena.
  • The Script supported but don't Expect me to be 24/24 7/7 support .

Terms above may be changed or adjusted without prior notification .


  • Submitter
  • Submitted
    04/19/2018
  • Category
  • Video
    https://youtu.be/8H0o8ZhJA8w
  • Content Author
    sader1992

 

Link to comment
Share on other sites

  • 6 months later...

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  149
  • Reputation:   3
  • Joined:  07/29/16
  • Last Seen:  

Interested for this..

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