strcharinfo() no longer recognized in defpattern

AnyThing

New member
Messages
9
Points
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.

 
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?

 
Last edited by a moderator:
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 .*sbuffme(s.*)?  to .*buffme.*  , it should work (tested)

Code:
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;}
 
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..

 
Last edited by a moderator:
Back
Top