Jump to content
  • 0

when a player shout/type fcp please


Question

1 answer to this question

Recommended Posts

  • 1
Posted


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;

}

  • Upvote 1

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