whoopetz Posted March 26, 2014 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 7 Reputation: 0 Joined: 02/22/14 Last Seen: October 2, 2019 Share Posted March 26, 2014 (edited) when a player says "buff please" the player will be healed and spent -100000 zeny. Edited March 26, 2014 by whoopetz Quote Link to comment Share on other sites More sharing options...
1 Patskie Posted March 27, 2014 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 18 hours ago Share Posted March 27, 2014 prontera,150,150,0 script Sample 100,{ OnInit: setarray .Buffs[0], SC_BLESSING, SC_KYRIE, SC_ANGELUS; setarray .Effects[0], EF_BLESSING, EF_KYRIE, EF_ANGELUS; set .Size, getarraysize( .Buffs ); set .Buff, 0; // 1 to enabled buff, 0 otherwise set .Price, 100000; defpattern 1, "buff please", "OnBuff"; activatepset 1; end; OnBuff: if ( Zeny < .Price ) { npctalk "Can't buff you " + strcharinfo( 0 ) + ", You don't have zeny"; end; } Zeny -= .Price; percentheal 100, 100; specialeffect2 EF_HEAL2; if ( .Buff ) { for ( .@i = 0; .@i < .Size; .@i++ ) { specialeffect2 .Effects[ .@i ]; sc_start .Buffs[ .@i ], 300000, 10; } } end; } 1 Quote Link to comment Share on other sites More sharing options...
Question
whoopetz
when a player says "buff please" the player will be healed and spent -100000 zeny.
Edited by whoopetzLink to comment
Share on other sites
1 answer 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.