Jump to content
  • 0
AnyThing

strcharinfo() no longer recognized in defpattern

Question

prontera,162,184,4	script	Heall	4_PORING,{specialeffect2 EF_HEAL2; percentheal 100,100;getitem 7139,1; // Get the Glistering Coat needed to cast FCPatcommand "@useskill 479 5 " +strcharinfo(0); // Full chemical protection lvl 5close;buffPlayer:specialeffect2 EF_HEAL2; percentheal 100,100;getitem 7139,1; // Get the Glistering Coat needed to cast FCPatcommand "@useskill 479 5 " +strcharinfo(0); // Full chemical protection lvl 5end;OnInit:	defpattern 1, "([^:]+):.*sbuffme(s.*)?", "buffPlayer";	activatepset 1;	end;}

If I click the NPC, it will heal me and give me FCP.

 

But if i type 'buffme' in a view range of NPC, it will only heal me and give me 1 glistening coat without actually giving me FCP.

 

I think the problem is on strcharinfo(0). But on eathena, it's used to work. In hercules no longer work.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Any idea why is this happened? Below buffPlayer:

 

percentheal 100, 100; specialeffect2 EF_HEAL;skilleffect 8,0; sc_start SC_ENDURE,0,10;getitem 7139,1; // Get the Glistering Coat needed to cast FCPatcommand "@useskill 479 5 " +strcharinfo(0); // Full chemical protection lvl 5skilleffect 29,0; sc_start SC_INCREASEAGI,0,10;

^ FCP will cast

 

percentheal 100, 100; specialeffect2 EF_HEAL;skilleffect 8,0; sc_start SC_ENDURE,0,10;skilleffect 29,0; sc_start SC_INCREASEAGI,0,10;getitem 7139,1; // Get the Glistering Coat needed to cast FCPatcommand "@useskill 479 5 " +strcharinfo(0); // Full chemical protection lvl 5

^ FCP will not cast

change "SC_INCREASEAGI" to "SC_INCAGI" and it would work..

Share this post


Link to post
Share on other sites
  • 0

 

prontera,162,184,4	script	Heall	4_PORING,{specialeffect2 EF_HEAL2; percentheal 100,100;getitem 7139,1; // Get the Glistering Coat needed to cast FCPatcommand "@useskill 479 5 " +strcharinfo(0); // Full chemical protection lvl 5close;buffPlayer:specialeffect2 EF_HEAL2; percentheal 100,100;getitem 7139,1; // Get the Glistering Coat needed to cast FCPatcommand "@useskill 479 5 " +strcharinfo(0); // Full chemical protection lvl 5end;OnInit:	defpattern 1, "([^:]+):.*sbuffme(s.*)?", "buffPlayer";	activatepset 1;	end;}

If I click the NPC, it will heal me and give me FCP.

 

But if i type 'buffme' in a view range of NPC, it will only heal me and give me 1 glistening coat without actually giving me FCP.

 

I think the problem is on strcharinfo(0). But on eathena, it's used to work. In hercules no longer work.

Using your script, and its casting FCP on me when clicking and also by typing "buffme"

which revision of hercules and which client you are using?

Share this post


Link to post
Share on other sites
  • 0

Any idea why is this happened? Below buffPlayer:

 

percentheal 100, 100; specialeffect2 EF_HEAL;skilleffect 8,0; sc_start SC_ENDURE,0,10;getitem 7139,1; // Get the Glistering Coat needed to cast FCPatcommand "@useskill 479 5 " +strcharinfo(0); // Full chemical protection lvl 5skilleffect 29,0; sc_start SC_INCREASEAGI,0,10;

^ FCP will cast

 

percentheal 100, 100; specialeffect2 EF_HEAL;skilleffect 8,0; sc_start SC_ENDURE,0,10;skilleffect 29,0; sc_start SC_INCREASEAGI,0,10;getitem 7139,1; // Get the Glistering Coat needed to cast FCPatcommand "@useskill 479 5 " +strcharinfo(0); // Full chemical protection lvl 5

^ FCP will not cast

Share this post


Link to post
Share on other sites
  • 0

change .*sbuffme(s.*)?  to .*buffme.*  , it should work (tested)

prontera,162,184,4	script	Heall	4_PORING,{specialeffect2 EF_HEAL2; percentheal 100,100;getitem 7139,1; // Get the Glistering Coat needed to cast FCPatcommand "@useskill 479 5 " +strcharinfo(0); // Full chemical protection lvl 5close;buffPlayer:specialeffect2 EF_HEAL2; percentheal 100,100;skilleffect 479,0;sc_start SC_PROTECTWEAPON,600000,5;sc_start SC_PROTECTARMOR,600000,5;sc_start SC_PROTECTHELM,600000,5;     sc_start SC_PROTECTSHIELD,600000,5; end;OnInit:	defpattern 1, "([^:]+):.*buffme.*", "buffPlayer";	activatepset 1;	end;}

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.