Jump to content
  • 0

when a player shout/type fcp please


whoopetz

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  02/22/14
  • Last Seen:  

when a player says "buff please" the player will be healed and spent -100000 zeny. :)

Edited by whoopetz
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  


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
Link to comment
Share on other sites

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.

×
×
  • Create New...