shockwar14 Posted June 6, 2023 Posted June 6, 2023 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. Quote
0 pajodex Posted June 6, 2023 Posted June 6, 2023 - 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. Quote
0 shockwar14 Posted June 6, 2023 Author Posted June 6, 2023 (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 June 6, 2023 by shockwar14 Quote
0 shockwar14 Posted June 7, 2023 Author Posted June 7, 2023 Hi @pajodex I tested your script and it's working perfectly as it should!. Now, is there a way that I can limit the use of @buff command say once every hour? Thank you! Quote
0 pajodex Posted June 7, 2023 Posted June 7, 2023 you can check the default custom healer npc in rathena. Apply the delay to the script. Quote
0 shockwar14 Posted June 8, 2023 Author Posted June 8, 2023 8 hours ago, pajodex said: you can check the default custom healer npc in rathena. Apply the delay to the script. Oh yeah right, thanks @pajodex! Quote
Question
shockwar14
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.