Issue information

Issue ID
#5589
Status
Fixed
Severity
Low
Started
Hercules Elf Bot
Apr 20, 2012 17:25
Last Post
Hercules Elf Bot
May 4, 2012 6:18
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Apr 20, 2012 17:25

Originally posted by [b]simplynice[/b]
So my character is sitting and i clicked my modified Healer NPC while sitting and my script works perfectly, the skilleffects works but the problem is after clicking it, it forced the character to stand up and then can't walk not unless you sit down again and stand up.

Here's the skilleffects code:

[CODE]

percentheal 100,100;
skilleffect 34,0; sc_start SC_BLESSING,360000,10;
skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
skilleffect 45,0; sc_start SC_CONCENTRATE,360000,10;
skilleffect 66,0; sc_start SC_IMPOSITIO,360000,5;
skilleffect 33,0; sc_start SC_ANGELUS,360000,10;
skilleffect 361,0; sc_start SC_ASSUMPTIO,360000,5;

[/CODE]

Hercules Elf Bot - Apr 22, 2012 23:47

Originally posted by [b]Castor[/b]
I've tested under official server, if the char is sitted, the increase agi effect put the char to stand.

Confirmed and fixed at [rev=15936].

Hercules Elf Bot - Apr 23, 2012 2:10

Originally posted by [b]Napster[/b]
open script.c find BUILDIN_FUNC(skilleffect)

[CODE]
BUILDIN_FUNC(skilleffect)
{
TBL_PC *sd;
int skillid=( script_isstring(st,2) ? skill_name2id(script_getstr(st,2)) : script_getnum(st,2) );
int skilllv=script_getnum(st,3);
sd=script_rid2sd(st);
if (sd && pc_issit(sd))
{
pc_setstand(sd);
clif_status_load(&sd->bl,SI_SIT,0);
}
clif_skill_nodamage(&sd->bl,&sd->bl,skillid,skilllv,1);
return 0;
}
[/CODE]

recompile your server