OnBlessed:
if (@blessing != 1) {
end;
}
getmapxy(@mapb$, @xb, @yb, 0 );
if (@mapb$ != .bless_map$) {
dispbottom "Blessing is stopped because you are not in "+.bless_mname$+".";
set @blessing,0;
end;
}
set @bexp,BaseLevel/@bless_boost*.bless_rate;
if (countitem(.bless_item)) {
set @bexp,@bexp*2;
delitem .bless_item,1;}
getexp @bexp,@bexp;
specialeffect2 14;
dispbottom "Gained "+@bexp*.server_rate+" Exp and J-Exp from Blessing.";
deltimer "blessme::OnBlessed";
addtimer 10000,"blessme::OnBlessed";
end;
}