개인 자료란 (JE)

  서버 커뮤니티

Profile 앱솔루트 대표칭호 없음

HUI_Cheon 7cea71956a85477dac7aa26c6699108a

Profile

질문하기 스크립트

로어 스크립트 에 관한 질문 급해요 ㅠ

2023.05.13 조회 수 164 추천 수 0
이해도 입문자 
게임버전 (JE) 1.12.2 
게임버전 (BE) 관련없음 
스크립트 버전 Skript-2.6.4 
스크립트 애드온 skDragon.jar / Skellett-2.0.9.jar / SkQuery-4.1.9.jar / skRayFall+v1.9.28.jar / Skript-2.6.4.jar / skUtilities.v0.9.2.jar 

보시다 시피 저는 저 애드온들만 쓰고있습니다 저는 어떻게 해야할지 모르겠씁니다 ㅠㅠ '

방어구에 체력을적용해도 ? 적용이 되지않고 오류가뜹니다. 이게 어떤오류인지 아시는분있나요ㅕ ㅠㅠ?

원래 안되는 걸까요 스크립트는 유료라 올릴수가없어서 대신 적어드립니다.

on damage:

    set {_lore::*} to uncolored lore of attacker's tool

    loop {_lore::*}:

        if {_lore::%loop-index%} contains "공격력":

            set {Dmg.%attacker%} to {_lore::%loop-index%}

            replace all "●" and " " and "공격력" and ":" with "" in {Dmg.%attacker%}

        if {_lore::%loop-index%} contains "크리티컬":

            set {crit.%attacker%} to {_lore::%loop-index%}

            replace all "●" and " " and "크리티컬" and ":" and "%%" with "" in {crit.%attacker%}

        if {_lore::%loop-index%} contains "방어구 관통력":

            set {defenseb.%attacker%} to {_lore::%loop-index%}

            replace all "●" and " " and "방어구" and ":" and "관통력" with "" in {defenseb.%attacker%}

        if {_lore::%loop-index%} contains "생명력 흡수":

            set {Hdrain.%attacker%} to {_lore::%loop-index%}

            replace all "●" and " " and "생명력" and ":" and "흡수" and "%%" with "" in {Hdrain.%attacker%}

        if {_lore::%loop-index%} contains "고정 데미지":

            set {truedamage.%attacker%} to {_lore::%loop-index%}

            replace all "●" and " " and "고정" and "데미지" and ":" with "" in {truedamage.%attacker%}

        if {_lore::%loop-index%} contains "요구 힘":

            set {_limitStr} to {_lore::%loop-index%}

            replace all "●" and " " and "요구" and "힘" and ":" with "" in {_limitStr}

            if {statStr.%attacker%} < {_limitStr} parsed as integer:

                cancel event

                send "&4&l<!> 힘 &f스텟이 부족합니다." to attacker

        if {_lore::%loop-index%} contains "요구 민첩":

            set {_limitDex} to {_lore::%loop-index%}

            replace all "●" and " " and "요구" and "민첩" and ":" with "" in {_limitDex}

            if {statDex.%attacker%} < {_limitDex} parsed as integer:

                cancel event

                send "&4&l<!> &b&l민첩 &f스텟이 부족합니다." to attacker

        if {_lore::%loop-index%} contains "요구 체력":

            set {_limitHP} to {_lore::%loop-index%}

            replace all "●" and " " and "요구" and "체력" and ":" with "" in {_limitHP}

            if {statHP.%attacker%} < {_limitHP} parsed as integer:

                cancel event

                send "&4&l<!> &a&l체력 &f스텟이 부족합니다." to attacker

        if {_lore::%loop-index%} contains "요구 행운":

            set {_limitLuk} to {_lore::%loop-index%}

            replace all "●" and " " and "요구" and "행운" and ":" with "" in {_limitLuk}

            if {statLuk.%attacker%} < {_limitLuk} parsed as integer:

                cancel event

                send "&4&l<!> &e&l행운 &f스텟이 부족합니다." to attacker

    add {Dmg.%attacker%} parsed as integer/2 to damage

    subtract {truedamage.%attacker%} parsed as integer/2 from victim's health

    add {statStr.%attacker%}*0.2 to damage

    add {statDex.%attacker%}*0.35 to damage

    add {statHP.%attacker%}*0.04 to damage

    add {statLuk.%attacker%}*0.2 to damage

    set {_crit.%attacker%} to {crit.%attacker%} parsed as integer

    chance of {_crit.%attacker%}%:

        add damage*(0.75 + {statLuk.%attacker%}*0.005) to damage

        send "&e&l치명타!" to attacker

        send "&c&l치명타!" to victim

    set {_Armor.%victim%} to {Armor.%victim%} + {statHP.%victim%}

    subtract {defenseb.%attacker%} parsed as integer from {_Armor.%victim%}

    set {_Armor1.%victim%} to {_Armor.%victim%}

    set {_Armor2.%victim%} to {_Armor.%victim%} + 100

    set {_Res.%victim%} to {_Armor1.%victim%}/{_Armor2.%victim%}

    set {_fRes.%victim%} to 1 - {_Res.%victim%}

    if {_fRes.%victim%} < 0:

        add {_fRes.%victim%}*-1 to damage

    else:

        set damage to damage*{_fRes.%victim%}

    add damage*{Hdrain.%attacker%} parsed as integer/100 to attacker's health

    delete {Dmg.%attacker%}

    delete {crit.%attacker%}

    delete {defenseb.%attacker%}

    delete {Hdrain.%attacker%}

    delete {truedamage.%attacker%}



1개의 댓글

qsef1256
2023.05.13

LoreAttributes 버그입니다