Jump to content
  • 0

Question

Posted

Hi Team,

 

Can I please request a simple script wherein players will be buffed using @buffs command?

Details of the script:

1. A message will prompt once you type @buffs command and will ask you if you want to be buffed or not.

2. Everytime you want to be buffed it will automatically deduct 1m zeny from you.

3. This command will only work outside PVP / GVG / WOE area.

 

Thank you so much.

5 answers to this question

Recommended Posts

  • 0
Posted
-	script	buff_cmd	-1,{
OnInit:
	bindatcmd "buff", strnpcinfo(0)+"::OnCommand";
	end;

OnCommand:
	.@price = 1000000; // 1m per buff
	if ( getmapflag(strcharinfo(3),MF_PVP) || getmapflag(strcharinfo(3),MF_BATTLEGROUND) ||  getmapflag(strcharinfo(3),MF_GVG) ) {
		mes "Doesnt work on PVP/BG/WOE maps";
		close;
	}
	if ( Zeny < .@price ) {
		mes "You need "+F_InsertComma(.@price)+"z.";
		close;
	}
	if ( select("Buff Me!","Dont buff me!")==2 ) {
		mes "Ok";
		close;
	}
	Zeny -= .@price;

	// This will bestow the effect of Level 10 Blessing.
	sc_start SC_BLESSING,240000,10;

	mes "done!";
	close'
}

Untested.

  • 0
Posted (edited)
8 hours ago, pajodex said:
-	script	buff_cmd	-1,{
OnInit:
	bindatcmd "buff", strnpcinfo(0)+"::OnCommand";
	end;

OnCommand:
	.@price = 1000000; // 1m per buff
	if ( getmapflag(strcharinfo(3),MF_PVP) || getmapflag(strcharinfo(3),MF_BATTLEGROUND) ||  getmapflag(strcharinfo(3),MF_GVG) ) {
		mes "Doesnt work on PVP/BG/WOE maps";
		close;
	}
	if ( Zeny < .@price ) {
		mes "You need "+F_InsertComma(.@price)+"z.";
		close;
	}
	if ( select("Buff Me!","Dont buff me!")==2 ) {
		mes "Ok";
		close;
	}
	Zeny -= .@price;

	// This will bestow the effect of Level 10 Blessing.
	sc_start SC_BLESSING,240000,10;

	mes "done!";
	close'
}

Untested.

Hey Man.. I will try this out and will let you know the outcome. Thank you!

Edited by shockwar14

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

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