PandasWS / Pandas

熊猫模拟器 - 基于 rAthena 构建的中文仙境传说模拟器(欢迎加入QQ交流群:928171346)
https://pandas.ws
GNU General Public License v3.0
8 stars 2 forks source link

修正部分脚本指令无法触发 OnPCUseSkillFilter 事件的问题 (感谢 "差记性的小北" 反馈) #685

Closed CairoLee closed 1 year ago

CairoLee commented 1 year ago

测试脚本

prontera,161,112,5  script  testscript2 OBJ_A2,{
    unitskilluseid getcharid(3), 28, 1, getcharid(3);
    end;
OnPCUseSkillFilter:
    dispbottom(sprintf("OnPCUseSkillFilter: id = %d | lv = %d | target = %d | x = %d | y = %d", @useskill_id, @useskill_lv, @useskill_target_gid, @useskill_pos_x, @useskill_pos_y));
    .@rand = rand(1000);
    if (.@rand < 500) {
        dispbottom "ProcessHalt !!";
        processhalt;
    }
    end;
}

prontera,161,109,5  script  testscript2pos  OBJ_A2,{
    unitskillusepos getcharid(3), 21, 1, 158, 112;
    end;
}