luizragna
New member
Hello guys. When a kill monster with @mosnter the mod id is added to variable killedrid.
But when i kill a monster summoned with script command monster he is not added to killedrid.
monster "pay_dun04",122,123,"[DG] Red Plant",1078,1,strnpcinfo(0)+"::OnBonus";
end;
OnBonus:
mes "Do you killed a monster";
if (killedrid == 1078){
mes "This monster is Red Plant";
close2;
percentheal 15,0;
specialeffect(7, SELF, playerattached());
}
end;
In the above example, the script not enter in if (killedrid == 1078).
Whats is the problem?? (In the rAthena i not have this problem)
But when i kill a monster summoned with script command monster he is not added to killedrid.
monster "pay_dun04",122,123,"[DG] Red Plant",1078,1,strnpcinfo(0)+"::OnBonus";
end;
OnBonus:
mes "Do you killed a monster";
if (killedrid == 1078){
mes "This monster is Red Plant";
close2;
percentheal 15,0;
specialeffect(7, SELF, playerattached());
}
end;
In the above example, the script not enter in if (killedrid == 1078).
Whats is the problem?? (In the rAthena i not have this problem)