Jump to content
  • 0

WL_JACKFROST no damage after changing TargetType from Attack to Self


OffGrid

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  05/29/20
  • Last Seen:  

Hello guys, i'm very new to creating a server but i've been trying to search for answers for the last few days and couldn't find one regarding my issue.

I just changed WL_JACKFROST with a TargetType of "Attack" to "Self".

  - Id: 2204
    Name: WL_JACKFROST
    Description: Jack Frost
    MaxLevel: 5
    Type: Magic
    TargetType: Self
    DamageFlags:
      Splash: true
    Range: 11
    Hit: Multi-Hit
    HitCount: -5
    Element: Water
    SplashArea:
      - Level: 1
        Area: 5
      - Level: 2
        Area: 6
      - Level: 3
        Area: 7
      - Level: 4
        Area: 8
      - Level: 5
        Area: 9
    CopyFlags:
      Skill:
        Reproduce: true
    CastCancel: true
    CastTime:
      - Level: 1
        Time: 2000
      - Level: 2
        Time: 2500
      - Level: 3
        Time: 3000
      - Level: 4
        Time: 3500
      - Level: 5
        Time: 4000
    AfterCastActDelay: 1000
    Duration1:
      - Level: 1
        Time: 12500
      - Level: 2
        Time: 17500
      - Level: 3
        Time: 22500
      - Level: 4
        Time: 27500
      - Level: 5
        Time: 32500
    Cooldown: 0
    FixedCastTime: 1000
    Requires:
      SpCost:
        - Level: 1
          Amount: 50
        - Level: 2
          Amount: 60
        - Level: 3
          Amount: 70
        - Level: 4
          Amount: 80
        - Level: 5
          Amount: 90

Then i'm getting the error "skill_castend_pos2: Unknown skill used:2204"

Any ideas on what's causing it? Any help is appreciated thanks.

  

image.png

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  04/10/21
  • Last Seen:  

Have you been able to solve the problem?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   1
  • Joined:  04/06/21
  • Last Seen:  

Estou com o mesmo problema, alguém ja descobriu como resolver?

I have the same problem, someone already discovery how to fix?

 

Com ajuda do @Rodrigo Dias do rAthena Brasil encontrei a solução.

With the help of @Rodrigo Dias from rAthena Brasil I found the solution.

Basta diffar os arquivos

Just diff these Files

 src/map/battle.cpp
 src/map/skill.cpp 
 src/map/status.cpp

Conforme abaixo:

As below

battle.cpp

Procurar essa parte:

Found that part

skillratio += -100 + 200 + 100 * skill_lv;
                         RE_LVL_DMOD(100);
                         break;
Insert   case WL_JACKFROST:
                     case NPC_JACKFROST:
                         if (tsc && tsc->data[SC_FREEZING]) {

Procure no mesmo arquivo por:

RE_LVL_DMOD(150);
                         }
                         break;
Delete                   case WL_JACKFROST:
Delete                   if (tsc && tsc->data[SC_MISTY_FROST])
Delete                skillratio += -100 + 1200 + 600 * skill_lv;
Delete                 else
Delete                 skillratio += -100 + 1000 + 300 * skill_lv;
Delete                 RE_LVL_DMOD(100);
Delete                  break;
                     case WL_DRAINLIFE:

 

skill.cpp

Procure por:

Look for:

    case NPC_COMET:
         sc_start4(src,bl,SC_BURNING,100,skill_lv,1000,src->id,0,skill_get_time(skill_id,skill_lv));
         break;
Insert  case WL_JACKFROST:
     case NPC_JACKFROST:
         sc_start(src,bl,SC_FREEZE,200,skill_lv,skill_get_time(skill_id,skill_lv));
         break;

no mesmo arquivo

In the same file

            clif_skill_fail(sd,skill_id,USESKILL_FAIL_TOTARGET,0);
         break;
 
Insert    case WL_JACKFROST:
     case NPC_JACKFROST:
         clif_skill_nodamage(src,bl,skill_id,skill_lv,1);

 

status.cpp

Procure por:

Look for:

/* Warlock */
     add_sc( WL_WHITEIMPRISON    , SC_WHITEIMPRISON    );
     set_sc_with_vfx( WL_FROSTMISTY    , SC_FREEZING        , EFST_FROSTMISTY        , SCB_ASPD|SCB_SPEED|SCB_DEF );
Insira aqui    add_sc( WL_JACKFROST        , SC_FREEZE          );
     set_sc( WL_MARSHOFABYSS        , SC_MARSHOFABYSS    , EFST_MARSHOFABYSS    , SCB_AGI|SCB_DEX|SCB_SPEED );
     set_sc( WL_RECOGNIZEDSPELL    , SC_RECOGNIZEDSPELL    , EFST_RECOGNIZEDSPELL    , SCB_MATK);
     add_sc( WL_SIENNAEXECRATE   , SC_STONE          );

 

Salve as alterações e recopile o emulador.

Save and copile the emulator

Edited by Fulleh
Translate for English
  • MVP 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...