shockwar14 Posted June 6, 2023 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 71 Reputation: 0 Joined: 04/19/13 Last Seen: August 25, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 pajodex Posted June 6, 2023 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: April 14 Share 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 Link to comment Share on other sites More sharing options...
0 shockwar14 Posted June 6, 2023 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 71 Reputation: 0 Joined: 04/19/13 Last Seen: August 25, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
0 shockwar14 Posted June 7, 2023 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 71 Reputation: 0 Joined: 04/19/13 Last Seen: August 25, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
0 pajodex Posted June 7, 2023 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: April 14 Share Posted June 7, 2023 you can check the default custom healer npc in rathena. Apply the delay to the script. Quote Link to comment Share on other sites More sharing options...
0 shockwar14 Posted June 8, 2023 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 71 Reputation: 0 Joined: 04/19/13 Last Seen: August 25, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.