whoopetz Posted March 26, 2014 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
1 Patskie Posted March 27, 2014 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
Question
whoopetz
when a player says "buff please" the player will be healed and spent -100000 zeny.
Edited by whoopetz1 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.