Jump to content
  • 0

Buffer with flag trigger


Jesky

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   3
  • Joined:  11/29/13
  • Last Seen:  

Can someone make me a buffer script when a player show emoticon (example /no1)?

 

So, when the buffer clicked, it'll give normal buff. But when player do ctrl+2 it will give soulink spirit.

This is my buffer script, can someone add this feature to this script? Thank you so much :)

prontera.gat,148,192,4	script	Buffer	811,{
if (@HD > gettimetick(2)) goto Delay;
	specialeffect2 325;
	sc_start SC_BLESSING,0,10;
   	sc_start SC_INCREASEAGI,0,10;
	sc_start SC_IMPOSITIO,0,5;
	sc_start SC_MAGNIFICAT,0,5;
	sc_start SC_GLORIA,0,5;
	sc_start SC_SUFFRAGIUM,0,3;
	percentheal 100,100;

	sc_end sc_stone;
	sc_end sc_freeze;
	sc_end sc_sleep;
	sc_end sc_curse;
	sc_end sc_silence;
	sc_end sc_confusion;
	sc_end sc_blind;
	sc_end sc_bleeding;
	sc_end sc_decreaseagi;
	sc_end sc_poison;
	sc_end sc_hallucination;
	sc_end sc_stripweapon;
	sc_end sc_striparmor;
	sc_end sc_striphelm;
	sc_end sc_stripshield;




while (getbrokenid(1)) {
        repair(1);
        set .@i, .@i +1;
    }
    if (.@i) dispbottom .@i + " items repaired.";


getinventorylist;
set @identify, 0;
for(set @i, 0; @i < @inventorylist_count; set @i, @i +
1)
{
if (@inventorylist_identify[@i] == 0) set @identify,
@identify + 1;
}

getinventorylist;
set @identified, 0;
for(set @i, 0; @i < @inventorylist_count; set @i, @i +
1)
{
if (@inventorylist_identify[@i] == 0)
{
delitem2 @inventorylist_id[@i],1,0,0,0,0,0,0,0;
getitem @inventorylist_id[@i],1;
set @identified, @identified + 1;
}
}





	dispbottom "You has been healed!";
set .@Delay,3;	// Heal delay, in seconds
if (.@Delay) set @HD, gettimetick(2)+.@Delay;

delay:

dispbottom "You have to wait " + ( @HD - gettimetick(2) ) + " seconds to be healed again.";
	end;

}

Edit:

Forget it, i'm sorry, but i already found this (by emistry)

http://rathena.org/board/topic/54109-request-player-like-a-npc/#entry59202

 

Solved.

Edited by Jesky
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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