Batch #17140 by ragnarok-clanker: 250 byte-identical, 218 confirmed by peer review. - fn_03093 EffectResourceSwitcher::SetNames: logic confirmed by peer review - fn_03097 EffectResourceSwitcher::OnProcess: logic confirmed by peer review - fn_03154 CSkillAction_DamageWereRaptorForm::SpawnAttack02Effect: logic confirmed by peer review - fn_03155 CSkillAction_DamageWereRaptorForm::PlayFormAttackEffect: logic confirmed by peer review (already on main) - fn_03156 CSkillAction_DamageWereWolfForm::PlayFormAttackEffect: logic confirmed by peer review (already on main) - fn_03157 CSkillAction_Icing::SpawnIcing: logic confirmed by peer review (already on main) - fn_03158 CSkillAction_ThunderingBasic::PlayThunderEffect: logic confirmed by peer review (already on main) - fn_03159 CSkillAction_ThunderingExpand::PlayThunderEffect: logic confirmed by peer review (already on main) - fn_03160 CSkillAction_DamageWereRaptorForm::SpawnDirectionalEffect: logic confirmed by peer review - fn_03177 CEfstAction_BasicAction::OnEfstBegin: logic confirmed by peer review - fn_03179 CSkillAction_Icing::OnSkillCast: byte-identical - fn_03180 CSkillAction_Thundering::OnSkillCast: logic confirmed by peer review (already on main) - fn_03185 CEfstAction_AnimalForm::ResetAnimalForm: logic confirmed by peer review (already on main) - fn_03188 CSkillAction_AT_ALPHA_CLAW::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03192 CSkillAction_AT_PULSE_OF_MADNESS::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03196 CSkillAction_AT_FRENZY_FANG::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03200 CSkillAction_AT_PINION_SHOT::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03205 CSkillAction_AT_QUILL_SPEAR::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03206 CSkillAction_AT_QUILL_SPEAR_S::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03210 CSkillAction_AT_NATURE_HARMONY::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03217 CSkillAction_AT_GRAVITY_HOLE::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03219 CSkillAction_AT_CHILLING_BLAST::OnSkillEffect: logic confirmed by peer review - fn_03222 CSkillObjectAction_AT_GLACIER_MONOLITH::OnSkillObjectCreate: logic confirmed by peer review - fn_03223 CSkillObjectAction_AT_GLACIER_MONOLITH::OnSkillObjectRemove: logic confirmed by peer review - fn_03225 CSkillAction_AT_GLACIER_NOVA::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_03226 CSkillAction_AT_GLACIER_SHARD::OnGroundSkillCast: logic confirmed by peer review (already on main) - fn_03227 CSkillAction_AT_GLACIER_SHARD::OnSkillEffect: logic confirmed by peer review - fn_03229 CSkillAction_AT_GLACIER_STOMP::OnSkillEffect: logic confirmed by peer review - fn_03231 CSkillAction_AT_ROARING_CHARGE::OnSkillEffect: logic confirmed by peer review - fn_03233 CSkillAction_AT_ROARING_CHARGE_S::OnSkillEffect: logic confirmed by peer review - fn_03234 CSkillAction_AT_ROARING_PIERCER::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03235 CSkillAction_AT_ROARING_PIERCEER_S::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03237 CSkillAction_AT_FURIOS_STORM::OnSkillEffect: logic confirmed by peer review - fn_03243 CSkillAction_AT_ALPHA_PHASE::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03247 CSkillAction_AT_APEX_PHASE::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03251 CSkillAction_AT_FLIP_FLAP::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03256 CSkillAction_AT_AERO_SYNC::OnSkillEffect: logic confirmed by peer review - fn_03259 CEfstAction_FLIP_FLAP_TARGET::OnEfstBegin: logic confirmed by peer review (already on main) - fn_03261 CSkillAction_AT_SAVAGE_LUNGE::OnSkillEffect: logic confirmed by peer review - fn_03264 CSkillAction_AT_TEMPEST_FLAP::OnSkillCast: logic confirmed by peer review (already on main) - fn_03265 CSkillAction_AT_TEMPEST_FLAP::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03267 CSkillAction_AT_TERRA_HARVEST::OnSkillEffect: logic confirmed by peer review - fn_03268 CSkillAction_AT_TERRA_WAVE::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_03270 CSkillAction_AT_SOLID_STOMP::OnSkillEffect: logic confirmed by peer review - fn_03274 CEfstAction_ZEPHYR_LINK::OnEfstBegin: logic confirmed by peer review - fn_03277 CEfstAction_INSANE::OnEfstBegin: logic confirmed by peer review - fn_03280 CEfstAction_INSANE2::OnEfstBegin: logic confirmed by peer review - fn_03281 CEfstAction_INSANE3::OnEfstBegin: logic confirmed by peer review - fn_03327 CSkillAction_AT_PRIMAL_CLAW::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03329 CSkillAction_AT_FERAL_CLAW::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03341 CSkillAction_KR_DOUBLE_SLASH::OnSkillEffect: logic confirmed by peer review - fn_03343 CSkillAction_KR_NASTY_SLASH::OnSkillEffect: logic confirmed by peer review - fn_03347 CSkillAction_KR_CLAW_WAVE::OnGroundSkillEffect: logic confirmed by peer review - fn_03349 CSkillAction_KR_EARTH_DRILL::OnSkillHit: logic confirmed by peer review - fn_03351 CSkillAction_KR_EARTH_STAMP::OnGroundSkillEffect: logic confirmed by peer review - fn_03354 CSkillAction_KR_GROUND_BLOOM::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03355 CSkillAction_KR_THUNDERING_CALL::OnSkillEffect: logic confirmed by peer review - fn_03356 CSkillAction_KR_THUNDERING_CALL_S::OnSkillEffect: logic confirmed by peer review - fn_03358 CSkillAction_KR_THUNDERING_FOCUS::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03360 CSkillAction_KR_THUNDERING_FOCUS_S::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03361 CSkillAction_KR_THUNDERING_ORB::OnGroundSkillEffect: logic confirmed by peer review - fn_03362 CSkillAction_KR_THUNDERING_ORB_S::OnGroundSkillEffect: logic confirmed by peer review - fn_03363 CSkillAction_KR_ICE_SPLASH::OnSkillEffect: logic confirmed by peer review - fn_03366 CSkillObjectAction_KR_ICE_PILLAR::OnSkillObjectCreate: logic confirmed by peer review - fn_03369 CSkillAction_KR_FEATHER_SPRINKLE::OnSkillEffect: logic confirmed by peer review - fn_03374 CSkillAction_KR_SHARPEN_GUST::OnSkillEffect: logic confirmed by peer review - fn_03378 CSkillAction_KR_SHARPEN_HAIL::OnSkillCast: logic confirmed by peer review - fn_03379 CSkillAction_KR_SHARPEN_HAIL::OnSkillEffect: logic confirmed by peer review - fn_03384 CSkillAction_KR_IRON_HOWLING::OnSkillEffect: logic confirmed by peer review - fn_03390 CSkillAction_KR_TYPHOON_WING::OnGroundSkillEffect: logic confirmed by peer review - fn_03396 CEfstAction_WIND_VEIL::OnEfstBegin: logic confirmed by peer review - fn_03400 CSkillAction_SKID_KR_CHOP_CHOP::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03436 CMapSkyMgr::CreateClouds: logic confirmed by peer review (already on main) - fn_04459 CSkillAction_DR_WERERAPTOR::OnSkillEffect: logic confirmed by peer review - fn_04466 CSkillAction_DR_ENRAGE_WOLF::OnSkillEffect: logic confirmed by peer review - fn_04472 CSkillAction_DR_BLOOD_HOWLING::OnSkillEffect: logic confirmed by peer review - fn_04476 CSkillAction_DR_NOMERCY_CLAW::OnSkillEffect: logic confirmed by peer review - fn_04478 CSkillAction_DR_HUNGER::OnSkillEffect: logic confirmed by peer review - fn_04479 CSkillAction_DR_HUNGER::OnSkillHit: logic confirmed by peer review - fn_04481 CSkillAction_DR_CRUEL_BITE::OnSkillEffect: logic confirmed by peer review - fn_04485 CSkillAction_DR_ENRAGE_RAPTOR::OnSkillEffect: logic confirmed by peer review - fn_04491 CSkillAction_DR_PREENING::OnSkillEffect: logic confirmed by peer review - fn_04495 CSkillAction_DR_SHOOTING_FEATHER::OnSkillEffect: logic confirmed by peer review (already on main) - fn_04498 CSkillAction_DR_FLICKING_TONADO::OnSkillEffect: logic confirmed by peer review - fn_04500 CSkillAction_DR_LOW_FLIGHT::OnSkillEffect: logic confirmed by peer review - fn_04504 CSkillAction_DR_NATURE_SHIELD::OnSkillEffect: logic confirmed by peer review - fn_04522 CSkillAction_DR_TRUTH_OF_EARTH::OnSkillEffect: logic confirmed by peer review - fn_04528 CSkillAction_DR_TRUTH_OF_ICE::OnSkillEffect: logic confirmed by peer review (already on main) - fn_04534 CSkillAction_DR_TRUTH_OF_WIND::OnSkillEffect: logic confirmed by peer review - fn_04540 CSkillAction_DR_CUTTING_WIND::OnSkillEffect: logic confirmed by peer review - fn_04541 CSkillAction_DR_CUTTING_WIND::OnSkillDamage: logic confirmed by peer review - fn_04545 CSkillAction_DR_WIND_BOMB::OnSkillEffect: logic confirmed by peer review - fn_04546 CSkillAction_DR_WIND_BOMB::OnSkillDamage: logic confirmed by peer review - fn_04547 CSkillAction_DR_AROUND_FLOWER::OnSkillEffect: logic confirmed by peer review - fn_04548 CSkillAction_DR_EARTH_FLOWER::OnSkillEffect: logic confirmed by peer review (already on main) - fn_04549 CSkillAction_DR_ICE_CLOUD::OnSkillEffect: logic confirmed by peer review - fn_04550 CSkillAction_DR_ICE_TOTEM::OnSkillEffect: logic confirmed by peer review - fn_04552 CSkillAction_DR_WEREWOLF::OnSkillEffect: logic confirmed by peer review - fn_05551 CEnchantMgr::HandleEnchantResult: logic confirmed by peer review - fn_07446 CShowEffect::Add: logic confirmed by peer review - fn_08326 CEfstAction_ChangeSize::OnEfstBegin: byte-identical (already on main) - fn_08329 CEfstAction_GenderChange::OnEfstBegin: byte-identical - fn_08330 CEfstAction_GenderChange::OnEfstEnd: logic confirmed by peer review - fn_08332 CEfstAction_ShowEffect::OnEfstBegin: byte-identical (already on main) - fn_08336 CSkillAction_RA_UNLIMIT::OnSkillEffect: byte-identical - fn_08337 CEfstAction_UNLIMIT::OnEfstBegin: logic confirmed by peer review - fn_08340 CSkillAction_AG_ENERGY_CONVERSION::OnSkillCast: logic confirmed by peer review - fn_08341 CSkillAction_AG_ENERGY_CONVERSION::OnSkillEffect: byte-identical - fn_08342 CSkillAction_CD_DIVINUS_FLOS::OnSkillCast: byte-identical - fn_08343 CSkillAction_CD_DIVINUS_FLOS::OnSkillEffect: byte-identical - fn_08344 CSkillAction_CD_DIVINUS_FLOS::OnSkillDamage: logic confirmed by peer review - fn_08345 CSkillAction_SHC_ENCHANTING_SHADOW::OnSkillCast: byte-identical - fn_08349 CSkillAction_SHC_IMPACT_CRATER::OnSkillEffect: byte-identical - fn_08350 CSkillAction_SHC_IMPACT_CRATER::OnSkillDamage: byte-identical - fn_08352 CSkillAction_SHC_CROSS_SLASH::OnSkillEffect: byte-identical - fn_08353 CSkillAction_SHC_CROSS_SLASH::OnSkillDamage: byte-identical - fn_08355 CSkillAction_SHC_DANCING_KNIFE::OnSkillCast: byte-identical - fn_08356 CSkillAction_SHC_DANCING_KNIFE::OnSkillDamage: byte-identical - fn_08357 CEfstAction_DANCING_KNIFE::OnEfstBegin: byte-identical - fn_08361 CSkillAction_SHC_SHADOW_STAB::OnSkillEffect: byte-identical - fn_08362 CSkillAction_SHC_SHADOW_STAB::OnSkillDamage: logic confirmed by peer review - fn_08363 CSkillAction_SHC_SHADOW_EXCEED::OnSkillCast: byte-identical - fn_08364 CSkillAction_SHC_SHADOW_EXCEED::OnSkillEffect: byte-identical - fn_08372 CSkillAction_ABC_CHASING_BREAK::OnSkillEffect: logic confirmed by peer review (already on main) - fn_08373 CSkillAction_ABC_CHASING_BREAK::OnSkillDamage: byte-identical - fn_08376 CSkillAction_ABC_CHASING_SHOT::OnSkillCast: byte-identical - fn_08377 CSkillAction_ABC_CHASING_SHOT::OnSkillEffect: logic confirmed by peer review (already on main) - fn_08378 CSkillAction_ABC_CHASING_SHOT::OnSkillHit: byte-identical - fn_08379 CSkillAction_ABC_CHASING_SHOT::OnSkillDamage: byte-identical - fn_08381 CSkillAction_ABC_HIT_AND_SLIDING::OnSkillDamage: byte-identical - fn_08382 CSkillAction_ABC_ABYSS_FLAME::OnSkillCast: byte-identical - fn_08383 CSkillAction_ABC_ABYSS_FLAME::OnSkillEffect: byte-identical - fn_08384 CSkillAction_ABC_ABYSS_FLAME::OnSkillDamage: byte-identical - fn_08386 CSkillAction_ABC_ABYSS_FLAME_ATK::OnSkillEffect: byte-identical - fn_08387 CSkillAction_ABC_ABYSS_FLAME_ATK::OnSkillDamage: byte-identical - fn_08388 CSkillAction_EM_PSYCHIC_STREAM::OnSkillCast: byte-identical - fn_08389 CSkillAction_EM_PSYCHIC_STREAM::OnSkillEffect: byte-identical - fn_08390 CSkillAction_EM_PSYCHIC_STREAM::OnSkillDamage: byte-identical - fn_08392 CSkillAction_IQ_BLAZING_FLAME_BLAST::OnSkillCast: byte-identical - fn_08393 CSkillAction_IQ_BLAZING_FLAME_BLAST::OnSkillEffect: byte-identical - fn_08394 CSkillAction_IQ_BLAZING_FLAME_BLAST::OnSkillDamage: logic confirmed by peer review - fn_08437 CSkillAction_BO_MAYHEMIC_THORNS::OnSkillCast: byte-identical (already on main) - fn_08438 CSkillAction_BO_MAYHEMIC_THORNS::OnSkillEffect: byte-identical - fn_08440 CSkillAction_BO_EXPLOSIVE_POWDER::OnSkillEffect: byte-identical - fn_08442 CSkillAction_BO_MYSTERY_POWDER::OnSkillEffect: byte-identical - fn_08443 CSkillAction_BO_MYSTERY_POWDER::OnSkillDamage: byte-identical - fn_08444 CEfstAction_MYSTERY_POWDER::OnEfstBegin: byte-identical - fn_08448 CSkillAction_BO_DUST_EXPLOSION::OnSkillDamage: byte-identical - fn_08449 DustExplosionSpawner::operator(): logic confirmed by peer review - fn_08450 CSkillAction_DK_VIGOR::OnSkillEffect: byte-identical - fn_08451 CEfstAction_VIGOR::OnEfstBegin: byte-identical - fn_08456 CSkillAction_DK_SERVANTWEAPON_ATK::OnSkillHit: byte-identical - fn_08457 CSkillAction_DK_SERVANTWEAPON_ATK::OnSkillDamage: byte-identical - fn_08461 CSkillAction_DK_SERVANT_W_PHANTOM::OnSkillDamage: logic confirmed by peer review - fn_08462 CEfstAction_SERVANT_SIGN::OnEfstBegin: byte-identical - fn_08468 CSkillAction_DK_SERVANT_W_PHANTOM::OnSkillHit: logic confirmed by peer review (already on main) - fn_08470 CSkillAction_DK_SERVANT_W_DEMOL::OnSkillHit: logic confirmed by peer review - fn_08471 CSkillAction_DK_SERVANT_W_DEMOL::OnSkillDamage: byte-identical - fn_08473 CSkillAction_DK_STORMSLASH::OnSkillEffect: logic confirmed by peer review - fn_08477 CSkillAction_DK_MADNESS_CRUSHER::OnSkillDamage: byte-identical - fn_08479 CSkillAction_DK_DRAGONIC_PIERCE::OnSkillCast: byte-identical - fn_08480 CSkillAction_DK_DRAGONIC_PIERCE::OnSkillEffect: logic confirmed by peer review (already on main) - fn_08481 CSkillAction_DK_DRAGONIC_PIERCE::OnSkillDamage: byte-identical - fn_08484 CSkillAction_DK_DRAGONIC_BREATH::OnSkillEffect: byte-identical - fn_08485 CSkillAction_DK_DRAGONIC_BREATH::OnSkillHit: logic confirmed by peer review - fn_08488 CSkillAction_DK_CHARGINGPIERCE::OnSkillEffect: byte-identical - fn_08490 CEfstAction_CHARGINGPIERCE_COUNT::OnEfstBegin: logic confirmed by peer review - fn_08493 CSkillAction_DK_HACKANDSLASHER::OnSkillEffect: byte-identical - fn_08494 CSkillAction_DK_HACKANDSLASHER::OnSkillDamage: byte-identical - fn_08496 CSkillAction_DK_HACKANDSLASHER_ATK::OnSkillDamage: byte-identical - fn_08498 CSkillAction_NPC_BLOCK_EXPLOSION::OnSkillEffect: byte-identical - fn_08500 CSkillAction_NPC_FROST_FIELD::OnSkillEffect: logic confirmed by peer review - fn_08501 CSkillAction_NPC_FROST_FIELD::OnSkillDamage: byte-identical - fn_08502 CEfstAction_FROST_STORM::OnEfstBegin: byte-identical - fn_08506 CSkillAction_NPC_LIGHTNING_JUDGEMENT::OnSkillEffect: logic confirmed by peer review - fn_08507 CSkillAction_NPC_LIGHTNING_JUDGEMENT::OnSkillDamage: byte-identical - fn_08508 CEfstAction_GROGGY::OnEfstBegin: byte-identical - fn_08511 CSkillAction_NPC_RESET_EFST::OnSkillEffect: logic confirmed by peer review - fn_08512 CEfstAction_TARGET_MARKER::OnEfstBegin: byte-identical - fn_08517 CSkillAction_NPC_AIMED_SHOWER::OnSkillEffect: logic confirmed by peer review - fn_08518 CSkillAction_NPC_AIMED_SHOWER::OnSkillDamage: byte-identical - fn_08520 CSkillAction_NPC_BLAZING_ERUPTION::OnSkillEffect: logic confirmed by peer review - fn_08522 CEfstAction_BLOCK_SEAL::OnEfstBegin: byte-identical - fn_08527 CSkillAction_HN_DOUBLEBOWLINGBASH::OnSkillEffect: byte-identical - fn_08530 CSkillAction_HN_MEGA_SONIC_BLOW::OnSkillEffect: byte-identical - fn_08533 CSkillAction_HN_SHIELD_CHAIN_RUSH::OnSkillEffect: byte-identical - fn_08536 CSkillAction_HN_SPIRAL_PIERCE_MAX::OnSkillEffect: logic confirmed by peer review - fn_08539 CSkillAction_HN_METEOR_STORM_BUSTER::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08544 CSkillAction_HN_JUPITEL_THUNDER_STORM::OnSkillEffect: byte-identical - fn_08547 CSkillAction_HN_JACK_FROST_NOVA::OnSkillCast: logic confirmed by peer review - fn_08550 CSkillObjectAction_HN_JACK_FROST_NOVA::OnSkillObjectCreate: byte-identical - fn_08551 CSkillObjectAction_HN_JACK_FROST_NOVA::OnSkillObjectRemove: byte-identical - fn_08554 CSkillAction_HN_HELLS_DRIVE::OnSkillEffect: logic confirmed by peer review - fn_08558 CSkillObjectAction_HN_GROUND_GRAVITATION::OnSkillObjectCreate: byte-identical - fn_08562 CSkillAction_HN_NAPALM_VULCAN_STRIKE::OnSkillHit: byte-identical - fn_08565 CSkillAction_HN_BREAKINGLIMIT::OnSkillEffect: byte-identical - fn_08566 CEfstAction_BREAKINGLIMIT::OnEfstBegin: byte-identical - fn_08571 CSkillAction_HN_RULEBREAK::OnSkillEffect: byte-identical - fn_08572 CEfstAction_RULEBREAK::OnEfstBegin: byte-identical - fn_08575 CSkillAction_HN_OVERCOMING_CRISIS::OnSkillEffect: byte-identical - fn_08579 CSkillAction_IG_CROSS_RAIN::OnSkillCast: byte-identical - fn_08581 CSkillObjectAction_IG_CROSS_RAIN::OnSkillObjectCreate: logic confirmed by peer review - fn_08583 CSkillAction_IG_GRAND_JUDGEMENT::OnSkillCast: byte-identical - fn_08584 CSkillAction_IG_GRAND_JUDGEMENT::OnSkillEffect: logic confirmed by peer review - fn_08585 CEfstAction_IG_GRAND_JUDGEMENT::OnEfstBegin: byte-identical - fn_08590 CSkillAction_IG_GUARDIAN_SHIELD::OnSkillEffect: byte-identical - fn_08591 CEfstAction_IG_GUARDIAN_SHIELD::OnEfstBegin: byte-identical - fn_08596 CSkillAction_IG_HOLY_SHIELD::OnSkillCast: byte-identical - fn_08597 CSkillAction_IG_HOLY_SHIELD::OnSkillEffect: byte-identical - fn_08598 CEfstAction_IG_HOLY_SHIELD::OnEfstBegin: byte-identical - fn_08604 CSkillAction_IG_JUDGEMENT_CROSS::OnSkillCast: byte-identical - fn_08605 CSkillAction_IG_JUDGEMENT_CROSS::OnSkillEffect: logic confirmed by peer review - fn_08606 CSkillAction_IG_JUDGEMENT_CROSS::OnSkillHit: byte-identical - fn_08607 CSkillAction_IG_JUDGEMENT_CROSS::OnSkillDamage: logic confirmed by peer review - fn_08609 CSkillAction_IG_OVERSLASH::OnSkillCast: byte-identical - fn_08610 CSkillAction_IG_OVERSLASH::OnSkillEffect: byte-identical - fn_08611 CSkillAction_IG_OVERSLASH::OnSkillDamage: byte-identical - fn_08612 CSkillAction_IG_REBOUND_SHIELD::OnSkillCast: byte-identical - fn_08613 CSkillAction_IG_REBOUND_SHIELD::OnSkillEffect: byte-identical - fn_08617 CSkillAction_IG_ULTIMATE_SACRIFICE::OnSkillEffect: byte-identical - fn_08618 CEfstAction_IG_ULTIMATE_SACRIFICE::OnEfstBegin: logic confirmed by peer review - fn_08622 CSkillAction_IG_IMPERIAL_CROSS::OnSkillEffect: byte-identical - fn_08623 CSkillAction_IG_IMPERIAL_CROSS::OnSkillDamage: byte-identical - fn_08625 CSkillAction_IG_RADIANT_SPEAR::OnSkillCast: byte-identical - fn_08626 CSkillAction_IG_RADIANT_SPEAR::OnSkillEffect: logic confirmed by peer review - fn_08627 CSkillAction_IG_RADIANT_SPEAR::OnSkillDamage: byte-identical - fn_08628 CSkillAction_IG_IMPERIAL_PRESSURE::OnSkillCast: byte-identical - fn_08629 CSkillAction_IG_IMPERIAL_PRESSURE::OnSkillEffect: byte-identical - fn_08630 CSkillAction_IG_IMPERIAL_PRESSURE::OnSkillDamage: byte-identical - fn_08632 CSkillAction_IG_SHIELD_SHOOTING::OnSkillCast: byte-identical - fn_08633 CSkillAction_IG_SHIELD_SHOOTING::OnSkillEffect: logic confirmed by peer review - fn_08634 CSkillAction_IG_SHIELD_SHOOTING::OnSkillDamage: byte-identical - fn_08636 CSkillAction_IG_ATTACK_STANCE::OnSkillCast: byte-identical - fn_08637 CSkillAction_IG_ATTACK_STANCE::OnSkillEffect: byte-identical - fn_08638 CEfstAction_IG_ATTACK_STANCE::OnEfstBegin: byte-identical - fn_08644 CSkillAction_IG_GUARD_STANCE::OnSkillCast: byte-identical - fn_08645 CSkillAction_IG_GUARD_STANCE::OnSkillEffect: byte-identical - fn_08646 CEfstAction_IG_GUARD_STANCE::OnEfstBegin: byte-identical - fn_08653 CSkillAction_MT_SPARK_BLASTER::OnSkillEffect: byte-identical - fn_08657 CSkillAction_MT_TRIPLE_LASER::OnSkillHit: byte-identical - fn_08659 CSkillAction_MT_MIGHTY_SMASH::OnSkillEffect: byte-identical - fn_08662 CSkillAction_MT_ENERGY_CANNONADE::OnSkillCast: byte-identical - fn_08663 CSkillAction_MT_ENERGY_CANNONADE::OnSkillEffect: byte-identical - fn_08664 CSkillAction_MT_ENERGY_CANNONADE::OnSkillHit: byte-identical - fn_08665 CSkillAction_MT_ENERGY_CANNONADE::OnSkillDamage: byte-identical - fn_08667 CSkillAction_MT_RUSH_STRIKE::OnSkillEffect: logic confirmed by peer review - fn_08668 CSkillAction_MT_RUSH_STRIKE::OnSkillDamage: byte-identical - fn_08670 CSkillAction_MT_POWERFUL_SWING::OnSkillEffect: logic confirmed by peer review - fn_08671 CSkillAction_MT_POWERFUL_SWING::OnSkillDamage: byte-identical - fn_08676 CSkillAction_NW_INTENSIVE_AIM::OnSkillEffect: byte-identical - fn_08677 CEfstAction_INTENSIVE_AIM_COUNT::OnEfstBegin: logic confirmed by peer review - fn_08680 CSkillAction_NW_GRENADE_FRAGMENT::OnSkillEffect: logic confirmed by peer review - fn_08683 CSkillAction_NW_THE_VIGILANTE_AT_NIGHT_GUN_GATLING::OnSkillEffect: logic confirmed by peer review - fn_08685 CSkillAction_NW_THE_VIGILANTE_AT_NIGHT_GUN_SHOTGUN::OnSkillEffect: logic confirmed by peer review - fn_08688 CSkillAction_NW_ONLY_ONE_BULLET::OnTargetSkillCast: byte-identical - fn_08689 CSkillAction_NW_ONLY_ONE_BULLET::OnSkillDamage: byte-identical - fn_08692 CSkillAction_NW_SPIRAL_SHOOTING::OnSkillEffect: byte-identical - fn_08695 CSkillAction_NW_MAGAZINE_FOR_ONE::OnSkillEffect: byte-identical - fn_08698 CSkillAction_NW_WILD_FIRE::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08702 CSkillAction_NW_BASIC_GRENADE::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08707 CSkillAction_NW_HASTY_FIRE_IN_THE_HOLE::OnGroundSkillEffect: logic confirmed by peer review - fn_08713 CSkillObjectAction_NW_GRENADES_DROPPING::OnSkillObjectCreate: byte-identical - fn_08716 CSkillAction_NW_AUTO_FIRING_LAUNCHER::OnSkillEffect: byte-identical - fn_08719 CSkillAction_NW_HIDDEN_CARD::OnSkillEffect: byte-identical - fn_08720 CEfstAction_HIDDEN_CARD::OnEfstBegin: byte-identical - fn_08727 CSkillObjectAction_NW_MISSION_BOMBARD::OnSkillObjectCreate: byte-identical - fn_08729 CSkillAction_NW_WILD_SHOT::OnSkillCast: byte-identical - fn_08730 CSkillAction_NW_WILD_SHOT::OnSkillEffect: logic confirmed by peer review - fn_08731 CSkillAction_NW_WILD_SHOT::OnSkillDamage: byte-identical - fn_08734 CSkillAction_NW_MIDNIGHT_FALLEN::OnSkillCast: byte-identical - fn_08735 CSkillAction_NW_MIDNIGHT_FALLEN::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08736 CSkillAction_NW_MIDNIGHT_FALLEN::OnSkillDamage: byte-identical - fn_08738 CEfstAction_NIGHTMARE::OnEfstBegin: byte-identical - fn_08741 CEfstAction_SHADOW_CLOCK::OnEfstBegin: byte-identical - fn_08744 CSkillObjectAction_SS_SBUNSHIN::OnSkillObjectCreate: byte-identical - fn_08745 CSkillObjectAction_SS_SBUNSHIN::OnSkillObjectRemove: byte-identical - fn_08746 CSkillObjectAction_SS_KUNAITRAP::OnSkillObjectCreate: byte-identical - fn_08747 CSkillObjectAction_SS_KUNAITRAP::OnSkillObjectRemove: byte-identical - fn_08748 CSkillAction_SS_TOKEDASU::OnGroundSkillEffect: logic confirmed by peer review - fn_08752 CSkillAction_SS_AKUMUKESU::OnSkillEffect: byte-identical - fn_08755 CSkillAction_SS_SHINKIROU::OnSkillCast: byte-identical (already on main) - fn_08756 CSkillAction_SS_KAGEGARI::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08759 CSkillAction_SS_KAGENOMAI::OnSkillEffect: byte-identical - fn_08762 CSkillAction_SS_KAGEGISSEN::OnSkillEffect: byte-identical - fn_08764 CSkillAction_SS_FUUMASHOUAKU::OnSkillCast: byte-identical - fn_08765 CSkillObjectAction_NPC_FUUMA::OnSkillObjectCreate: byte-identical - fn_08767 CSkillAction_SS_FUUMAKOUCHIKU::OnSkillCast: byte-identical - fn_08768 CSkillAction_SS_FUUMAKOUCHIKU::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08769 CSkillAction_SS_FUUMASHOUAKU_HIT::OnSkillHit: byte-identical - fn_08771 CSkillAction_SS_KUNAIWAIKYOKU::OnSkillCast: byte-identical - fn_08772 CSkillAction_SS_KUNAIWAIKYOKU::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08774 CSkillAction_SS_KUNAIKAITEN::OnSkillEffect: logic confirmed by peer review - fn_08776 CSkillAction_SS_KUNAIKUSSETSU::OnSkillCast: byte-identical - fn_08777 CSkillAction_SS_KUNAIKUSSETSU::OnSkillEffect: logic confirmed by peer review - fn_08781 CSkillAction_SS_SEKIENHOU::OnSkillEffect: logic confirmed by peer review (already on main) - fn_08785 CSkillAction_SS_REIKETSUHOU::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08788 CSkillAction_SS_RAIDENPOU::OnSkillCast: byte-identical - fn_08789 CSkillAction_SS_RAIDENPOU::OnSkillEffect: byte-identical - fn_08790 CSkillAction_SS_RAIDENPOU::OnSkillDamage: byte-identical - fn_08794 CSkillAction_SS_KINRYUUHOU::OnSkillEffect: byte-identical - fn_08795 CSkillAction_SS_KINRYUUHOU::OnSkillDamage: byte-identical - fn_08799 CSkillAction_SS_ANTENPOU::OnSkillEffect: byte-identical - fn_08803 CSkillAction_SS_KAGEAKUMU::OnSkillHit: byte-identical - fn_08807 CSkillAction_SS_HITOUAKUMU::OnSkillEffect: logic confirmed by peer review - fn_08811 CSkillAction_SS_ANKOKURYUUAKUMU::OnSkillEffect: byte-identical - fn_08812 CSkillAction_SS_ANKOKURYUUAKUMU::OnSkillHit: byte-identical - fn_08813 CSkillAction_SS_FOUR_CHARM::OnSkillEffect: logic confirmed by peer review - fn_08815 CSkillObjectAction_SKE_STAR_CANNON::OnSkillObjectCreate: byte-identical - fn_08818 CSkillAction_SKE_ALL_IN_THE_SKY::OnTargetSkillCast: byte-identical - fn_08820 CEfstAction_SKY_ENCHANT::OnEfstBegin: byte-identical - fn_08822 CEfstAction_SKY_ENCHANT::OnEfstUpdate: byte-identical - fn_08824 CSkillAction_SKE_SKY_SUN::OnSkillEffect: logic confirmed by peer review - fn_08825 CSkillAction_SKE_SKY_SUN::OnSkillDamage: byte-identical - fn_08827 CSkillAction_SKE_SKY_MOON::OnSkillCast: logic confirmed by peer review - fn_08828 CSkillAction_SKE_SKY_MOON::OnSkillEffect: byte-identical - fn_08829 CSkillAction_SKE_SKY_MOON::OnSkillDamage: byte-identical - fn_08830 CSkillAction_SKE_STAR_LIGHT_KICK::OnSkillEffect: byte-identical - fn_08831 CSkillAction_SKE_STAR_LIGHT_KICK::OnSkillDamage: byte-identical - fn_08833 CEfstAction_RISING_SUN::OnEfstBegin: logic confirmed by peer review - fn_08835 CEfstAction_RISING_SUN::OnEfstUpdate: byte-identical - fn_08836 CEfstAction_NOON_SUN::OnEfstBegin: logic confirmed by peer review - fn_08838 CEfstAction_NOON_SUN::OnEfstUpdate: byte-identical - fn_08839 CEfstAction_SUNSET_SUN::OnEfstBegin: logic confirmed by peer review - fn_08841 CEfstAction_SUNSET_SUN::OnEfstUpdate: byte-identical - fn_08843 CSkillAction_SKE_NOON_BLAST::OnSkillEffect: byte-identical - fn_08845 CSkillAction_SKE_SUNSET_BLAST::OnSkillEffect: logic confirmed by peer review - fn_08847 CEfstAction_RISING_MOON::OnEfstBegin: byte-identical - fn_08849 CEfstAction_RISING_MOON::OnEfstUpdate: byte-identical - fn_08850 CEfstAction_MIDNIGHT_MOON::OnEfstBegin: byte-identical - fn_08852 CEfstAction_MIDNIGHT_MOON::OnEfstUpdate: byte-identical - fn_08853 CEfstAction_DAWN_MOON::OnEfstBegin: byte-identical - fn_08855 CEfstAction_DAWN_MOON::OnEfstUpdate: byte-identical - fn_08858 CSkillAction_SKE_MIDNIGHT_KICK::OnSkillEffect: byte-identical - fn_08861 CSkillAction_SKE_DAWN_BREAK::OnSkillEffect: byte-identical - fn_08865 CSkillObjectAction_SKE_TWINKLING_GALAXY::OnSkillObjectCreate: byte-identical - fn_08868 CEfstAction_STAR_BURST::OnEfstBegin: byte-identical - fn_08876 CSkillAction_SOA_TALISMAN_OF_FIVE_ELEMENTS::OnSkillEffect: byte-identical - fn_08879 CSkillAction_SOA_TALISMAN_OF_SOUL_STEALING::OnSkillHit: logic confirmed by peer review - fn_08881 CSkillAction_SOA_EXORCISM_OF_MALICIOUS_SOUL::OnSkillEffect: byte-identical - fn_08883 CSkillAction_SOA_TALISMAN_OF_BLUE_DRAGON::OnSkillEffect: logic confirmed by peer review - fn_08884 CEfstAction_T_FIRST_GOD::OnEfstBegin: byte-identical - fn_08888 CSkillAction_SOA_TALISMAN_OF_WHITE_TIGER::OnSkillEffect: logic confirmed by peer review - fn_08889 CEfstAction_T_SECOND_GOD::OnEfstBegin: byte-identical - fn_08893 CSkillAction_SOA_TALISMAN_OF_RED_PHOENIX::OnSkillEffect: byte-identical - fn_08894 CEfstAction_T_THIRD_GOD::OnEfstBegin: byte-identical - fn_08898 CSkillAction_SOA_TALISMAN_OF_BLACK_TORTOISE::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08900 CEfstAction_T_FOURTH_GOD::OnEfstBegin: byte-identical - fn_08904 CSkillAction_SOA_TALISMAN_OF_FOUR_BEARING_GOD::OnSkillEffect: byte-identical - fn_08906 CSkillAction_SOA_CIRCLE_OF_DIRECTIONS_AND_ELEMENTALS::OnSkillEffect: byte-identical - fn_08907 CEfstAction_T_FIVETH_GOD::OnEfstBegin: byte-identical - fn_08912 CSkillAction_SOA_SOUL_OF_HEAVEN_AND_EARTH::OnSkillEffect: byte-identical - fn_08913 CEfstAction_HEAVEN_AND_EARTH::OnEfstBegin: byte-identical - fn_08918 CSkillAction_SOA_TALISMAN_OF_PROTECTION::OnSkillEffect: byte-identical - fn_08921 CSkillAction_SOA_TALISMAN_OF_WARRIOR::OnSkillEffect: byte-identical - fn_08924 CSkillAction_SOA_TALISMAN_OF_MAGICIAN::OnSkillEffect: byte-identical - fn_08926 CSkillAction_SOA_SOUL_GATHERING::OnSkillEffect: byte-identical - fn_08929 CSkillObjectAction_SOA_TOTEM_OF_TUTELARY::OnSkillObjectCreate: byte-identical - fn_08930 CSkillObjectAction_SOA_TOTEM_OF_TUTELARY::OnSkillObjectRemove: byte-identical - fn_08932 CSkillAction_SH_CHUL_HO_SONIC_CLAW::OnSkillEffect: logic confirmed by peer review - fn_08935 CSkillAction_SH_HOWLING_OF_CHUL_HO::OnSkillEffect: byte-identical - fn_08936 CEfstAction_HOGOGONG::OnEfstBegin: byte-identical - fn_08941 CSkillAction_SH_HOGOGONG_STRIKE::OnSkillHit: byte-identical - fn_08943 CSkillAction_SH_KI_SUL_WATER_SPRAYING::OnSkillEffect: byte-identical - fn_08945 CSkillAction_SH_MARINE_FESTIVAL_OF_KI_SUL::OnSkillEffect: byte-identical - fn_08946 CEfstAction_MARINE_FESTIVAL::OnEfstBegin: byte-identical - fn_08948 CSkillAction_SH_SANDY_FESTIVAL_OF_KI_SUL::OnSkillEffect: byte-identical - fn_08949 CEfstAction_SANDY_FESTIVAL::OnEfstBegin: byte-identical - fn_08951 CSkillAction_SH_KI_SUL_RAMPAGE::OnSkillEffect: byte-identical - fn_08953 CSkillAction_SH_COLORS_OF_HYUN_ROK::OnSkillEffect: logic confirmed by peer review - fn_08957 CSkillObjectAction_SH_HYUN_ROKS_BREEZE::OnSkillObjectCreate: byte-identical - fn_08959 CSkillAction_SH_HYUN_ROK_CANNON::OnSkillEffect: byte-identical - fn_08961 CSkillAction_SH_TEMPORARY_COMMUNION::OnSkillEffect: byte-identical - fn_08962 CEfstAction_TEMPORARY_COMMUNION::OnEfstBegin: logic confirmed by peer review - fn_08967 CSkillAction_SH_BLESSING_OF_MYSTICAL_CREATURES::OnSkillEffect: byte-identical - fn_08969 CSkillAction_SH_CHUL_HO_BATTERING::OnSkillCast: byte-identical - fn_08970 CSkillAction_SH_CHUL_HO_BATTERING::OnSkillEffect: byte-identical - fn_08971 CSkillAction_SH_CHUL_HO_BATTERING::OnSkillDamage: logic confirmed by peer review - fn_08972 CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::OnSkillCast: byte-identical - fn_08973 CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::OnSkillEffect: byte-identical - fn_08974 CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::OnSkillDamage: byte-identical - fn_08976 CSkillAction_TR_ROSEBLOSSOM::OnSkillDamage: byte-identical - fn_08977 CSkillAction_TR_ROSEBLOSSOM_ATK::OnSkillDamage: byte-identical - fn_08978 CSkillAction_TR_KVASIR_SONATA::OnSkillCast: byte-identical - fn_08979 CSkillAction_TR_KVASIR_SONATA::OnSkillEffect: byte-identical - fn_08982 CSkillAction_TR_PRON_MARCH::OnSkillCast: logic confirmed by peer review - fn_08983 CSkillAction_TR_PRON_MARCH::OnSkillEffect: byte-identical - fn_08987 CSkillAction_TR_JAWAII_SERENADE::OnSkillCast: byte-identical - fn_08988 CSkillAction_TR_JAWAII_SERENADE::OnSkillEffect: byte-identical - fn_08992 CSkillAction_TR_AIN_RHAPSODY::OnSkillCast: byte-identical - fn_08993 CSkillAction_TR_AIN_RHAPSODY::OnSkillEffect: byte-identical - fn_08997 CSkillAction_TR_GEF_NOCTURN::OnSkillCast: byte-identical - fn_08998 CSkillAction_TR_GEF_NOCTURN::OnSkillEffect: logic confirmed by peer review - fn_09002 CSkillAction_TR_RHYTHMICAL_WAVE::OnSkillCast: logic confirmed by peer review - fn_09003 CSkillAction_TR_RHYTHMICAL_WAVE::OnSkillEffect: byte-identical - fn_09004 CSkillAction_TR_RHYTHMICAL_WAVE::OnSkillDamage: byte-identical - fn_09006 CSkillAction_TR_METALIC_FURY::OnSkillEffect: byte-identical - fn_09007 CSkillAction_TR_MYSTIC_SYMPHONY::OnSkillCast: byte-identical - fn_09008 CSkillAction_TR_MYSTIC_SYMPHONY::OnSkillEffect: byte-identical - fn_09009 CEfstAction_MYSTIC_SYMPHONY::OnEfstBegin: byte-identical - fn_09015 CSkillAction_TR_RHYTHMSHOOTING::OnSkillCast: byte-identical - fn_09016 CSkillAction_TR_RHYTHMSHOOTING::OnSkillHit: byte-identical - fn_09017 CSkillAction_TR_RHYTHMSHOOTING::OnSkillDamage: byte-identical - fn_09018 CSkillAction_TR_ROKI_CAPRICCIO::OnSkillCast: byte-identical - fn_09019 CSkillAction_TR_ROKI_CAPRICCIO::OnSkillEffect: byte-identical - fn_09020 CSkillAction_TR_ROSEBLOSSOM::OnSkillCast: byte-identical - fn_09021 CSkillAction_TR_ROSEBLOSSOM::OnSkillEffect: byte-identical - fn_09023 CSkillAction_WH_GALESTORM::OnSkillCast: logic confirmed by peer review - fn_09024 CSkillAction_WH_GALESTORM::OnSkillEffect: byte-identical - fn_09025 CSkillAction_WH_GALESTORM::OnSkillDamage: byte-identical - fn_09026 CSkillAction_WH_CALAMITYGALE::OnSkillCast: byte-identical - fn_09027 CSkillAction_WH_CALAMITYGALE::OnSkillEffect: byte-identical - fn_09028 CEfstAction_CALAMITYGALE::OnEfstBegin: byte-identical - fn_09037 CSkillAction_WH_CRESCIVE_BOLT::OnSkillCast: byte-identical - fn_09038 CSkillAction_WH_CRESCIVE_BOLT::OnSkillDamage: byte-identical - fn_09039 CSkillAction_WH_WILD_WALK::OnSkillCast: byte-identical - fn_09040 CSkillAction_WH_WILD_WALK::OnSkillEffect: byte-identical - fn_09041 CSkillAction_WH_WILD_WALK::OnSkillDamage: logic confirmed by peer review - fn_10225 UIRuneSystemWnd::SendMsg: logic confirmed by peer review - fn_17682 CWorld::LoadMapEffects: logic confirmed by peer review (already on main) - fn_17955 CChampionMonsterMgr::ApplyEffects: logic confirmed by peer review (already on main) - fn_20087 CRagEffect::OnProcess3: logic confirmed by peer review - fn_21019 CGameActor::SetHatEffect: logic confirmed by peer review (already on main) - fn_21020 CGameActor::SetEffectState: byte-identical (already on main) - fn_21021 CGameActor::SetEffectInstance: byte-identical - fn_21112 CGameActor::SendMsg: logic confirmed by peer review - fn_21156 CGameActor::SetCharm: logic confirmed by peer review - fn_21166 CGameActor::SetTetraBall: logic confirmed by peer review (already on main) - fn_21194 CGameActor::PlayGroundSkillEffect: logic confirmed by peer review (already on main) - fn_21196 CGameActor::ProcessSkillMessage: logic confirmed by peer review - fn_21296 CGameMode::LaunchTargetEffect: logic confirmed by peer review - fn_21312 LaunchBulletSpriteEffect: byte-identical - fn_21314 CGameMode::PlayItemUseEffect: logic confirmed by peer review - fn_21953 CGameMode::ApplyStatusChange: logic confirmed by peer review - fn_21963 CGameMode::NotifySkillCasting: logic confirmed by peer review - fn_21965 LaunchSkillActorEffect: logic confirmed by peer review - fn_21967 LaunchSkillCastEffect: logic confirmed by peer review - fn_21970 CGameMode::ReceiveActorStatusValue: logic confirmed by peer review - fn_22008 CGameMode::SpawnSkillWarningPlanes: logic confirmed by peer review (already on main) - fn_22013 CGameMode::ReceiveRuneRewardPacket: logic confirmed by peer review - fn_22027 CGameMode::ReceiveRuneGradeResult: logic confirmed by peer review (already on main) - fn_22037 CGameMode::ReceiveGradeEnchantResult: logic confirmed by peer review (already on main) - fn_22038 CGameMode::ReceiveAchievementUpdate: logic confirmed by peer review - fn_22128 CGameMode::ReceiveWindow348Result: logic confirmed by peer review - fn_22140 CGameMode::ReceiveStatusChangeNotice: logic confirmed by peer review - fn_22143 CGameMode::ReceiveNotifyEffect: logic confirmed by peer review (already on main) - fn_22147 CGameMode::ReceiveNotifyGroundSkill: logic confirmed by peer review (already on main) - fn_22149 CGameMode::ReceiveNotifySkill: logic confirmed by peer review (already on main) - fn_22189 CGameMode::ReceiveSoulEnergy: logic confirmed by peer review (already on main) - fn_22192 CGameMode::UpdateActorSpiritCount: logic confirmed by peer review (already on main) - fn_22208 CGameMode::ReceiveSkillUse: logic confirmed by peer review (already on main) - fn_22252 CItem::SendMsg: logic confirmed by peer review (already on main) - fn_22670 CPlayer::ReapplySkillEffects: logic confirmed by peer review (already on main) - fn_23895 CSession::PlaySkillEffect: logic confirmed by peer review - fn_23896 CSession::PlaySkillTargetEffect: byte-identical - fn_23901 CSession::PlaySkillGroundEffect: logic confirmed by peer review - fn_24271 CSkill::LaunchGroundEffects: logic confirmed by peer review - fn_24287 CSkill::OnProcess: logic confirmed by peer review - fn_24296 CDummyEffectLauncher::SendMsg: logic confirmed by peer review - fn_24302 CSkill::SendMsg: logic confirmed by peer review - fn_45483 LaunchLuaSkillEffect: logic confirmed by peer review - fn_45492 CSkillAction_WH_CRESCIVE_BOLT::OnSkillHit: logic confirmed by peer review - fn_18774 EffectLists::Spawn: logic confirmed by peer review - fn_21763 CGameMode::ReceiveBroadcast: logic confirmed by peer review (already on main) - fn_21777 CGameMode::ReceiveZoneServerChange: logic confirmed by peer review (already on main) - fn_22566 CPc::RenderBodyOutline: logic confirmed by peer review (already on main) - fn_22594 CGrannyPc::Render: logic confirmed by peer review (already on main) - fn_22597 CGrannyPc::RenderCached: logic confirmed by peer review (already on main) - fn_19253 SetWindEffectInfo: logic confirmed by peer review (already on main) Reviewed-by: ragnarok-clanker
3402 lines
108 KiB
C++
3402 lines
108 KiB
C++
#include "Contents/Skills/SkillId.h"
|
|
#include "Client/Mode/ModeMessage.h"
|
|
#include "Contents/Actors/ActorEnums.h"
|
|
#include "UI/Window/UIEnums.h"
|
|
#include "Contents/CombatTypes.h"
|
|
#include "Client/Mode/ModeMgr.h"
|
|
#include "Client/Mode/CMode.h"
|
|
#include "Client/Mode/CGameMode.h"
|
|
#include "Contents/ClientState.h"
|
|
#include "Contents/Items/ItemDescription.h"
|
|
#include "Contents/Items/WeaponType.h"
|
|
#include "Contents/Tables/MessageTable.h"
|
|
#include "Contents/Messenger/ClientMessenger.h"
|
|
#include "Contents/Skills/SkillInfo.h"
|
|
#include "Client/Session/Session.h"
|
|
#include "Contents/Actors/GameActor.h"
|
|
#include "Contents/Effects/Core/EffectLists.h"
|
|
#include "Contents/Effects/Core/EffectTypes.h"
|
|
#include "Contents/Actors/Resources/EquipmentResourceMgr.h"
|
|
#include "Contents/Skills/ClientSkills.h"
|
|
#include "Contents/Sound/SoundMgr.h"
|
|
#include "Contents/Jobs/JobInheritance.h"
|
|
#include "Contents/Jobs/JobId.h"
|
|
#include "Contents/Map/MapPropertyMgr.h"
|
|
#include "Contents/Skills/PlayerSkillBundle.h"
|
|
#include "Contents/World/World.h"
|
|
#include "File/MapName.h"
|
|
#include "Script/LuaScript.h"
|
|
#include "UI/Window/UIWindow.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
#include "Utility/Text/FormatString.h"
|
|
#include "Contents/Actors/Pc.h"
|
|
#include "Contents/Configuration/ServiceOptions.h"
|
|
#include "Contents/Effects/Skills/AMachineEffect.h"
|
|
#include "Contents/Effects/Core/RagEffect.h"
|
|
#include "Resource/World/TerrainResource.h"
|
|
#include "Utility/Math/AffineMatrix.h"
|
|
|
|
#include "Resource/MSGSTRINGID.h"
|
|
#include <cstring>
|
|
#include <list>
|
|
#include <new>
|
|
#include <string>
|
|
#include <unordered_map>
|
|
#include <vector>
|
|
|
|
// GLOBAL: gl_24496
|
|
int g_screenShakeDuration;
|
|
|
|
// GLOBAL: gl_24497
|
|
char g_screenShakeMode;
|
|
|
|
// GLOBAL: gl_24702
|
|
const char g_playerNameKeyData[] = "가나다라마바사아자차카타파하가나다라마바사아자차카타파하";
|
|
|
|
// GLOBAL: gl_24649
|
|
const char* g_playerNameKey = g_playerNameKeyData;
|
|
|
|
// OFFSET: 0x00DFBC00
|
|
// FUNCTION: fn_23585
|
|
__declspec(noinline) int CSession::IsTreeGroupTwo(int job) const {
|
|
if (job >= JT_RUNE_KNIGHT && job <= JT_MADOGEAR_B) {
|
|
return true;
|
|
}
|
|
|
|
switch (job) {
|
|
case JT_PIG_GENETIC:
|
|
case JT_SHEEP_SURA:
|
|
case JT_SHEEP_ARCB:
|
|
case JT_FOX_SORCERER:
|
|
case JT_FOX_WARLOCK:
|
|
case JT_DOG_G_CROSS:
|
|
case JT_DOG_CHASER:
|
|
case JT_OSTRICH_MINSTREL:
|
|
case JT_OSTRICH_WANDER:
|
|
case JT_FOX_WARLOCK_B:
|
|
case JT_SHEEP_ARCB_B:
|
|
case JT_DOG_G_CROSS_B:
|
|
case JT_FOX_SORCERER_B:
|
|
case JT_OSTRICH_MINSTREL_B:
|
|
case JT_OSTRICH_WANDER_B:
|
|
case JT_SHEEP_SURA_B:
|
|
case JT_PIG_GENETIC_B:
|
|
case JT_DOG_CHASER_B:
|
|
case JT_PIG_MECHANIC:
|
|
case JT_OSTRICH_RANGER:
|
|
case JT_LION_ROYAL_GUARD:
|
|
case JT_LION_RUNE_KNIGHT:
|
|
case JT_PIG_MECHANIC_B:
|
|
case JT_OSTRICH_RANGER_B:
|
|
case JT_LION_ROYAL_GUARD_B:
|
|
case JT_LION_RUNE_KNIGHT_B:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00DFBCA0
|
|
// FUNCTION: fn_23586
|
|
__declspec(noinline) bool CSession::IsTreeGroupThree(int job) const {
|
|
const auto value = static_cast<unsigned>(job);
|
|
return value - JT_DRAGON_KNIGHT <= unsigned(JT_FOURTH_JOB_END - JT_DRAGON_KNIGHT) ||
|
|
value - JT_SKY_EMPEROR <= unsigned(JT_UPPER_EXTENDED_JOB2_END - 1 - JT_SKY_EMPEROR) || job == JT_ALITEA || job == JT_ALITEA_RIDING;
|
|
}
|
|
|
|
// OFFSET: 0x00DFA600
|
|
// FUNCTION: fn_23576
|
|
bool CSession::IsNpcJob(int job) const {
|
|
if ((job >= JT_WARPNPC && job < JT_MON_BEGIN) || static_cast<unsigned>(job - JT_4_TOWER_14) <= unsigned(JT_NPC_END - JT_4_TOWER_14)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00DFA630
|
|
// FUNCTION: fn_23577
|
|
bool __stdcall ValidateCharacterName(const char* name) {
|
|
const int length = static_cast<int>(std::strlen(name));
|
|
for (int index = 0; index < length; ++index) {
|
|
if (name[index] == 0) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00DFA670
|
|
// FUNCTION: fn_23578
|
|
bool CSession::IsNavigationAllowed() const {
|
|
const std::string name = ScriptMapName(this->m_navigationPlayerMap);
|
|
for (const auto& forbidden : this->m_navigationForbiddenMaps) {
|
|
if (std::strcmp(forbidden.c_str(), name.c_str()) == 0) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00DFA810
|
|
// FUNCTION: fn_23579
|
|
bool IsNavigationActive() {
|
|
if (g_windowMgr.itemShopWnd != 0) {
|
|
return false;
|
|
}
|
|
if (g_windowMgr.HasNavigationBlocker() == true) {
|
|
return false;
|
|
}
|
|
if (g_windowMgr.nCashWnd != 0) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00DFA8D0
|
|
// FUNCTION: fn_23580
|
|
bool CSession::HasJobShieldSprite(int job, int shield) const {
|
|
if (shield > 2000) {
|
|
switch (job) {
|
|
case JT_CHICKEN:
|
|
case JT_CHICKEN2:
|
|
case JT_MARRIED:
|
|
case JT_SANTA:
|
|
case JT_SUMMER:
|
|
case JT_HANBOK:
|
|
case JT_OKTOBERFEST:
|
|
case JT_SUMMER2:
|
|
case JT_CHICKEN_H:
|
|
case JT_CHICKEN2_H:
|
|
case JT_CHICKEN_B:
|
|
case JT_CHICKEN2_B:
|
|
case JT_GANGSI:
|
|
case JT_DEATHKNIGHT:
|
|
case JT_COLLECTOR:
|
|
case JT_RUNE_CHICKEN:
|
|
case JT_RUNE_CHICKEN_H:
|
|
case JT_ROYAL_CHICKEN:
|
|
case JT_ROYAL_CHICKEN_H:
|
|
case JT_WOLF_RANGER:
|
|
case JT_WOLF_RANGER_H:
|
|
case JT_MADOGEAR:
|
|
case JT_MADOGEAR_H:
|
|
case JT_RUNE_CHICKEN2:
|
|
case JT_RUNE_CHICKEN2_H:
|
|
case JT_RUNE_CHICKEN3:
|
|
case JT_RUNE_CHICKEN3_H:
|
|
case JT_RUNE_CHICKEN4:
|
|
case JT_RUNE_CHICKEN4_H:
|
|
case JT_RUNE_CHICKEN5:
|
|
case JT_RUNE_CHICKEN5_H:
|
|
case JT_RUNE_CHICKEN_B:
|
|
case JT_ROYAL_CHICKEN_B:
|
|
case JT_WOLF_RANGER_B:
|
|
case JT_MADOGEAR_B:
|
|
case JT_DO_CART_SUMMONER:
|
|
case JT_WOLF_WINDHAWK:
|
|
case JT_MEISTER_MADOGEAR:
|
|
case JT_DRAGON_KNIGHT_CHICKEN:
|
|
case JT_IMPERIAL_GUARD_CHICKEN:
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
switch (job) {
|
|
case JT_NOVICE:
|
|
case JT_MAGICIAN:
|
|
case JT_ARCHER:
|
|
case JT_WIZARD:
|
|
case JT_HUNTER:
|
|
case JT_SAGE:
|
|
case JT_BARD:
|
|
case JT_DANCER:
|
|
case JT_SUPERNOVICE:
|
|
case JT_NOVICE_H:
|
|
case JT_MAGICIAN_H:
|
|
case JT_ARCHER_H:
|
|
case JT_WIZARD_H:
|
|
case JT_HUNTER_H:
|
|
case JT_SAGE_H:
|
|
case JT_BARD_H:
|
|
case JT_DANCER_H:
|
|
case JT_NOVICE_B:
|
|
case JT_MAGICIAN_B:
|
|
case JT_ARCHER_B:
|
|
case JT_WIZARD_B:
|
|
case JT_HUNTER_B:
|
|
case JT_SAGE_B:
|
|
case JT_BARD_B:
|
|
case JT_DANCER_B:
|
|
case JT_SUPERNOVICE_B:
|
|
case JT_WARLOCK:
|
|
case JT_RANGER:
|
|
case JT_WARLOCK_H:
|
|
case JT_RANGER_H:
|
|
case JT_SORCERER:
|
|
case JT_MINSTREL:
|
|
case JT_WANDERER:
|
|
case JT_SORCERER_H:
|
|
case JT_MINSTREL_H:
|
|
case JT_WANDERER_H:
|
|
case JT_WARLOCK_B:
|
|
case JT_RANGER_B:
|
|
case JT_SORCERER_B:
|
|
case JT_MINSTREL_B:
|
|
case JT_WANDERER_B:
|
|
case JT_SUPERNOVICE2:
|
|
case JT_SUPERNOVICE2_B:
|
|
case JT_ARCH_MAGE:
|
|
case JT_WINDHAWK:
|
|
case JT_ELEMENTAL_MASTER:
|
|
case JT_TROUBADOUR:
|
|
case JT_TROUVERE:
|
|
case JT_HYPER_NOVICE:
|
|
return shield == 1;
|
|
case JT_SWORDMAN:
|
|
case JT_KNIGHT:
|
|
case JT_CRUSADER:
|
|
case JT_SWORDMAN_H:
|
|
case JT_KNIGHT_H:
|
|
case JT_CRUSADER_H:
|
|
case JT_SWORDMAN_B:
|
|
case JT_KNIGHT_B:
|
|
case JT_CRUSADER_B:
|
|
case JT_RUNE_KNIGHT:
|
|
case JT_RUNE_KNIGHT_H:
|
|
case JT_ROYAL_GUARD:
|
|
case JT_ROYAL_GUARD_H:
|
|
case JT_RUNE_KNIGHT_B:
|
|
case JT_ROYAL_GUARD_B:
|
|
case JT_DRAGON_KNIGHT:
|
|
case JT_IMPERIAL_GUARD:
|
|
case JT_DRAGON_KNIGHT_CHICKEN:
|
|
case JT_IMPERIAL_GUARD_CHICKEN:
|
|
switch (shield) {
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
return true;
|
|
}
|
|
return false;
|
|
case JT_ACOLYTE:
|
|
case JT_MERCHANT:
|
|
case JT_THIEF:
|
|
case JT_PRIEST:
|
|
case JT_BLACKSMITH:
|
|
case JT_ASSASSIN:
|
|
case JT_ROGUE:
|
|
case JT_ALCHEMIST:
|
|
case JT_ACOLYTE_H:
|
|
case JT_MERCHANT_H:
|
|
case JT_THIEF_H:
|
|
case JT_PRIEST_H:
|
|
case JT_BLACKSMITH_H:
|
|
case JT_ASSASSIN_H:
|
|
case JT_ROGUE_H:
|
|
case JT_ALCHEMIST_H:
|
|
case JT_ACOLYTE_B:
|
|
case JT_MERCHANT_B:
|
|
case JT_THIEF_B:
|
|
case JT_PRIEST_B:
|
|
case JT_BLACKSMITH_B:
|
|
case JT_ASSASSIN_B:
|
|
case JT_ROGUE_B:
|
|
case JT_ALCHEMIST_B:
|
|
case JT_ARCHBISHOP:
|
|
case JT_MECHANIC:
|
|
case JT_GUILLOTINE_CROSS:
|
|
case JT_ARCHBISHOP_H:
|
|
case JT_MECHANIC_H:
|
|
case JT_GUILLOTINE_CROSS_H:
|
|
case JT_GENETIC:
|
|
case JT_SHADOW_CHASER:
|
|
case JT_GENETIC_H:
|
|
case JT_SHADOW_CHASER_H:
|
|
case JT_ARCHBISHOP_B:
|
|
case JT_MECHANIC_B:
|
|
case JT_GUILLOTINE_CROSS_B:
|
|
case JT_GENETIC_B:
|
|
case JT_SHADOW_CHASER_B:
|
|
case JT_MEISTER:
|
|
case JT_SHADOW_CROSS:
|
|
case JT_CARDINAL:
|
|
case JT_BIOLO:
|
|
case JT_ABYSS_CHASER:
|
|
switch (shield) {
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
}
|
|
return false;
|
|
case JT_DO_SUMMONER:
|
|
case JT_DO_SUMMONER_B:
|
|
case JT_SPIRIT_HANDLER:
|
|
switch (shield) {
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
return true;
|
|
}
|
|
return false;
|
|
case JT_DRUID:
|
|
case JT_DRUID_B:
|
|
case JT_KARNOS:
|
|
case JT_KARNOS_B:
|
|
case JT_ALITEA:
|
|
switch (shield) {
|
|
case 1:
|
|
case 2:
|
|
case 4:
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00DFAC70
|
|
// FUNCTION: fn_23581
|
|
bool CSession::IsJobWeaponTypeAllowed(int job, std::int64_t weaponType) const {
|
|
switch (job) {
|
|
case JT_GUNSLINGER:
|
|
case JT_GUNSLINGER_B:
|
|
switch (weaponType) {
|
|
case W_REVOLVER:
|
|
case W_RIFLE:
|
|
case W_GATLING:
|
|
case W_SHOTGUN:
|
|
case W_GRENADE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_NINJA:
|
|
case JT_NINJA_B:
|
|
return weaponType == W_HUUMA;
|
|
case JT_STAR:
|
|
case JT_STAR2:
|
|
case JT_STAR_B:
|
|
case JT_STAR2_B:
|
|
case JT_STAR_EMPEROR:
|
|
case JT_STAR_EMPEROR_B:
|
|
case JT_STAR2_EMPEROR:
|
|
case JT_STAR2_EMPEROR_B:
|
|
case JT_SKY_EMPEROR:
|
|
case JT_SKY_EMPEROR2:
|
|
return weaponType == W_BOOK;
|
|
case JT_MAGICIAN:
|
|
case JT_WIZARD:
|
|
case JT_MAGICIAN_H:
|
|
case JT_WIZARD_H:
|
|
case JT_MAGICIAN_B:
|
|
case JT_WIZARD_B:
|
|
case JT_LINKER:
|
|
case JT_WARLOCK:
|
|
case JT_WARLOCK_H:
|
|
case JT_WARLOCK_B:
|
|
case JT_LINKER_B:
|
|
case JT_SOUL_REAPER:
|
|
case JT_SOUL_REAPER_B:
|
|
case JT_ARCH_MAGE:
|
|
case JT_SOUL_ASCETIC:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_STAFF:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_NOVICE:
|
|
case JT_SUPERNOVICE:
|
|
case JT_NOVICE_H:
|
|
case JT_NOVICE_B:
|
|
case JT_SUPERNOVICE_B:
|
|
case JT_SUPERNOVICE2:
|
|
case JT_SUPERNOVICE2_B:
|
|
case JT_HYPER_NOVICE:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_MACE:
|
|
case W_STAFF:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_SWORDMAN:
|
|
case JT_SWORDMAN_H:
|
|
case JT_SWORDMAN_B:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_2HSWORD:
|
|
case W_1HSPEAR:
|
|
case W_2HSPEAR:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
case W_2HMACE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_ACOLYTE:
|
|
case JT_ACOLYTE_H:
|
|
case JT_ACOLYTE_B:
|
|
switch (weaponType) {
|
|
case W_MACE:
|
|
case W_STAFF:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_MERCHANT:
|
|
case JT_MERCHANT_H:
|
|
case JT_MERCHANT_B:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_THIEF:
|
|
case JT_ROGUE:
|
|
case JT_THIEF_H:
|
|
case JT_ROGUE_H:
|
|
case JT_THIEF_B:
|
|
case JT_ROGUE_B:
|
|
case JT_SHADOW_CHASER:
|
|
case JT_SHADOW_CHASER_H:
|
|
case JT_SHADOW_CHASER_B:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_BOW:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_KNIGHT:
|
|
case JT_CHICKEN:
|
|
case JT_KNIGHT_H:
|
|
case JT_CHICKEN_H:
|
|
case JT_KNIGHT_B:
|
|
case JT_CHICKEN_B:
|
|
case JT_RUNE_KNIGHT:
|
|
case JT_RUNE_KNIGHT_H:
|
|
case JT_RUNE_CHICKEN:
|
|
case JT_RUNE_CHICKEN_H:
|
|
case JT_RUNE_CHICKEN2:
|
|
case JT_RUNE_CHICKEN2_H:
|
|
case JT_RUNE_CHICKEN3:
|
|
case JT_RUNE_CHICKEN3_H:
|
|
case JT_RUNE_CHICKEN4:
|
|
case JT_RUNE_CHICKEN4_H:
|
|
case JT_RUNE_CHICKEN5:
|
|
case JT_RUNE_CHICKEN5_H:
|
|
case JT_RUNE_KNIGHT_B:
|
|
case JT_RUNE_CHICKEN_B:
|
|
case JT_DRAGON_KNIGHT:
|
|
case JT_DRAGON_KNIGHT_CHICKEN:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_2HSWORD:
|
|
case W_1HSPEAR:
|
|
case W_2HSPEAR:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
case W_2HMACE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_PRIEST:
|
|
case JT_PRIEST_H:
|
|
case JT_PRIEST_B:
|
|
case JT_ARCHBISHOP:
|
|
case JT_ARCHBISHOP_H:
|
|
case JT_ARCHBISHOP_B:
|
|
case JT_CARDINAL:
|
|
switch (weaponType) {
|
|
case W_MACE:
|
|
case W_STAFF:
|
|
case W_BOOK:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_BLACKSMITH:
|
|
case JT_BLACKSMITH_H:
|
|
case JT_BLACKSMITH_B:
|
|
case JT_MECHANIC:
|
|
case JT_MECHANIC_H:
|
|
case JT_MADOGEAR:
|
|
case JT_MADOGEAR_H:
|
|
case JT_MECHANIC_B:
|
|
case JT_MADOGEAR_B:
|
|
case JT_MEISTER:
|
|
case JT_MEISTER_MADOGEAR:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_ARCHER:
|
|
case JT_HUNTER:
|
|
case JT_ARCHER_H:
|
|
case JT_HUNTER_H:
|
|
case JT_ARCHER_B:
|
|
case JT_HUNTER_B:
|
|
case JT_RANGER:
|
|
case JT_RANGER_H:
|
|
case JT_WOLF_RANGER:
|
|
case JT_WOLF_RANGER_H:
|
|
case JT_RANGER_B:
|
|
case JT_WOLF_RANGER_B:
|
|
case JT_WINDHAWK:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_BOW:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_ASSASSIN:
|
|
case JT_ASSASSIN_H:
|
|
case JT_ASSASSIN_B:
|
|
case JT_GUILLOTINE_CROSS:
|
|
case JT_GUILLOTINE_CROSS_H:
|
|
case JT_GUILLOTINE_CROSS_B:
|
|
case JT_SHADOW_CROSS:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_KATAR:
|
|
case W_DOUBLE_DD:
|
|
case W_DOUBLE_SS:
|
|
case W_DOUBLE_AA:
|
|
case W_DOUBLE_DS:
|
|
case W_DOUBLE_DA:
|
|
case W_DOUBLE_SA:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_CRUSADER:
|
|
case JT_CHICKEN2:
|
|
case JT_CRUSADER_H:
|
|
case JT_CHICKEN2_H:
|
|
case JT_CRUSADER_B:
|
|
case JT_CHICKEN2_B:
|
|
case JT_ROYAL_GUARD:
|
|
case JT_ROYAL_GUARD_H:
|
|
case JT_ROYAL_CHICKEN:
|
|
case JT_ROYAL_CHICKEN_H:
|
|
case JT_ROYAL_GUARD_B:
|
|
case JT_ROYAL_CHICKEN_B:
|
|
case JT_IMPERIAL_GUARD:
|
|
case JT_IMPERIAL_GUARD_CHICKEN:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_2HSWORD:
|
|
case W_1HSPEAR:
|
|
case W_2HSPEAR:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_BARD:
|
|
case JT_BARD_H:
|
|
case JT_BARD_B:
|
|
case JT_MINSTREL:
|
|
case JT_MINSTREL_H:
|
|
case JT_MINSTREL_B:
|
|
case JT_TROUBADOUR:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_BOW:
|
|
case W_MUSICAL:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_ALCHEMIST:
|
|
case JT_ALCHEMIST_H:
|
|
case JT_ALCHEMIST_B:
|
|
case JT_GENETIC:
|
|
case JT_GENETIC_H:
|
|
case JT_GENETIC_B:
|
|
case JT_BIOLO:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
case W_STAFF:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_MONK:
|
|
case JT_MONK_H:
|
|
case JT_MONK_B:
|
|
case JT_SURA:
|
|
case JT_SURA_H:
|
|
case JT_SURA_B:
|
|
case JT_INQUISITOR:
|
|
switch (weaponType) {
|
|
case W_MACE:
|
|
case W_STAFF:
|
|
case W_KNUCKLE:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_SAGE:
|
|
case JT_SAGE_H:
|
|
case JT_SAGE_B:
|
|
case JT_SORCERER:
|
|
case JT_SORCERER_H:
|
|
case JT_SORCERER_B:
|
|
case JT_ELEMENTAL_MASTER:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_STAFF:
|
|
case W_BOOK:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
case JT_DANCER:
|
|
case JT_DANCER_H:
|
|
case JT_DANCER_B:
|
|
case JT_WANDERER:
|
|
case JT_WANDERER_H:
|
|
case JT_WANDERER_B:
|
|
case JT_TROUVERE:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_BOW:
|
|
case W_WHIP:
|
|
return true;
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
case JT_GANGSI:
|
|
case JT_DEATHKNIGHT:
|
|
case JT_COLLECTOR:
|
|
return true;
|
|
default:
|
|
if (weaponType == W_DAGGER) {
|
|
return true;
|
|
}
|
|
break;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00DFBCE0
|
|
// FUNCTION: fn_23587
|
|
__declspec(noinline) int __stdcall IsPlayerJob(int job) {
|
|
const auto value = static_cast<unsigned>(job);
|
|
return value - JT_NOVICE_H <= unsigned(JT_MER_BEGIN - 1 - JT_NOVICE_H) || value <= unsigned(JT_SUMMER2);
|
|
}
|
|
|
|
// OFFSET: 0x00E19110
|
|
// FUNCTION: fn_23835
|
|
int CSession::InheritedJob(int job) {
|
|
job = this->m_hotkeyScript->TableInteger("JobInheritTable", 0, job);
|
|
const int replacement = this->m_hotkeyScript->TableInteger("JOB_INHERIT_LIST2", 0, job);
|
|
return replacement != -1 ? replacement : job;
|
|
}
|
|
|
|
// OFFSET: 0x00E25B70
|
|
// FUNCTION: fn_23907
|
|
void CSession::InitializeSkillTree() {
|
|
int count = 0;
|
|
if (!this->m_hotkeyScript->Call("GetInheritJob", "d>d", this->m_job, &count) || count == -1) {
|
|
return;
|
|
}
|
|
|
|
this->m_skillBundle.ClearGroups();
|
|
this->m_skillBundle.ClearExtra();
|
|
this->m_skillBundle.ClearLevelChanges();
|
|
|
|
for (int index = count; index > 0; --index) {
|
|
const int inherited = this->InheritedJob(index);
|
|
int group = 1;
|
|
if (inherited == JT_NOVICE || this->InheritedJob(index + 1) == JT_NOVICE || inherited == JT_DO_SUMMONER || inherited == JT_DO_SUMMONER_B) {
|
|
group = 0;
|
|
} else if (this->IsTreeGroupTwo(inherited) == 1) {
|
|
group = 2;
|
|
} else if (inherited == JT_STAR_EMPEROR || inherited == JT_SOUL_REAPER || inherited == JT_STAR_EMPEROR_B || inherited == JT_SOUL_REAPER_B) {
|
|
group = 2;
|
|
} else if (this->IsTreeGroupThree(inherited) == true) {
|
|
group = 3;
|
|
}
|
|
|
|
switch (inherited) {
|
|
case JT_SKY_EMPEROR:
|
|
case JT_SOUL_ASCETIC:
|
|
group = 3;
|
|
break;
|
|
case JT_SHINKIRO:
|
|
case JT_SHIRANUI:
|
|
case JT_NIGHT_WATCH:
|
|
case JT_HYPER_NOVICE:
|
|
case JT_ALITEA:
|
|
group = 2;
|
|
break;
|
|
case JT_SPIRIT_HANDLER:
|
|
group = 1;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
this->m_hotkeyScript->Call("InitSkillTreeView", "dd", inherited, group);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00DE0830
|
|
// FUNCTION: fn_23461
|
|
int __stdcall GetRealWeaponId(int weapon) {
|
|
int real = 0;
|
|
if (g_session.m_hotkeyScript->Call("GetRealWeaponId", "d>d", weapon, &real)) {
|
|
return real;
|
|
}
|
|
return weapon;
|
|
}
|
|
|
|
// OFFSET: 0x00DFB4B0
|
|
// FUNCTION: fn_23583
|
|
bool __stdcall IsJobWeaponAllowed(int job, int slot, std::int64_t weapon) {
|
|
if (weapon >= 105) {
|
|
if (job == JT_ASSASSIN || job == JT_ASSASSIN_H || job == JT_ASSASSIN_B || job == JT_GUILLOTINE_CROSS || job == JT_GUILLOTINE_CROSS_H ||
|
|
job == JT_GUILLOTINE_CROSS_B || job == JT_SHADOW_CROSS) {
|
|
if (GetWeaponViewValue(static_cast<int>(weapon >> 32)) > 0) {
|
|
weapon = GetDualWieldWeaponType(static_cast<int>(weapon), static_cast<int>(weapon >> 32));
|
|
} else {
|
|
weapon = GetWeaponViewValue(static_cast<int>(weapon));
|
|
}
|
|
} else {
|
|
weapon = GetWeaponViewValue(static_cast<int>(weapon));
|
|
}
|
|
}
|
|
|
|
const std::int64_t view = GetRealWeaponId(static_cast<int>(weapon));
|
|
bool result = false;
|
|
|
|
switch (job) {
|
|
case JT_SWORDMAN:
|
|
case JT_KNIGHT:
|
|
case JT_CHICKEN:
|
|
case JT_CRUSADER:
|
|
case JT_CHICKEN2:
|
|
case JT_SWORDMAN_H:
|
|
case JT_KNIGHT_H:
|
|
case JT_CHICKEN_H:
|
|
case JT_CRUSADER_H:
|
|
case JT_CHICKEN2_H:
|
|
case JT_SWORDMAN_B:
|
|
case JT_KNIGHT_B:
|
|
case JT_CHICKEN_B:
|
|
case JT_CRUSADER_B:
|
|
case JT_CHICKEN2_B:
|
|
case JT_RUNE_KNIGHT:
|
|
case JT_RUNE_KNIGHT_H:
|
|
case JT_ROYAL_GUARD:
|
|
case JT_ROYAL_GUARD_H:
|
|
case JT_RUNE_CHICKEN:
|
|
case JT_RUNE_CHICKEN_H:
|
|
case JT_ROYAL_CHICKEN:
|
|
case JT_ROYAL_CHICKEN_H:
|
|
case JT_RUNE_CHICKEN2:
|
|
case JT_RUNE_CHICKEN2_H:
|
|
case JT_RUNE_CHICKEN3:
|
|
case JT_RUNE_CHICKEN3_H:
|
|
case JT_RUNE_CHICKEN4:
|
|
case JT_RUNE_CHICKEN4_H:
|
|
case JT_RUNE_CHICKEN5:
|
|
case JT_RUNE_CHICKEN5_H:
|
|
case JT_RUNE_KNIGHT_B:
|
|
case JT_ROYAL_GUARD_B:
|
|
case JT_RUNE_CHICKEN_B:
|
|
case JT_ROYAL_CHICKEN_B:
|
|
case JT_DRAGON_KNIGHT:
|
|
case JT_IMPERIAL_GUARD:
|
|
case JT_DRAGON_KNIGHT_CHICKEN:
|
|
case JT_IMPERIAL_GUARD_CHICKEN:
|
|
if (view == W_1HSPEAR || view == W_2HSPEAR) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_MAGICIAN:
|
|
case JT_MERCHANT:
|
|
case JT_MAGICIAN_H:
|
|
case JT_MERCHANT_H:
|
|
case JT_MAGICIAN_B:
|
|
case JT_MERCHANT_B:
|
|
if (view == W_DAGGER) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_ARCHER:
|
|
case JT_ARCHER_H:
|
|
case JT_ARCHER_B:
|
|
if (view != W_BOW) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_THIEF:
|
|
case JT_HUNTER:
|
|
case JT_ROGUE:
|
|
case JT_BARD:
|
|
case JT_DANCER:
|
|
case JT_THIEF_H:
|
|
case JT_HUNTER_H:
|
|
case JT_ROGUE_H:
|
|
case JT_BARD_H:
|
|
case JT_DANCER_H:
|
|
case JT_THIEF_B:
|
|
case JT_HUNTER_B:
|
|
case JT_ROGUE_B:
|
|
case JT_BARD_B:
|
|
case JT_DANCER_B:
|
|
case JT_RANGER:
|
|
case JT_RANGER_H:
|
|
case JT_MINSTREL:
|
|
case JT_WANDERER:
|
|
case JT_SHADOW_CHASER:
|
|
case JT_MINSTREL_H:
|
|
case JT_WANDERER_H:
|
|
case JT_SHADOW_CHASER_H:
|
|
case JT_WOLF_RANGER:
|
|
case JT_WOLF_RANGER_H:
|
|
case JT_RANGER_B:
|
|
case JT_MINSTREL_B:
|
|
case JT_WANDERER_B:
|
|
case JT_SHADOW_CHASER_B:
|
|
case JT_WOLF_RANGER_B:
|
|
case JT_WINDHAWK:
|
|
case JT_ABYSS_CHASER:
|
|
case JT_TROUBADOUR:
|
|
case JT_TROUVERE:
|
|
case JT_WOLF_WINDHAWK:
|
|
if (view == W_BOW) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_PRIEST:
|
|
case JT_PRIEST_H:
|
|
case JT_PRIEST_B:
|
|
case JT_ARCHBISHOP:
|
|
case JT_ARCHBISHOP_H:
|
|
case JT_ARCHBISHOP_B:
|
|
case JT_CARDINAL:
|
|
if (view == W_BOOK) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_WIZARD:
|
|
case JT_WIZARD_H:
|
|
case JT_WIZARD_B:
|
|
case JT_LINKER:
|
|
case JT_WARLOCK:
|
|
case JT_WARLOCK_H:
|
|
case JT_WARLOCK_B:
|
|
case JT_LINKER_B:
|
|
case JT_SOUL_REAPER:
|
|
case JT_SOUL_REAPER_B:
|
|
case JT_ARCH_MAGE:
|
|
case JT_SOUL_ASCETIC:
|
|
if (view == W_DAGGER) {
|
|
if (slot == 1) {
|
|
result = true;
|
|
}
|
|
break;
|
|
}
|
|
|
|
if (view == W_STAFF || view == W_2HSTAFF) {
|
|
if (slot == 0) {
|
|
result = true;
|
|
}
|
|
break;
|
|
}
|
|
|
|
break;
|
|
case JT_BLACKSMITH:
|
|
case JT_BLACKSMITH_H:
|
|
case JT_BLACKSMITH_B:
|
|
case JT_MECHANIC:
|
|
case JT_MECHANIC_H:
|
|
case JT_MADOGEAR:
|
|
case JT_MADOGEAR_H:
|
|
case JT_MECHANIC_B:
|
|
case JT_MADOGEAR_B:
|
|
case JT_MEISTER:
|
|
case JT_MEISTER_MADOGEAR:
|
|
case JT_DRUID:
|
|
case JT_DRUID_B:
|
|
case JT_KARNOS:
|
|
case JT_KARNOS_B:
|
|
case JT_ALITEA:
|
|
switch (view) {
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
result = true;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
case JT_ASSASSIN:
|
|
case JT_ASSASSIN_H:
|
|
case JT_ASSASSIN_B:
|
|
case JT_GUILLOTINE_CROSS:
|
|
case JT_GUILLOTINE_CROSS_H:
|
|
case JT_GUILLOTINE_CROSS_B:
|
|
case JT_SHADOW_CROSS:
|
|
switch (view) {
|
|
case W_KATAR:
|
|
case W_DOUBLE_DD:
|
|
case W_DOUBLE_SS:
|
|
case W_DOUBLE_AA:
|
|
case W_DOUBLE_DS:
|
|
case W_DOUBLE_DA:
|
|
case W_DOUBLE_SA:
|
|
result = true;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
case JT_MONK:
|
|
case JT_MONK_H:
|
|
case JT_MONK_B:
|
|
case JT_SURA:
|
|
case JT_SURA_H:
|
|
case JT_SURA_B:
|
|
case JT_INQUISITOR:
|
|
if (view == W_FIST || view == W_KNUCKLE) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_SAGE:
|
|
case JT_SAGE_H:
|
|
case JT_SAGE_B:
|
|
case JT_SORCERER:
|
|
case JT_SORCERER_H:
|
|
case JT_SORCERER_B:
|
|
case JT_ELEMENTAL_MASTER:
|
|
switch (view) {
|
|
case W_2HSPEAR:
|
|
case W_STAFF:
|
|
case W_BOOK:
|
|
case W_2HSTAFF:
|
|
result = true;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
case JT_ALCHEMIST:
|
|
case JT_ALCHEMIST_H:
|
|
case JT_ALCHEMIST_B:
|
|
case JT_GENETIC:
|
|
case JT_GENETIC_H:
|
|
case JT_GENETIC_B:
|
|
case JT_BIOLO:
|
|
switch (view) {
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
result = true;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
case JT_NOVICE:
|
|
case JT_SUPERNOVICE:
|
|
case JT_NOVICE_H:
|
|
case JT_NOVICE_B:
|
|
case JT_SUPERNOVICE_B:
|
|
case JT_SUPERNOVICE2:
|
|
case JT_SUPERNOVICE2_B:
|
|
case JT_HYPER_NOVICE:
|
|
if (slot == 0) {
|
|
if (view == W_DAGGER) {
|
|
result = true;
|
|
}
|
|
break;
|
|
}
|
|
|
|
if (slot != 1) {
|
|
break;
|
|
}
|
|
|
|
switch (view) {
|
|
case W_1HSWORD:
|
|
case W_2HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
case W_2HMACE:
|
|
case W_STAFF:
|
|
case W_2HSTAFF:
|
|
result = true;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
case JT_GUNSLINGER:
|
|
case JT_REBELLION:
|
|
case JT_GUNSLINGER_B:
|
|
case JT_REBELLION_B:
|
|
case JT_NIGHT_WATCH:
|
|
if (view >= 18 && view <= 21) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_NINJA:
|
|
case JT_KAGEROU:
|
|
case JT_OBORO:
|
|
case JT_NINJA_B:
|
|
case JT_KAGEROU_B:
|
|
case JT_OBORO_B:
|
|
case JT_SHINKIRO:
|
|
case JT_SHIRANUI:
|
|
if (view == W_HUUMA) {
|
|
result = true;
|
|
}
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
|
|
// OFFSET: 0x00E0AB60
|
|
// FUNCTION: fn_23803
|
|
std::string CSession::GetWeaponName(int weapon) {
|
|
const unsigned index = GetRealWeaponId(weapon);
|
|
if (index >= static_cast<unsigned>(this->m_weaponNamesEnd - this->m_weaponNamesBegin)) {
|
|
return this->m_weaponNamesBegin[0];
|
|
}
|
|
|
|
return this->m_weaponNamesBegin[index];
|
|
}
|
|
|
|
// OFFSET: 0x00DE3800
|
|
// FUNCTION: fn_23482
|
|
const char* CSession::GetWeaponClassName(int item) {
|
|
const char* name = nullptr;
|
|
if (g_session.m_hotkeyScript->Call("ReqWeaponNameByClassNum", "d>s", FindItemDescription(item).viewId, &name)) {
|
|
return name;
|
|
}
|
|
|
|
return "";
|
|
}
|
|
|
|
// OFFSET: 0x00BAD420
|
|
// FUNCTION: fn_19759
|
|
std::string EquipmentResourceMgr::GetWeaponResourceName(int type, int job, int sex, int weapon, int weaponItem, int costume) {
|
|
std::string result("");
|
|
std::string jobName("");
|
|
std::string sexName("");
|
|
std::string weaponName("");
|
|
|
|
const int spriteJob = g_session.GetSpriteJob(job > 31 ? job + 3950 : job, costume, true);
|
|
jobName = g_session.m_jobSpriteNames[spriteJob];
|
|
sexName = static_cast<const std::string&>(g_session.GetSexName(sex));
|
|
|
|
if (weaponItem == -1) {
|
|
weaponName = static_cast<const std::string&>(g_session.GetWeaponName(weapon));
|
|
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob)) +
|
|
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), g_equipmentResourceExtensions[type]));
|
|
} else {
|
|
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob + 3950)) +
|
|
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), g_equipmentResourceExtensions[type]));
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: 0x00BACEE0
|
|
// FUNCTION: fn_19758
|
|
std::string EquipmentResourceMgr::GetWeaponEffectResourceName(int type, int job, int sex, int weapon, int weaponItem, int effect, int costume) {
|
|
std::string result("");
|
|
std::string jobName("");
|
|
std::string sexName("");
|
|
std::string weaponName("");
|
|
const char* const effects[] = {"_검광", "_발광"};
|
|
|
|
const int spriteJob = g_session.GetSpriteJob(job > 31 ? job + 3950 : job, costume, true);
|
|
jobName = g_session.m_jobSpriteNames[spriteJob];
|
|
sexName = static_cast<const std::string&>(g_session.GetSexName(sex));
|
|
weaponName = static_cast<const std::string&>(g_session.GetWeaponName(weapon));
|
|
|
|
const char* const suffix = effects[effect];
|
|
if (weaponItem == -1) {
|
|
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob)) +
|
|
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), suffix, g_equipmentResourceExtensions[type]));
|
|
} else {
|
|
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob)) +
|
|
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), suffix, g_equipmentResourceExtensions[type]));
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: 0x00E19370
|
|
// FUNCTION: fn_23837
|
|
std::string CSession::GetWeaponActName(int job, int sex, int weapon, int weaponItem, int costume) {
|
|
return g_equipmentResourceMgr->GetWeaponResourceName(0, job, sex, weapon, weaponItem, costume);
|
|
}
|
|
|
|
// OFFSET: 0x00E193E0
|
|
// FUNCTION: fn_23838
|
|
std::string CSession::GetWeaponEffectActName(int job, int sex, int weapon, int weaponItem, int effect, int costume) {
|
|
return std::string(g_equipmentResourceMgr->GetWeaponEffectResourceName(0, job, sex, weapon, weaponItem, effect, costume));
|
|
}
|
|
|
|
// OFFSET: 0x00E19450
|
|
// FUNCTION: fn_23839
|
|
std::string CSession::GetWeaponEffectSprName(int job, int sex, int weapon, int weaponItem, int effect, int costume) {
|
|
return g_equipmentResourceMgr->GetWeaponEffectResourceName(1, job, sex, weapon, weaponItem, effect, costume);
|
|
}
|
|
|
|
// OFFSET: 0x00E194C0
|
|
// FUNCTION: fn_23840
|
|
std::string CSession::GetWeaponSprName(int job, int sex, int weapon, int weaponItem, int costume) {
|
|
return g_equipmentResourceMgr->GetWeaponResourceName(1, job, sex, weapon, weaponItem, costume);
|
|
}
|
|
|
|
// OFFSET: 0x00DFBE10
|
|
// FUNCTION: fn_23590
|
|
bool __stdcall IsVisibleJob(int job) {
|
|
return job != JT_WARPNPC && job != JT_EFFECTLAUNCHER && job != JT_HIDDEN_NPC;
|
|
}
|
|
|
|
// OFFSET: 0x00E19230
|
|
// FUNCTION: fn_23836
|
|
std::string GetJobTitleString(int job) {
|
|
const char* title = nullptr;
|
|
|
|
if (g_session.m_hotkeyScript->Call("GetTitleString", "d>s", job, &title)) {
|
|
return title ? title : "";
|
|
}
|
|
|
|
return "";
|
|
}
|
|
|
|
// OFFSET: 0x00E19530
|
|
// FUNCTION: fn_23841
|
|
__declspec(noinline) int __stdcall GetWeaponViewValue(int weapon) {
|
|
const int value = FindItemDescription(weapon).viewId;
|
|
|
|
if (weapon > 2100 && weapon < 2200 || static_cast<unsigned>(weapon - 28901) <= 0x61 || static_cast<unsigned>(weapon - 460000) <= 0x270F) {
|
|
return -1;
|
|
}
|
|
|
|
return value;
|
|
}
|
|
|
|
// OFFSET: 0x00E248F0
|
|
// FUNCTION: fn_23898
|
|
int __stdcall GetDualWieldWeaponType(int first, int second) {
|
|
int main = first;
|
|
int result = 0;
|
|
int sub;
|
|
|
|
if (first == 0) {
|
|
main = second;
|
|
|
|
if (second == 0) {
|
|
return result;
|
|
}
|
|
|
|
sub = 0;
|
|
} else {
|
|
sub = second;
|
|
}
|
|
|
|
if (main >= 1100 && main < 1150 || main >= 13400 && main < 13500 || static_cast<unsigned>(main - 500000) <= 0x270F) {
|
|
result = 2;
|
|
|
|
if (sub >= 1100 && sub < 1150 || sub >= 13400 && sub < 13500 || static_cast<unsigned>(sub - 500000) <= 0x270F) {
|
|
return 26;
|
|
} else if (sub >= 1200 && sub < 1250 || sub >= 13000 && sub < 13100 || sub >= 28700 && sub < 28900 ||
|
|
static_cast<unsigned>(sub - 510000) <= 0x270F) {
|
|
return 28;
|
|
} else if (sub >= 1300 && sub < 1350 || static_cast<unsigned>(sub - 520000) <= 0x270F) {
|
|
return 30;
|
|
}
|
|
} else if (main >= 1200 && main < 1250 || main >= 13000 && main < 13100 || main >= 28700 && main < 28900 ||
|
|
static_cast<unsigned>(main - 510000) <= 0x270F) {
|
|
result = 1;
|
|
|
|
if (sub >= 1100 && sub < 1150 || sub >= 13400 && sub < 13500 || static_cast<unsigned>(sub - 500000) <= 0x270F) {
|
|
return 28;
|
|
} else if (sub >= 1200 && sub < 1250 || sub >= 13000 && sub < 13100 || sub >= 28700 && sub < 28900 ||
|
|
static_cast<unsigned>(sub - 510000) <= 0x270F) {
|
|
return 25;
|
|
} else if (sub >= 1300 && sub < 1350 || static_cast<unsigned>(sub - 520000) <= 0x270F) {
|
|
return 29;
|
|
}
|
|
} else if (main >= 1300 && main < 1350 || static_cast<unsigned>(main - 520000) <= 0x270F) {
|
|
result = 6;
|
|
|
|
if (sub >= 1300 && sub < 1350 || static_cast<unsigned>(sub - 520000) <= 0x270F) {
|
|
return 27;
|
|
}
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: 0x00E25970
|
|
// FUNCTION: fn_23906
|
|
bool ResetHotkeySlots() {
|
|
g_session.m_hotkeyScript->Call("ResetTheHotKey", "dddd", 1, 132, 192, 18);
|
|
return g_session.m_hotkeyScript->Call("ResetTheHotKey", "dddd", 1, 135, 36, 18);
|
|
}
|
|
|
|
// OFFSET: 0x00E25E60
|
|
// FUNCTION: fn_23909
|
|
std::pair<int, int>* CSession::InsertPair(int key, int value) {
|
|
for (std::vector<std::pair<int, int>>::iterator it = this->keyValues.begin(); it != this->keyValues.end(); ++it) {
|
|
if (key == it->first) {
|
|
it->second = value;
|
|
return &*it;
|
|
}
|
|
}
|
|
|
|
return &this->keyValues.emplace_back(std::make_pair(key, value));
|
|
}
|
|
|
|
// OFFSET: 0x00E0A1F0
|
|
// FUNCTION: fn_23792
|
|
int CSession::GetPairValue() const {
|
|
int value = -1;
|
|
if (this->m_pairValues[0] != -1) {
|
|
value = this->m_pairValues[0];
|
|
}
|
|
if (this->m_pairValues[1] != -1) {
|
|
value = this->m_pairValues[1];
|
|
}
|
|
if (this->m_pairValues[2] != -1) {
|
|
value = this->m_pairValues[2];
|
|
}
|
|
return value;
|
|
}
|
|
|
|
// OFFSET: 0x00E0A220
|
|
// FUNCTION: fn_23793
|
|
int CSession::GetPetTargetAid() const {
|
|
int target = 0;
|
|
std::uint32_t aid = *reinterpret_cast<const std::uint32_t*>(&this->spAndHomunculusStats[8]);
|
|
CGameMode* mode;
|
|
CRenderObject* actor;
|
|
if (aid != 0 && (mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode())) != nullptr &&
|
|
(actor = mode->scene->GetGameActorByAID(aid)) != nullptr) {
|
|
target = static_cast<CGameActor*>(actor)->hitTargetAid;
|
|
}
|
|
|
|
aid = *reinterpret_cast<const std::uint32_t*>(&this->companionTargetState[8]);
|
|
if (aid != 0 && (mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode())) != nullptr &&
|
|
(actor = mode->scene->GetGameActorByAID(aid)) != nullptr) {
|
|
target = static_cast<CGameActor*>(actor)->hitTargetAid;
|
|
}
|
|
|
|
if (target > 0) {
|
|
mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
|
|
if (mode == nullptr || mode->scene->GetGameActorByAID(target) == nullptr) {
|
|
return 0;
|
|
}
|
|
}
|
|
return target;
|
|
}
|
|
|
|
// OFFSET: 0x00E1D950
|
|
// FUNCTION: fn_23854
|
|
int CSession::GetBattleFieldMode() const {
|
|
return static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->isBattleFieldMode;
|
|
}
|
|
|
|
// OFFSET: 0x00E1D970
|
|
// FUNCTION: fn_23855
|
|
bool CSession::IsShadowItemType(int type) const {
|
|
return type == 18;
|
|
}
|
|
|
|
// OFFSET: 0x00E1D980
|
|
// FUNCTION: fn_23856
|
|
bool CSession::IsConsumableItemType(int type) const {
|
|
if (type == 0 || type == 1 || type == 2 || type == 18) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E1D9B0
|
|
// FUNCTION: fn_23857
|
|
bool CSession::IsCostumeLocation(int location) const {
|
|
switch (location) {
|
|
case EQP_COSTUME_HEAD_TOP:
|
|
case EQP_COSTUME_HEAD_MID:
|
|
case 0xC00:
|
|
case EQP_COSTUME_HEAD_LOW:
|
|
case 0x1400:
|
|
case 0x1800:
|
|
case 0x1C00:
|
|
case EQP_COSTUME_GARMENT:
|
|
case 0x4000:
|
|
case EQP_SHADOW_ARMOR:
|
|
case EQP_SHADOW_WEAPON:
|
|
case EQP_SHADOW_SHIELD:
|
|
case EQP_SHADOW_SHOES:
|
|
case EQP_SHADOW_ACC_R:
|
|
case EQP_SHADOW_ACC_L:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E1DA40
|
|
// FUNCTION: fn_23858
|
|
int CSession::IsBerserkActive() const {
|
|
for (const ActiveSkillEffect& effect : g_activeSkillEffects) {
|
|
if (effect.id == EFST_BERSERK) {
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DA70
|
|
// FUNCTION: fn_23859
|
|
int CSession::IsTrickDeadActive() const {
|
|
for (const ActiveSkillEffect& effect : g_activeSkillEffects) {
|
|
if (effect.id == EFST_TRICKDEAD) {
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAA0
|
|
// FUNCTION: fn_23860
|
|
int CSession::GetMapProperty08() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 8);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAB0
|
|
// FUNCTION: fn_23861
|
|
int CSession::GetMapProperty07() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 7);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAC0
|
|
// FUNCTION: fn_23862
|
|
int CSession::GetMapProperty13() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 0x13);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAD0
|
|
// FUNCTION: fn_23863
|
|
int CSession::GetMapProperty11() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 0x11);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAE0
|
|
// FUNCTION: fn_23864
|
|
int CSession::GetMapProperty10() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 0x10);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAF0
|
|
// FUNCTION: fn_23865
|
|
int CSession::GetMapProperty12() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 0x12);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DB00
|
|
// FUNCTION: fn_23866
|
|
int CSession::GetMapProperty09() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 9);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DB10
|
|
// FUNCTION: fn_23867
|
|
int CSession::GetMapProperty0F() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 0xF);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DB20
|
|
// FUNCTION: fn_23868
|
|
bool CSession::IsEquipItemType(int type) const {
|
|
if (type == 4 || type == 11 || type == 12 || type == 13 || type == 14 || type == 5 || type == 8 || type == 9 || type == 15) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DB60
|
|
// FUNCTION: fn_23869
|
|
bool CSession::IsMiscItemType(int type) const {
|
|
if (type == 6 || type == 3 || type == 7 || type == 10 || type == 16 || type == 17 || type == 19) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DBA0
|
|
// FUNCTION: fn_23870
|
|
bool CSession::HasTrackedAchievements() const {
|
|
return this->trackedAchievements.size() != 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DBD0
|
|
// FUNCTION: fn_23871
|
|
int CSession::HasActiveSkillEffect(int id) const {
|
|
for (const ActiveSkillEffect& effect : g_activeSkillEffects) {
|
|
if (effect.id == id) {
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DC00
|
|
// FUNCTION: fn_23872
|
|
int CSession::IsGuardianJob(int job) const {
|
|
return job == JT_ARCHER_GUARDIAN || job == JT_KNIGHT_GUARDIAN || job == JT_SOLDIER_GUARDIAN ? 1 : 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DF50
|
|
// FUNCTION: fn_23887
|
|
int CSession::IsPlayerJobId(int job) const {
|
|
return IsPlayerJob(job);
|
|
}
|
|
|
|
// OFFSET: 0x00E1E050
|
|
// FUNCTION: fn_23892
|
|
__declspec(noinline) bool CSession::IsSuperNoviceJob(int job) const {
|
|
if (job == JT_SUPERNOVICE || job == JT_SUPERNOVICE_B || job == JT_PORING_SNOVICE || job == JT_PORING_SNOVICE_B) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E1E080
|
|
// FUNCTION: fn_23893
|
|
bool CSession::IsSuperNoviceClass(int job) const {
|
|
if (job == JT_SUPERNOVICE || job == JT_SUPERNOVICE_B || job == JT_PORING_SNOVICE || job == JT_PORING_SNOVICE_B || job == JT_SUPERNOVICE2 ||
|
|
job == JT_SUPERNOVICE2_B || job == JT_PORING_SNOVICE2 || job == JT_PORING_SNOVICE2_B || job == JT_HYPER_NOVICE || job == JT_HYPER_NOVICE_RIDING) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E24550
|
|
// FUNCTION: fn_23896
|
|
bool CSession::PlaySkillTargetEffect(int skillId, int level, CGameActor* source, CGameActor* target) {
|
|
bool hasInfo = false;
|
|
if (!g_session.m_hotkeyScript->Call("HaveSkillEffectInfo", "d>b", skillId, &hasInfo) || !hasInfo) {
|
|
return false;
|
|
}
|
|
|
|
const char* waveName = nullptr;
|
|
if (g_session.m_hotkeyScript->Call("GetTargetEffectWaveFileName", "d>s", skillId, &waveName) && std::strcmp(waveName, "") != 0) {
|
|
g_soundMgr->PlayWave(waveName, 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
|
|
int count = 0;
|
|
if (g_session.m_hotkeyScript->Call("GetTargetEffectNum", "d>d", skillId, &count)) {
|
|
for (int index = 0; index < count; ++index) {
|
|
int effectId = -1;
|
|
g_session.m_hotkeyScript->Call("GetTargetEffectID", "dd>d", skillId, index + 1, &effectId);
|
|
if (effectId == -1) {
|
|
continue;
|
|
}
|
|
|
|
if (g_effectMgr->HasAllocator(effectId)) {
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, effectId, target->render.position, 0, -1, 0, 0
|
|
);
|
|
} else {
|
|
target->LaunchEffect(effectId, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00E248E0
|
|
// FUNCTION: fn_23897
|
|
void CSession::ApplySaveDataOptions() {
|
|
}
|
|
|
|
// OFFSET: 0x00E25EE0
|
|
// FUNCTION: fn_23910
|
|
int CSession::SetPairValue(int value, int slot) {
|
|
if (slot == 0) {
|
|
this->m_pairValues[0] = value;
|
|
return value;
|
|
}
|
|
|
|
if (slot == 1) {
|
|
this->m_pairValues[1] = value;
|
|
return value;
|
|
}
|
|
|
|
if (slot == 2) {
|
|
this->m_pairValues[2] = value;
|
|
return value;
|
|
}
|
|
|
|
return slot;
|
|
}
|
|
|
|
// OFFSET: 0x00E25F20
|
|
// FUNCTION: fn_23911
|
|
int CSession::SetHotkeyEntry(char enabled, int id, int value, int slot) {
|
|
for (int index = 0; index < 2; ++index) {
|
|
NormalItemSlot& entry = this->SkillHotkey(index);
|
|
|
|
if (id == static_cast<int>(entry.itemId) && value == entry.value && enabled == static_cast<char>(entry.enabled) ||
|
|
!CSkillInfo::UsesLevel(*g_session.m_hotkeyScript, static_cast<int>(entry.itemId)) && id == static_cast<int>(entry.itemId)) {
|
|
entry.enabled = 0;
|
|
entry.itemId = 0;
|
|
entry.value = 0;
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_SHORTCUT_KEY_CHANGE, index + 36, 0, 0, 0);
|
|
}
|
|
}
|
|
|
|
NormalItemSlot& target = this->SkillHotkey(slot);
|
|
if (id != 0) {
|
|
target.enabled = static_cast<unsigned char>(enabled);
|
|
target.itemId = static_cast<std::uint32_t>(id);
|
|
target.value = static_cast<std::int16_t>(value);
|
|
} else {
|
|
target.enabled = 0;
|
|
target.itemId = 0;
|
|
target.value = 0;
|
|
}
|
|
|
|
return g_modeMgr.GetGameMode()->SendMsg(MM_SHORTCUT_KEY_CHANGE, slot + 36, 0, 0, 0);
|
|
}
|
|
|
|
// OFFSET: 0x00E26030
|
|
// FUNCTION: fn_23912
|
|
int CSession::SetFlag(char value) {
|
|
const int result = value & 1;
|
|
this->cachedSex = result;
|
|
this->currentSex = result;
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: 0x00DFB490
|
|
// FUNCTION: fn_23582
|
|
bool IsScreenShakeActive() {
|
|
return g_screenShakeDuration != 0 && g_screenShakeMode == 2;
|
|
}
|
|
|
|
// OFFSET: 0x00E25DD0
|
|
// FUNCTION: fn_23908
|
|
void CSession::SetPlayerNameKey(const unsigned char* key) {
|
|
std::memcpy(this->m_playerNameKey, key, sizeof(this->m_playerNameKey));
|
|
|
|
for (unsigned int index = 0; index < sizeof(this->m_playerNameKey); ++index) {
|
|
this->m_playerNameKey[index] ^= g_playerNameKey[index];
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E1D870
|
|
// FUNCTION: fn_23853
|
|
bool CSession::IsBabyJob(int job) const {
|
|
if ((job >= JT_NOVICE_B && job <= JT_THIEF_B) || job == JT_SUPERNOVICE_B || job == JT_SUPERNOVICE2_B) {
|
|
return true;
|
|
}
|
|
if (job >= JT_KNIGHT_B && job <= JT_CHICKEN2_B) {
|
|
return true;
|
|
}
|
|
if (job >= JT_RUNE_KNIGHT_B && job <= JT_MADOGEAR_B) {
|
|
return true;
|
|
}
|
|
if (job >= JT_PORING_NOVICE_B && job <= JT_DOG_CHASER_B) {
|
|
return true;
|
|
}
|
|
if ((job >= JT_SHEEP_PRIEST_B && job <= JT_PIG_BLACKSMITH_B) || job == JT_PORING_SNOVICE2_B) {
|
|
return true;
|
|
}
|
|
if (job >= JT_PIG_MECHANIC_B && job <= JT_LION_CRUSADER_B) {
|
|
return true;
|
|
}
|
|
if (job == JT_DO_SUMMONER_B) {
|
|
return true;
|
|
}
|
|
if (job >= JT_NINJA_B && job <= JT_STAR2_B) {
|
|
return true;
|
|
}
|
|
if (job == JT_STAR_EMPEROR_B || job == JT_SOUL_REAPER_B || job == JT_STAR2_EMPEROR_B || job == JT_HAETAE_STAR_EMPEROR_B ||
|
|
job == JT_HAETAE_SOUL_REAPER_B || job == JT_DRUID_B || job == JT_KARNOS_B) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DC50
|
|
// FUNCTION: fn_23873
|
|
int CSession::IsMercenaryJob(int job) const {
|
|
if (job >= JT_MER_LIF && job <= JT_MER_VANILMIRTH_H2) {
|
|
return 1;
|
|
}
|
|
if (job >= JT_MER_EIRA && job <= JT_MER_ELEANOR) {
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DC80
|
|
// FUNCTION: fn_23874
|
|
int CSession::IsNewMercenaryJob(int job) const {
|
|
return job >= JT_MER_EIRA && job <= JT_MER_ELEANOR;
|
|
}
|
|
|
|
// OFFSET: 0x00E1E020
|
|
// FUNCTION: fn_23891
|
|
__declspec(noinline) bool CSession::IsSuperNovice2Job(int job) const {
|
|
return job == JT_SUPERNOVICE2 || job == JT_SUPERNOVICE2_B || job == JT_PORING_SNOVICE2 || job == JT_PORING_SNOVICE2_B;
|
|
}
|
|
|
|
// OFFSET: 0x00E1E0E0
|
|
// FUNCTION: fn_23894
|
|
bool CSession::IsExpandedJob(int job) const {
|
|
switch (job) {
|
|
case JT_KAGEROU:
|
|
case JT_OBORO:
|
|
case JT_FROG_KAGEROU:
|
|
case JT_FROG_OBORO:
|
|
case JT_REBELLION:
|
|
case JT_PECO_REBELLION:
|
|
case JT_KAGEROU_B:
|
|
case JT_OBORO_B:
|
|
case JT_REBELLION_B:
|
|
case JT_FROG_KAGEROU_B:
|
|
case JT_FROG_OBORO_B:
|
|
case JT_PECO_REBELLION_B:
|
|
case JT_STAR_EMPEROR:
|
|
case JT_SOUL_REAPER:
|
|
case JT_STAR_EMPEROR_B:
|
|
case JT_SOUL_REAPER_B:
|
|
case JT_STAR2_EMPEROR:
|
|
case JT_STAR2_EMPEROR_B:
|
|
case JT_HAETAE_STAR_EMPEROR:
|
|
case JT_HAETAE_SOUL_REAPER:
|
|
case JT_HAETAE_STAR_EMPEROR_B:
|
|
case JT_HAETAE_SOUL_REAPER_B:
|
|
case JT_SKY_EMPEROR:
|
|
case JT_SOUL_ASCETIC:
|
|
case JT_SHINKIRO:
|
|
case JT_SHIRANUI:
|
|
case JT_NIGHT_WATCH:
|
|
case JT_HYPER_NOVICE:
|
|
case JT_SPIRIT_HANDLER:
|
|
case JT_SKY_EMPEROR_RIDING:
|
|
case JT_SOUL_ASCETIC_RIDING:
|
|
case JT_SHINKIRO_RIDING:
|
|
case JT_SHIRANUI_RIDING:
|
|
case JT_NIGHT_WATCH_RIDING:
|
|
case JT_HYPER_NOVICE_RIDING:
|
|
case JT_SPIRIT_HANDLER_RIDING:
|
|
case JT_SKY_EMPEROR2:
|
|
case JT_KARNOS:
|
|
case JT_KARNOS_B:
|
|
case JT_KARNOS_RIDING:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E3D350
|
|
// FUNCTION: fn_24188
|
|
bool CSession::IsCostumeJob(int job) const {
|
|
switch (job) {
|
|
case JT_MARRIED:
|
|
case JT_SANTA:
|
|
case JT_SUMMER:
|
|
case JT_HANBOK:
|
|
case JT_OKTOBERFEST:
|
|
case JT_SUMMER2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
int GetEquipLocationIndex(const int& mask);
|
|
|
|
namespace EquipmentProperties {
|
|
class CEquipmentProperties;
|
|
|
|
class CEquipment {
|
|
public:
|
|
virtual ~CEquipment();
|
|
virtual void Load(bool force) = 0;
|
|
virtual void Clear();
|
|
virtual int GetType() = 0;
|
|
virtual int GetValue(const int& key);
|
|
int& GetId();
|
|
|
|
/* 0004 */ int m_id;
|
|
/* 0008 */ void* m_info;
|
|
/* 000C */ unsigned char m_properties[0x28];
|
|
/* 0034 */ bool m_pretend;
|
|
};
|
|
|
|
class CEquipmentAttachable : public CEquipment {
|
|
public:
|
|
void Load(bool force) override;
|
|
int GetType() override;
|
|
CEquipment* GetOwner();
|
|
|
|
/* 0038 */ int m_slotIndex;
|
|
/* 003C */ CEquipment* m_owner;
|
|
};
|
|
|
|
class CEquipmentWearable : public CEquipment {
|
|
public:
|
|
void Load(bool force) override;
|
|
void Clear() override;
|
|
int GetType() override;
|
|
std::vector<CEquipmentAttachable>& GetAttachables();
|
|
bool IsActive();
|
|
|
|
/* 0038 */ bool m_active;
|
|
/* 003C */ int m_type;
|
|
/* 0040 */ int equippedItemIndex;
|
|
/* 0044 */ std::vector<CEquipmentAttachable> m_attachables;
|
|
/* 0050 */ std::list<CEquipmentProperties*> m_children;
|
|
};
|
|
|
|
class CEquipmentPropertiesMgr {
|
|
public:
|
|
virtual ~CEquipmentPropertiesMgr();
|
|
/* 0004 */ unsigned char padding_0004[0x9];
|
|
/* 000D */ bool m_dirty;
|
|
/* 000E */ unsigned char padding_000E[0x12];
|
|
/* 0020 */ UIWindow* observerWindow;
|
|
/* 0024 */ std::unordered_map<int, CEquipmentWearable*> properties1;
|
|
|
|
CEquipmentPropertiesMgr();
|
|
CEquipmentWearable* FindProperty1(const int& key);
|
|
void UnequipItem(const int& itemId, bool notify);
|
|
void RemoveWearable(const int& location);
|
|
};
|
|
|
|
void CEquipmentPropertiesMgr::RemoveWearable(const int& location) {
|
|
this->m_dirty = true;
|
|
const int key = GetEquipLocationIndex(location);
|
|
CEquipmentWearable* wearable = this->FindProperty1(key);
|
|
if (wearable != nullptr) {
|
|
for (CEquipmentAttachable& attachable : wearable->GetAttachables()) {
|
|
this->UnequipItem(attachable.GetId(), true);
|
|
}
|
|
this->UnequipItem(wearable->GetId(), true);
|
|
wearable->Clear();
|
|
delete wearable;
|
|
this->properties1.erase(key);
|
|
}
|
|
if (this->observerWindow != nullptr) {
|
|
this->observerWindow->SendMsg(nullptr, UM_REFRESH, 0, 0, 0, 0);
|
|
}
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E24B30
|
|
// FUNCTION: fn_23899
|
|
bool CSession::UnequipCostumeItem(int location) {
|
|
if (location == 0x8000) {
|
|
this->SetEquippedArrowIndex(0);
|
|
} else {
|
|
const EquipSlots slots = g_session.GetEquipSlots(location);
|
|
if (slots.values[2] < 10) {
|
|
ITEM_INFO* const items = this->costumeItems;
|
|
if (slots.values[2] != -1) {
|
|
const char* message = LookupMessage(MSI_ITEM_IS_REMOVED);
|
|
ITEM_INFO& item = items[slots.values[2]];
|
|
g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast<std::intptr_t>(FormatOwnedString("%s%s", item.DisplayName(0).c_str(), message).c_str()),
|
|
0xFF, 7, 0, 0);
|
|
item.identity[3] = 0;
|
|
this->AddInventoryItem(item, 1);
|
|
item.Reset();
|
|
}
|
|
if (slots.values[1] != -1 && slots.values[1] < 10) {
|
|
items[slots.values[1]].Reset();
|
|
}
|
|
if (slots.values[0] != -1 && slots.values[0] < 10) {
|
|
items[slots.values[0]].Reset();
|
|
}
|
|
}
|
|
RequestBasicInfoRefresh();
|
|
}
|
|
|
|
this->InvalidateWindowFrames();
|
|
if (UIWindow* window = reinterpret_cast<UIWindow*>(g_windowMgr.itemParamChangeDisplayWnd)) {
|
|
window->SendMsg(nullptr, UM_REFRESH, 0, 0, 0, 0);
|
|
}
|
|
if (g_equipmentPropertiesMgr == nullptr) {
|
|
g_equipmentPropertiesMgr = new (std::nothrow) EquipmentProperties::CEquipmentPropertiesMgr;
|
|
}
|
|
g_equipmentPropertiesMgr->RemoveWearable(location);
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00E1E250
|
|
// FUNCTION: fn_45483
|
|
bool LaunchLuaSkillEffect(int skillId, int level, CGameActor* source, CGameActor* target) {
|
|
const vector3d& position = source != nullptr ? source->render.position : vector3d{0.0f, 0.0f, 0.0f};
|
|
const std::uint32_t sourceId = source != nullptr ? source->render.accountId : 0;
|
|
const std::uint32_t targetId = target != nullptr ? target->render.accountId : 0;
|
|
|
|
bool hasInfo = false;
|
|
if (!g_session.m_hotkeyScript->Call("HaveSkillEffectInfo", "d>b", skillId, &hasInfo) || !hasInfo) {
|
|
return false;
|
|
}
|
|
|
|
const char* waveName = nullptr;
|
|
if (g_session.m_hotkeyScript->Call("GetEffectWaveFileName", "d>s", skillId, &waveName) && std::strcmp(waveName, "") != 0) {
|
|
g_soundMgr->PlayWave(waveName, 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
|
|
int count = 0;
|
|
if (!g_session.m_hotkeyScript->Call("GetEffectNum", "d>d", skillId, &count)) {
|
|
return false;
|
|
}
|
|
|
|
for (int index = 0; index < count; ++index) {
|
|
int effectId = -1;
|
|
if (!g_session.m_hotkeyScript->Call("GetEffectID", "dd>d", skillId, index + 1, &effectId) || effectId == -1) {
|
|
continue;
|
|
}
|
|
|
|
if (g_effectMgr->HasAllocator(effectId)) {
|
|
g_effectMgr->Spawn(sourceId, effectId, position, sourceId != targetId ? targetId : 0, -1, 0, 0);
|
|
} else if (source != nullptr) {
|
|
CRagEffect* effect = source->LaunchEffect(effectId, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect != nullptr) {
|
|
bool onTarget = false;
|
|
g_session.m_hotkeyScript->Call("IsOnTarget", "d>b", skillId, &onTarget);
|
|
if (onTarget && target != nullptr) {
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<std::intptr_t>(&target->render.position), 0, 0, 0, 0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00E24DE0
|
|
// FUNCTION: fn_23901
|
|
bool CSession::PlaySkillGroundEffect(int skillId, vector3d position) {
|
|
bool hasInfo = false;
|
|
if (!g_session.m_hotkeyScript->Call("HaveSkillEffectInfo", "d>b", skillId, &hasInfo) || !hasInfo) {
|
|
return false;
|
|
}
|
|
|
|
const char* waveName = nullptr;
|
|
if (g_session.m_hotkeyScript->Call("GetEffectWaveFileName", "d>s", skillId, &waveName) && std::strcmp(waveName, "") != 0) {
|
|
g_soundMgr->PlayWave(waveName, 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
|
|
int count = 0;
|
|
if (g_session.m_hotkeyScript->Call("GetGroundEffectNum", "d>d", skillId, &count)) {
|
|
for (int index = 0; index < count; ++index) {
|
|
int effectId = -1;
|
|
g_session.m_hotkeyScript->Call("GetGroundEffectID", "dd>d", skillId, index + 1, &effectId);
|
|
if (effectId == -1) {
|
|
continue;
|
|
}
|
|
|
|
if (g_effectMgr->HasAllocator(effectId)) {
|
|
g_effectMgr->Spawn(0, effectId, position, 0, -1, 0, 0);
|
|
} else {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())
|
|
->LaunchDummyEffect(&position, effectId, EffectLifetime(effectId) + 10, 0);
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00E2F9F0
|
|
// FUNCTION: fn_24162
|
|
int CSession::GetMaxBaseLevel(int job) const {
|
|
if (g_session.IsTreeGroupThree(job) == true) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x74]);
|
|
}
|
|
if (g_session.IsTreeGroupTwo(job)) {
|
|
return g_session.m_maxLevel;
|
|
}
|
|
if (g_session.IsSuperNovice2Job(job)) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0]);
|
|
}
|
|
if (g_session.IsExpandedJob(job)) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[4]);
|
|
}
|
|
return g_session.IsDoramJob(job) == true ? *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x28])
|
|
: *reinterpret_cast<const int*>(g_session.maxBaseLevel);
|
|
}
|
|
|
|
// OFFSET: 0x00E2FA80
|
|
// FUNCTION: fn_24163
|
|
int CSession::GetMaxJobLevel(int job) const {
|
|
if (g_session.IsSuperNoviceJob(job)) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x10]);
|
|
}
|
|
if ((job >= JT_KNIGHT_H && job < JT_NOVICE_B) || job == JT_GUNSLINGER || job == JT_NINJA || job == JT_GUNSLINGER_B || job == JT_NINJA_B ||
|
|
job == JT_DRUID || job == JT_DRUID_B) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x18]);
|
|
}
|
|
if (job == JT_NOVICE || job == JT_NOVICE_B || job == JT_NOVICE_H) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x0C]);
|
|
}
|
|
if (g_session.IsTreeGroupThree(job) == true) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x78]);
|
|
}
|
|
if (g_session.IsTreeGroupTwo(job)) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x1C]);
|
|
}
|
|
if (!g_session.IsExpandedJob(job)) {
|
|
if (g_session.IsDoramJob(job) == true) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x2C]);
|
|
}
|
|
if (!g_session.IsSuperNovice2Job(job)) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x14]);
|
|
}
|
|
}
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x24]);
|
|
}
|
|
|
|
// OFFSET: 0x00E1E690
|
|
// FUNCTION: fn_23895
|
|
void CSession::PlaySkillEffect(int skillId, int level, CGameActor* source, CGameActor* target) {
|
|
if (source == nullptr || target == nullptr) {
|
|
return;
|
|
}
|
|
|
|
if (this->PlaySkillTargetEffect(skillId, level, source, target) == true) {
|
|
return;
|
|
}
|
|
|
|
CRagEffect* effect;
|
|
|
|
switch (skillId) {
|
|
case KN_PIERCE:
|
|
effect = source->LaunchEffect(0x94, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case WZ_JUPITEL:
|
|
effect = source->LaunchEffect(0x5D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case WZ_EARTHSPIKE:
|
|
effect = target->LaunchEffect(0x4F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case WZ_WATERBALL:
|
|
effect = source->LaunchEffect(0x75, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case KN_SPEARBOOMERANG:
|
|
effect = source->LaunchEffect(0x50, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
effect = source->LaunchEffect(0x97, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case KN_BOWLINGBASH:
|
|
effect = source->LaunchEffect(0x95, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case KN_BRANDISHSPEAR:
|
|
effect = target->LaunchEffect(0x46, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case KN_SPEARSTAB:
|
|
effect = source->LaunchEffect(0x96, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AS_GRIMTOOTH:
|
|
effect = source->LaunchEffect(0x7B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AS_SONICBLOW:
|
|
effect = source->LaunchEffect(0x79, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
effect = source->LaunchEffect(0x8F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case PR_TURNUNDEAD:
|
|
effect = source->LaunchEffect(0x52, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MG_FIREBALL:
|
|
effect = source->LaunchEffect(0x18, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MG_FROSTDIVER:
|
|
effect = source->LaunchEffect(0x1B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AC_SHOWER: {
|
|
CGameMode* mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
|
|
vector3d* sourcePosition = &source->render.position;
|
|
mode->SpawnArrowEffect64(sourcePosition, &target->render.position, 18.0f);
|
|
int column;
|
|
int row;
|
|
mode->WorldCell(target->render.position.x, target->render.position.z, column, row);
|
|
const int offsets[8][2] = {{1, 0}, {1, 1}, {1, -1}, {-1, 0}, {-1, 1}, {-1, -1}, {0, 1}, {0, -1}};
|
|
for (int index = 0; index < 8; ++index) {
|
|
float x;
|
|
float z;
|
|
mode->CellCenter(offsets[index][0] + column, offsets[index][1] + row, x, z);
|
|
vector3d position;
|
|
position.x = x;
|
|
position.y = mode->scene->terrain->Height(x, z);
|
|
position.z = z;
|
|
mode->SpawnArrowEffect64(sourcePosition, &position, 18.0f);
|
|
}
|
|
break;
|
|
}
|
|
case MG_COLDBOLT:
|
|
effect = target->LaunchEffect(0x1A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MG_FIREBOLT:
|
|
effect = target->LaunchEffect(0x1F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MG_LIGHTNINGBOLT:
|
|
effect = target->LaunchEffect(0x1D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MG_THUNDERSTORM:
|
|
target->LaunchEffect(0x1E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MC_CARTREVOLUTION:
|
|
source->LaunchEffect(0xAA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_RANGEATTACK:
|
|
effect = source->LaunchEffect(0x50, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case CR_GRANDCROSS:
|
|
source->LaunchEffect(0xE2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case CR_SHIELDCHARGE:
|
|
target->LaunchEffect(0xF6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case CR_SHIELDBOOMERANG:
|
|
effect = source->LaunchEffect(0xF9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case RG_BACKSTAP:
|
|
effect = source->LaunchEffect(0x113, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AM_ACIDTERROR:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x12A, source, target, -1);
|
|
}
|
|
break;
|
|
case TF_SPRINKLESAND:
|
|
target->LaunchEffect(0x136, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case TF_THROWSTONE:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x134, source, target, -1);
|
|
}
|
|
break;
|
|
case RG_INTIMIDATE:
|
|
effect = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(0xE3, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MO_TRIPLEATTACK:
|
|
effect = source->LaunchEffect(0x149, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MO_FINGEROFFENSIVE:
|
|
effect = source->LaunchEffect(0x109, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MO_INVESTIGATE:
|
|
effect = source->LaunchEffect(0x108, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
effect = source->LaunchEffect(0x10B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AL_HEAL:
|
|
target->LaunchEffect(0x140, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MO_EXTREMITYFIST:
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
g_soundMgr->PlayWave("effect\\mon_아수라 패황권.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
target->LaunchEffect(0x10A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_DARKTHUNDER:
|
|
effect = source->LaunchEffect(0x5D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case WS_CARTTERMINATION:
|
|
target->LaunchEffect(0x206, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LK_SPIRALPIERCE:
|
|
target->LaunchEffect(0x153, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_GRANDDARKNESS:
|
|
source->LaunchEffect(0x1C2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case CR_HOLYCROSS:
|
|
case NPC_DARKCROSS:
|
|
target->LaunchEffect(0xF5, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case PA_SHIELDCHAIN:
|
|
target->LaunchEffect(0x208, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case ITM_TOMAHAWK:
|
|
effect = source->LaunchEffect(0x1EE, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case CR_ACIDDEMONSTRATION: {
|
|
vector3d position = target->render.position;
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchDummyEffect(&position, 0x219, 100, 0);
|
|
break;
|
|
}
|
|
case NJ_SYURIKEN:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x265, source, target, -1);
|
|
}
|
|
break;
|
|
case NJ_KUNAI:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x266, source, target, -1);
|
|
}
|
|
break;
|
|
case NJ_HUUMA:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x267, source, target, -1);
|
|
}
|
|
break;
|
|
case NJ_ZENYNAGE:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x268, source, target, -1);
|
|
}
|
|
break;
|
|
case NJ_KOUENKA:
|
|
target->LaunchEffect(0x26A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NJ_HYOUSENSOU:
|
|
effect = target->LaunchEffect(0x26B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case NJ_HUUJIN:
|
|
effect = source->LaunchEffect(0x26D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = vector3d{0.0f, static_cast<float>(target->render.accountId), 0.0f};
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case NJ_KAMAITACHI:
|
|
effect = source->LaunchEffect(0x270, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case GS_FLING:
|
|
target->LaunchEffect(0x224, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NJ_KIRIKAGE:
|
|
target->LaunchEffect(0x276, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NJ_KASUMIKIRI:
|
|
target->LaunchEffect(0x278, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NJ_ISSEN:
|
|
target->LaunchEffect(0x279, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_PIERCINGSHOT:
|
|
effect = source->LaunchEffect(0x26F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case GS_DUST:
|
|
target->LaunchEffect(0x274, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_FULLBUSTER:
|
|
effect = source->LaunchEffect(0x248, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case GS_RAPIDSHOWER:
|
|
target->LaunchEffect(0x283, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_MAGICALBULLET:
|
|
target->LaunchEffect(0x284, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_TRACKING:
|
|
target->LaunchEffect(0x287, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_TRIPLEACTION:
|
|
target->LaunchEffect(0x288, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_BULLSEYE:
|
|
target->LaunchEffect(0x289, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_SPREADATTACK:
|
|
effect = source->LaunchEffect(0x285, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case PA_PRESSURE:
|
|
target->LaunchEffect(0x16D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LK_HEADCRUSH:
|
|
source->LaunchEffect(0x18F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LK_JOINTBEAT:
|
|
source->LaunchEffect(0x190, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case PA_SACRIFICE:
|
|
source->LaunchEffect(0x16E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case ASC_BREAKER:
|
|
effect = source->LaunchEffect(0x169, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case HW_MAGICCRASHER:
|
|
target->LaunchEffect(0x17C, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case HW_NAPALMVULCAN:
|
|
target->LaunchEffect(0x191, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SN_FALCONASSAULT:
|
|
target->LaunchEffect(0x183, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SN_SHARPSHOOTING:
|
|
effect = source->LaunchEffect(0x184, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case CG_ARROWVULCAN:
|
|
effect = source->LaunchEffect(0x189, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case NPC_SHIELDBRAKE:
|
|
target->LaunchEffect(0x10E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_ARMORBRAKE:
|
|
target->LaunchEffect(0x10F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_HELMBRAKE:
|
|
target->LaunchEffect(0x110, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case TK_DOWNKICK:
|
|
target->LaunchEffect(0x19D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1AF, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case TK_TURNKICK:
|
|
target->LaunchEffect(0x1D2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1AD, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case TK_JUMPKICK:
|
|
source->LaunchEffect(0x1C9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x1B7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1CA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SL_STIN:
|
|
effect = source->LaunchEffect(0x223, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x226, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SL_STUN:
|
|
effect = source->LaunchEffect(0x22B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1AD, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SL_SMA:
|
|
target->LaunchEffect(0x1A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x229, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = vector3d{0.0f, static_cast<float>(target->render.accountId), 0.0f};
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1AF, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x22A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_CRITICALWOUND:
|
|
target->LaunchEffect(0x2A5, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_SLOWCAST:
|
|
target->LaunchEffect(0x2A4, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_STONESKIN:
|
|
source->LaunchEffect(0xD6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_ANTIMAGIC:
|
|
source->LaunchEffect(0x2A3, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_FIREBREATH:
|
|
g_soundMgr->PlayWave("effect\\EF_FireWall.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case NPC_EXPULSION:
|
|
effect = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(0xE3, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case NPC_WIDESTONE:
|
|
case NPC_WIDESTONE2:
|
|
g_soundMgr->PlayWave("_stonecurse.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case NPC_WIDESLEEP:
|
|
case NPC_WIDESLEEP2:
|
|
g_soundMgr->PlayWave("effect\\widesleep.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case NPC_WIDECONFUSE:
|
|
case NPC_WIDECONFUSE2:
|
|
g_soundMgr->PlayWave("amon_ra_die01.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x29E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_WIDESIGHT:
|
|
source->LaunchEffect(0x16, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_DRAGONFEAR:
|
|
source->LaunchEffect(0x29C, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_WIDEBLEEDING:
|
|
case NPC_WIDEBLEEDING2:
|
|
source->LaunchEffect(0x29D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_PULSESTRIKE:
|
|
case NPC_PULSESTRIKE2:
|
|
source->LaunchEffect(0x199, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_EARTHQUAKE:
|
|
case NPC_EARTHQUAKE_K:
|
|
source->LaunchEffect(0x29A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_DANCINGBLADE_ATK:
|
|
target->LaunchEffect(0x405, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_DARKPIERCING: {
|
|
CRagEffect* first = target->LaunchEffect(0x406, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
CRagEffect* second = target->LaunchEffect(0x406, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (first) {
|
|
vector3d position = source->render.position;
|
|
first->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
if (second) {
|
|
vector3d position = source->render.position;
|
|
second->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
g_soundMgr->PlayWave("effect\\LG_CANNONSPEAR.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
}
|
|
case NPC_MAXPAIN:
|
|
source->LaunchEffect(0x408, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case AS_VENOMKNIFE:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x258, source, target, -1);
|
|
}
|
|
break;
|
|
case RK_HUNDREDSPEAR:
|
|
effect = source->LaunchEffect(0x2D3, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
effect = source->LaunchEffect(0x343, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case GC_PHANTOMMENACE:
|
|
source->LaunchEffect(0x300, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\mon_맹룡과강.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x305, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GC_VENOMPRESSURE:
|
|
source->LaunchEffect(0x300, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x24D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\EF_PoisonAttack.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case GC_WEAPONCRUSH:
|
|
effect = target->LaunchEffect(0x302, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case GC_CROSSRIPPERSLASHER: {
|
|
float angle = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->CameraDesiredYaw() + source->render.angle;
|
|
if (angle >= 360.0f) {
|
|
angle -= 360.0f;
|
|
}
|
|
int effectId = 0;
|
|
if (angle >= 0.0f && angle < 23.0f) {
|
|
effectId = 0x527;
|
|
} else if (angle >= 23.0f && angle < 67.0f) {
|
|
effectId = 0x526;
|
|
} else if (angle >= 67.0f && angle < 112.0f) {
|
|
effectId = 0x525;
|
|
} else if (angle >= 112.0f && angle < 157.0f) {
|
|
effectId = 0x524;
|
|
} else if (angle >= 157.0f && angle < 202.0f) {
|
|
effectId = 0x523;
|
|
} else if (angle >= 202.0f && angle < 247.0f) {
|
|
effectId = 0x52A;
|
|
} else if (angle >= 247.0f && angle < 292.0f) {
|
|
effectId = 0x529;
|
|
} else if (angle >= 292.0f && angle < 337.0f) {
|
|
effectId = 0x528;
|
|
} else if (angle >= 337.0f && angle <= 360.0f) {
|
|
effectId = 0x527;
|
|
}
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
effectId += 0xA3;
|
|
}
|
|
g_effectMgr->Spawn(source->render.accountId, effectId, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(target->render.accountId, g_serviceOptions.Get(0xE5) ? 0x5C5 : 0x522, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
effect = source->LaunchEffect(0x301, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = vector3d{0.0f, static_cast<float>(target->render.accountId), 0.0f};
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x226, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
}
|
|
case GC_DARKILLUSION:
|
|
source->LaunchEffect(0x1C9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x1B7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1CA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GC_CROSSIMPACT:
|
|
g_effectMgr->Spawn(target->render.accountId, 0x61E, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
effect = source->LaunchEffect(0x620, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case RA_SENSITIVEKEEN:
|
|
g_soundMgr->PlayWave("were_wolf_attack.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case WL_SUMMON_ATK_FIRE:
|
|
target->LaunchEffect(0x31, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case WL_SUMMON_ATK_WIND:
|
|
target->LaunchEffect(0x34, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case WL_SUMMON_ATK_WATER:
|
|
target->LaunchEffect(0x33, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case WL_SUMMON_ATK_GROUND:
|
|
target->LaunchEffect(0x93, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case WL_TETRAVORTEX_FIRE:
|
|
effect = source->LaunchEffect(0x324, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case RA_WUGBITE:
|
|
g_soundMgr->PlayWave("wug_bite.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case RA_WUGSTRIKE:
|
|
g_soundMgr->PlayWave("wug_strike.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case RA_AIMEDBOLT: {
|
|
g_effectMgr->Spawn(target->render.accountId, 0x672, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
float angle = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->CameraDesiredYaw() + source->render.angle;
|
|
if (angle >= 360.0f) {
|
|
angle -= 360.0f;
|
|
}
|
|
int effectId;
|
|
if (angle > 0.0f && angle < 90.0f) {
|
|
effectId = 0x66E;
|
|
} else if (angle >= 90.0f && angle < 180.0f) {
|
|
effectId = 0x66D;
|
|
} else if (angle >= 180.0f && angle < 270.0f) {
|
|
effectId = 0x670;
|
|
} else {
|
|
effectId = 0x66F;
|
|
}
|
|
g_effectMgr->Spawn(source->render.accountId, effectId, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
break;
|
|
}
|
|
case NPC_ARROWSTORM:
|
|
case RA_ARROWSTORM: {
|
|
if (source == target) {
|
|
return;
|
|
}
|
|
g_soundMgr->PlayWave("arrowstorm.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
const int effectId = g_serviceOptions.Get(0xE5) ? 0x5B1 : 0x50D;
|
|
g_effectMgr->Spawn(target->render.accountId, effectId, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
vector3d position{0.0f, 0.0f, 0.0f};
|
|
for (int delay = 600; delay < 1200; delay += 200) {
|
|
CEffect* arrow = g_effectMgr->Spawn(target->render.accountId, effectId + 1, position, 0, -1, 0, 0);
|
|
if (arrow) {
|
|
arrow->SetDelay(delay);
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
case RA_DETONATOR:
|
|
source->LaunchEffect(0x2EE, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case RK_CRUSHSTRIKE:
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
target->LaunchEffect(0x24D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("_enemy_hit_wind2.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case WL_CHAINLIGHTNING:
|
|
case WL_CHAINLIGHTNING_ATK:
|
|
g_effectMgr->Spawn(target->render.accountId, 0x666, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
break;
|
|
case RK_SONICWAVE:
|
|
g_soundMgr->PlayWave("effect\\기공포.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
effect = source->LaunchEffect(0x340, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
effect = source->LaunchEffect(0x68E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AB_DUPLELIGHT_MELEE:
|
|
case AB_DUPLELIGHT_MAGIC:
|
|
effect = source->LaunchEffect(0x109, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, 3, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AB_JUDEX:
|
|
g_soundMgr->PlayWave("effect\\AB_judex.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x65B, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x65C, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(target->render.accountId, 0x65F, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(target->render.accountId, 0x660, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
for (int count = 0; count < 12; ++count) {
|
|
vector3d position = target->render.position;
|
|
const float radius = static_cast<float>(std::max(std::rand() % 15, 2));
|
|
matrix rotation;
|
|
rotation.MakeYRotation(static_cast<float>(std::max(std::rand() % 36, 0)) * 10.0f);
|
|
vector3d spot;
|
|
spot.x = rotation.values[0] * radius + rotation.values[3] * 0.0f + rotation.values[6] * 0.0f + rotation.values[9] + position.x;
|
|
spot.y = rotation.values[1] * radius + rotation.values[4] * 0.0f + rotation.values[7] * 0.0f + rotation.values[10] + position.y;
|
|
spot.z = rotation.values[2] * radius + rotation.values[5] * 0.0f + rotation.values[8] * 0.0f + rotation.values[11] + position.z;
|
|
const int delay = std::max(std::rand() % 10, 0) * 50;
|
|
CEffect* spawned = g_effectMgr->Spawn(0, 0x661, spot, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(delay);
|
|
}
|
|
spawned = g_effectMgr->Spawn(0, 0x662, spot, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(delay);
|
|
}
|
|
}
|
|
break;
|
|
case AB_ADORAMUS:
|
|
g_soundMgr->PlayWave("effect\\AB_adoramus.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x594, target->render.position, target->render.accountId, level, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x595, target->render.position, target->render.accountId, level, 0, 0
|
|
);
|
|
} else {
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x4EA, target->render.position, target->render.accountId, level, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x4EB, target->render.position, target->render.accountId, level, 0, 0
|
|
);
|
|
}
|
|
break;
|
|
case WL_CRIMSONROCK:
|
|
g_soundMgr->PlayWave(
|
|
"crimson_r.wav", target->render.position.x - source->render.position.x, 0.0f, target->render.position.z - source->render.position.z, 250, 40,
|
|
1.0f, 0
|
|
);
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x5A1, target->render.position, target->render.accountId, level, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x5A2, target->render.position, target->render.accountId, level, 0, 0
|
|
);
|
|
} else {
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x4FA, target->render.position, target->render.accountId, level, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x4FB, target->render.position, target->render.accountId, level, 0, 0
|
|
);
|
|
}
|
|
break;
|
|
case WL_HELLINFERNO:
|
|
g_effectMgr->Spawn(target->render.accountId, 0x60E, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(target->render.accountId, 0x60F, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
for (int index = 0; index < 4; ++index) {
|
|
matrix rotation;
|
|
rotation.MakeYRotation((static_cast<float>(index) * 90.0f + 45.0f) / 180.0f * 3.141592f);
|
|
vector3d spot;
|
|
spot.x = rotation.values[0] * 15.0f + rotation.values[3] * 0.0f + rotation.values[6] * 0.0f + rotation.values[9] + target->render.position.x;
|
|
spot.y = rotation.values[1] * 15.0f + rotation.values[4] * 0.0f + rotation.values[7] * 0.0f + rotation.values[10] + target->render.position.y;
|
|
spot.z = rotation.values[2] * 15.0f + rotation.values[5] * 0.0f + rotation.values[8] * 0.0f + rotation.values[11] + target->render.position.z;
|
|
g_effectMgr->Spawn(0, 0x611, spot, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(0, 0x612, spot, 0, -1, 0, 0);
|
|
}
|
|
break;
|
|
case NC_BOOSTKNUCKLE:
|
|
g_soundMgr->PlayWave("effect\\맹호경파산.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
effect = source->LaunchEffect(0x326, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case WM_METALICSOUND:
|
|
effect = source->LaunchEffect(0x630, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
g_soundMgr->PlayWave("effect\\metalic.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
case NPC_POISON_BUSTER:
|
|
case SO_POISON_BUSTER:
|
|
g_soundMgr->PlayWave("effect\\S포이즌버스터.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
target->LaunchEffect(0x39B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LG_HESPERUSLIT:
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x383, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x37E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x38A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\LG_HESPERUSLIT.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case LG_PIETY:
|
|
target->LaunchEffect(0x5B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LG_MOONSLASHER:
|
|
if (!source->HasId(0x37A)) {
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x37A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\LG_MOONSLASHER.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
source->LaunchEffect(0x3A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x375, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LG_RAGEBURST:
|
|
source->LaunchEffect(0x3A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x179, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\LG_RAGEBURST.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case LG_PINPOINTATTACK:
|
|
effect = source->LaunchEffect(0x38B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case LG_SHIELDPRESS:
|
|
source->LaunchEffect(0x38A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LG_TRAMPLE:
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
source->LaunchEffect(0x389, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\LG_TRAMPLE.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case LG_BANISHINGPOINT: {
|
|
float angle = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->CameraDesiredYaw() + source->render.angle;
|
|
if (angle >= 360.0f) {
|
|
angle -= 360.0f;
|
|
}
|
|
int effectId;
|
|
if (angle > 0.0f && angle < 90.0f) {
|
|
effectId = 0x55E;
|
|
} else if (angle >= 90.0f && angle < 180.0f) {
|
|
effectId = 0x55D;
|
|
} else if (angle >= 180.0f && angle < 270.0f) {
|
|
effectId = 0x560;
|
|
} else {
|
|
effectId = 0x55F;
|
|
}
|
|
const int duration = static_cast<int>(source->render.speed * 100.0f + 100.0f);
|
|
CEffect* spawned;
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
spawned = g_effectMgr->Spawn(source->render.accountId, effectId + 0x86, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x5DF, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x5E0, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
} else {
|
|
spawned = g_effectMgr->Spawn(source->render.accountId, effectId, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x559, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x55A, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
}
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5E1, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5E2, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
} else {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x55B, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x55C, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
}
|
|
g_soundMgr->PlayWave("effect\\LG_BANISHINGPOINT.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
}
|
|
case LG_CANNONSPEAR: {
|
|
float angle = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->CameraDesiredYaw() + source->render.angle;
|
|
if (angle >= 360.0f) {
|
|
angle -= 360.0f;
|
|
}
|
|
int effectId = 0;
|
|
if (angle >= 0.0f && angle < 23.0f) {
|
|
effectId = 0x57C;
|
|
} else if (angle >= 23.0f && angle < 67.0f) {
|
|
effectId = 0x57B;
|
|
} else if (angle >= 67.0f && angle < 112.0f) {
|
|
effectId = 0x57A;
|
|
} else if (angle >= 112.0f && angle < 157.0f) {
|
|
effectId = 0x579;
|
|
} else if (angle >= 157.0f && angle < 202.0f) {
|
|
effectId = 0x578;
|
|
} else if (angle >= 202.0f && angle < 247.0f) {
|
|
effectId = 0x57F;
|
|
} else if (angle >= 247.0f && angle < 292.0f) {
|
|
effectId = 0x57E;
|
|
} else if (angle >= 292.0f && angle < 337.0f) {
|
|
effectId = 0x57D;
|
|
} else if (angle >= 337.0f && angle <= 360.0f) {
|
|
effectId = 0x57C;
|
|
}
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
if (!g_effectMgr->Find(source->render.accountId, 0x5EF)) {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5EF, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
const int duration = static_cast<int>(source->render.speed * 100.0f + 100.0f);
|
|
CEffect* spawned = g_effectMgr->Spawn(source->render.accountId, effectId + 0x6F, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
}
|
|
} else {
|
|
if (!g_effectMgr->Find(source->render.accountId, 0x580)) {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x580, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
const int duration = static_cast<int>(source->render.speed * 100.0f + 100.0f);
|
|
CEffect* spawned = g_effectMgr->Spawn(source->render.accountId, effectId, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
}
|
|
}
|
|
effect = source->LaunchEffect(0x581, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
g_soundMgr->PlayWave("effect\\LG_CANNONSPEAR.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
}
|
|
case SR_GATEOFHELL:
|
|
g_effectMgr->Spawn(target->render.accountId, 0x626, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
effect = source->LaunchEffect(0x627, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
g_soundMgr->PlayWave("effect\\SR_GATEOFHELL.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SR_ASSIMILATEPOWER:
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\흡기.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SR_KNUCKLEARROW:
|
|
source->LaunchEffect(0x1C9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x37D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1CA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\SR_KNUCKLEARROW.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case WM_GREAT_ECHO:
|
|
effect = source->LaunchEffect(0x35F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1D2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\LG_EARTHDRIVE.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case LG_EARTHDRIVE:
|
|
g_soundMgr->PlayWave("effect\\LG_EARTHDRIVE.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case WM_SOUND_OF_DESTRUCTION:
|
|
effect = target->LaunchEffect(0x365, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\metalic.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case WM_REVERBERATION:
|
|
target->LaunchEffect(0x621, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x63A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\REVERBERATION.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case NPC_FATALMENACE:
|
|
case SC_STARTMARK: {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x574, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x575, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
const int duration = static_cast<int>(source->render.speed * 100.0f + 150.0f);
|
|
CEffect* spawned = g_effectMgr->Spawn(target->render.accountId, 0x572, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x573, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
break;
|
|
}
|
|
case SC_TRIANGLESHOT: {
|
|
const int duration = static_cast<int>(source->render.speed * 100.0f + 100.0f);
|
|
CEffect* spawned;
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x5B3, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x5B4, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
} else {
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x510, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x511, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
}
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(
|
|
0, 0x52C, source->render.position, target->render.accountId, -1, 0, 0
|
|
);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
break;
|
|
}
|
|
case NC_ANALYZE:
|
|
target->LaunchEffect(0x312, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NC_MAGNETICFIELD:
|
|
source->LaunchEffect(0x30D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NC_INFRAREDSCAN:
|
|
source->LaunchEffect(0x30C, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x31A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NC_VULCANARM: {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x6A7, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x6A8, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
CEffect* spawned = g_effectMgr->Spawn(target->render.accountId, 0x6A9, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetAngle(static_cast<float>(std::max(std::rand() % 36, 0)) * 10.0f);
|
|
}
|
|
source->LaunchEffect(0x308, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
}
|
|
case NC_PILEBUNKER:
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
g_soundMgr->PlayWave("effect\\맹호경파산.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case NC_AXETORNADO:
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
if (g_effectMgr->Find(source->render.accountId, 0x5D6)) {
|
|
return;
|
|
}
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5D6, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5D7, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
} else {
|
|
if (g_effectMgr->Find(source->render.accountId, 0x553)) {
|
|
return;
|
|
}
|
|
g_effectMgr->Spawn(source->render.accountId, 0x553, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x554, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
}
|
|
break;
|
|
case NC_POWERSWING: {
|
|
float angle = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->CameraDesiredYaw() + source->render.angle;
|
|
if (angle >= 360.0f) {
|
|
angle -= 360.0f;
|
|
}
|
|
int effectId;
|
|
if (angle > 0.0f && angle < 90.0f) {
|
|
effectId = 0x6A5;
|
|
} else if (angle >= 90.0f && angle < 180.0f) {
|
|
effectId = 0x6A4;
|
|
} else if (angle >= 180.0f && angle < 270.0f) {
|
|
effectId = 0x6A3;
|
|
} else {
|
|
effectId = 0x6A2;
|
|
}
|
|
g_effectMgr->Spawn(target->render.accountId, effectId, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(target->render.accountId, 0x6A6, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
break;
|
|
}
|
|
case NC_AXEBOOMERANG:
|
|
g_effectMgr->Spawn(
|
|
source->render.accountId, 0x679, source->render.position, target->render.accountId, -1, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(target->render.accountId, 0x67C, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
break;
|
|
case SR_GENTLETOUCH_QUIET:
|
|
source->LaunchEffect(0x375, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\mon_탄지신통.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SR_DRAGONCOMBO:
|
|
source->LaunchEffect(0x375, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\SR_DRAGONCOMBO.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SR_TIGERCANNON:
|
|
g_effectMgr->Spawn(source->render.accountId, g_serviceOptions.Get(0xE5) ? 0x5FC : 0x52B, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
target->LaunchEffect(0x379, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\SR_TIGERCANNON.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SR_SKYNETBLOW:
|
|
if (!source->HasId(0x37A)) {
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x37A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\SR_SKYNETBLOW.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
target->LaunchEffect(0x224, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x226, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SR_RAMPAGEBLASTER:
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5B5, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5B6, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
source->LaunchEffect(0x609, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
} else {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x51E, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x51F, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
g_soundMgr->PlayWave("effect\\SR_RAMPAGEBLASTER.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case TK_COUNTER:
|
|
case SJ_FLASHKICK:
|
|
target->LaunchEffect(0x19F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = target->LaunchEffect(0x1AE, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case NPC_DRAGONBREATH:
|
|
case RK_DRAGONBREATH:
|
|
case RK_DRAGONBREATH_WATER:
|
|
g_soundMgr->PlayWave("dragon_breath.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SP_SWHOO:
|
|
target->LaunchEffect(0x1A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x4B6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = vector3d{0.0f, static_cast<float>(target->render.accountId), 0.0f};
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1AF, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1A1, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SJ_PROMINENCEKICK:
|
|
target->LaunchEffect(0x4C8, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1AD, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SU_SV_STEMSPEAR:
|
|
g_effectMgr->Spawn(0, 0x44D, source->render.position, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(
|
|
source->render.accountId, 0x44C, source->render.position, target->render.accountId, -1, 0, 0
|
|
);
|
|
break;
|
|
case MT_A_MACHINE: {
|
|
CEffect* machine = g_effectMgr->Find(source->render.accountId, 0x72F);
|
|
if (machine) {
|
|
static_cast<CAMachineEffect*>(machine)->PlayAttack();
|
|
}
|
|
CPlayer* player = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->player;
|
|
g_soundMgr->PlayWave(
|
|
"effect\\MT_A_MACHINE.wav", target->render.position.x - player->render.position.x, 0.0f, target->render.position.z - player->render.position.z,
|
|
250, 40, 1.0f, 0
|
|
);
|
|
break;
|
|
}
|
|
case SU_SVG_SPIRIT:
|
|
g_effectMgr->Spawn(
|
|
source->render.accountId, 0x468, source->render.position, target->render.accountId, -1, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x469, target->render.position, target->render.accountId, -1, 0, 0
|
|
);
|
|
break;
|
|
case HFLI_MOON:
|
|
if (level == 1) {
|
|
target->LaunchEffect(0x235, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
} else if (level == 2) {
|
|
target->LaunchEffect(0x236, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
} else {
|
|
target->LaunchEffect(0x237, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
case MH_SONIC_CRAW:
|
|
target->LaunchEffect(0x3C5, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MH_TINDER_BREAKER:
|
|
case MH_CBC:
|
|
case MH_EQC:
|
|
target->LaunchEffect(0x3C6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MH_MIDNIGHT_FRENZY:
|
|
target->LaunchEffect(0x3C7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MH_ERASER_CUTTER:
|
|
target->LaunchEffect(0x3C0, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case HFLI_SBR44:
|
|
target->LaunchEffect(0x237, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MER_INVINCIBLEOFF2:
|
|
target->LaunchEffect(0x407, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MH_XENO_SLASHER:
|
|
effect = source->LaunchEffect(0x43A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_CIRCLE_OF_FIRE:
|
|
target->LaunchEffect(0xFC, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x150, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_STONE_RAIN:
|
|
target->LaunchEffect(0x3B0, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_HURRICANE:
|
|
target->LaunchEffect(0x1D2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (!target->HasId(0x1CC)) {
|
|
target->LaunchEffect(0x1CC, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
case EL_WIND_SLASH:
|
|
g_soundMgr->PlayWave("effect\\기공포.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
effect = source->LaunchEffect(0x3AF, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_TIDAL_WEAPON:
|
|
target->LaunchEffect(0x3AE, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x1B7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_WATER_SCREW:
|
|
target->LaunchEffect(0x3AD, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_ICE_NEEDLE:
|
|
effect = target->LaunchEffect(0x1A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, 1, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_FIRE_ARROW:
|
|
effect = target->LaunchEffect(0x1F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, 1, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_FIRE_BOMB:
|
|
g_soundMgr->PlayWave("effect\\화염진.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
effect = source->LaunchEffect(0x18, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
target->LaunchEffect(0x11, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_FIRE_WAVE:
|
|
target->LaunchEffect(0x385, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x11, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\폭염룡.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case EL_SOLID_SKIN:
|
|
source->LaunchEffect(0xD6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0xD6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_WIND_STEP:
|
|
target->LaunchEffect(0x185, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_WATER_SCREEN:
|
|
source->LaunchEffect(0x1B9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1B9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_TYPOON_MIS:
|
|
g_soundMgr->PlayWave("effect\\맹호경파산.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
effect = source->LaunchEffect(0x3A7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_AQUAPLAY:
|
|
g_soundMgr->PlayWave("effect\\EF_FrostDiver2.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3B5, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_COOLER:
|
|
g_soundMgr->PlayWave("effect\\EF_FrostDiver.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3BA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_CHILLY_AIR:
|
|
g_soundMgr->PlayWave("effect\\EF_IceArrow1.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x37E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3B8, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_PETROLOGY:
|
|
g_soundMgr->PlayWave("_stonecurse.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3AA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3BD, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_CURSED_SOIL:
|
|
g_soundMgr->PlayWave("evil_cloud_hermit_attack.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3AA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3B9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_UPHEAVAL:
|
|
g_soundMgr->PlayWave("effect\\wizard_earthspike.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3AA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
target->LaunchEffect(0x3B6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_GUST:
|
|
g_soundMgr->PlayWave("effect\\EF_ThunderStorm.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3B3, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_BLAST:
|
|
g_soundMgr->PlayWave("effect\\EF_LightBolt1.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3B4, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_WILD_STORM:
|
|
g_soundMgr->PlayWave("effect\\EF_LightBolt3.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
target->LaunchEffect(0x3B7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_PYROTECHNIC:
|
|
g_soundMgr->PlayWave("effect\\EF_FireWall.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A8, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3BC, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_HEATER:
|
|
g_soundMgr->PlayWave("effect\\ef_firehit.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A8, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3BE, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_TROPIC:
|
|
g_soundMgr->PlayWave("effect\\EF_FireArrow1.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A8, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
target->LaunchEffect(0x3BB, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
}
|
|
}
|