Jump to content
  • 0

auto cast soul link when equiped


Question

Posted

Hello, im having problems with a custom item

i want to make it when equiped by a soul linker, it will auto cast its soul linker spirit on the player at lvl 5

this is my script

27159,Sea_Valkyrie_Helm,Sea_Valkyrie_Helm,5,,,0,,0,,1,0xFFFFFFFF,7,2,256,,1,1,1559,{ if(Class==Job_Soul_Linker) { bonus bMatkRate,15; } },{ sc_start4 SL_SOULLINKER,60000,10,0,0,1; },{ sc_end SL_SOULLINKER; }

Also i need a similar to make auto-cast a soul link to the player's job when equiped, help please i just can not figure it out ):

6 answers to this question

Recommended Posts

Posted (edited)

http://www.eathena.ws/board/index.php?s=&showtopic=239234&view=findpost&p=1304857

 

use Annie's script

 

 

function    script    soullink    {
    switch ( basejob ) {
        case Job_Alchemist:    set .@spirit, 445; break;
        case Job_Monk:     set .@spirit, 447; break;
        case Job_Star_Gladiator:  set .@spirit, 448; break;
        case Job_Sage:     set .@spirit, 449; break;
        case Job_Crusader:    set .@spirit, 450; break;
        case Job_SuperNovice:   set .@spirit, 451; break;
        case Job_Knight:    set .@spirit, 452; break;
        case Job_Wizard:    set .@spirit, 453; break;
        case Job_Priest:    set .@spirit, 454; break;
        case Job_Bard: case Job_Dancer: set .@spirit, 455; break;
        case Job_Rogue:     set .@spirit, 456; break;
        case Job_Assassin:    set .@spirit, 457; break;
        case Job_Blacksmith:   set .@spirit, 458; break;
        case Job_Hunter:    set .@spirit, 460; break;
        case Job_Soul_Linker:   set .@spirit, 461; break;
        default:
            if ( upper == 1 && baselevel < 70 )
                set .@spirit, 494;
    }
    if ( .@spirit ) {
        sc_start4 sc_spirit, 360000, 5, .@spirit,0,0;
        skilleffect .@spirit, 5;
    }

    end;
}

 

 

27159,............{}{callfunc "soullink";}{}
Edited by QQfoolsorellina
  • Upvote 1
Posted (edited)

is not working ):

 

27159,Sea_Valkyrie_Helm,Sea_Valkyrie_Helm,5,,,0,,0,,1,0xFFFFFFFF,7,2,256,,1,1,1559,{ if(Class==Job_Soul_Linker) { bonus bMatkRate,15; } },{callfunc "soullink";},{ }

 

i also tryied

 

27159,Sea_Valkyrie_Helm,Sea_Valkyrie_Helm,5,,,0,,0,,1,0xFFFFFFFF,7,2,256,,1,1,1559,{ if(Class==Job_Soul_Linker) { bonus bMatkRate,15; } },{ callfunc "soullink"; },{ }

 

edit:

 

o it works now, but it gives link to every char, how can i make it only for soul linker?

Edited by Patskie
Posted


27159,...,{ if(Class==Job_Soul_Linker) { bonus bMatkRate,15; } },{ if(Class==Job_Soul_Linker) { sc_start4 sc_spirit, 360000, 5, 461,0,0; skilleffect 461, 5; } },{ }

Posted (edited)
27159,...,{ if(Class==Job_Soul_Linker) { bonus bMatkRate,15; } },{ if(Class==Job_Soul_Linker) { sc_start4 sc_spirit, 360000, 5, 461,0,0; skilleffect 461, 5; } },{ }

it says

fc9.png

and is not working ):

 

that's the code

27159,Sea_Valkyrie_Helm,Sea_Valkyrie_Helm,5,,,0,,0,,1,0xFFFFFFFF,7,2,256,,1,1,1559,{ if(Class==Job_Soul_Linker) { bonus bMatkRate,15; } },{ if(Class==Job_Soul_Linker) { sc_start4 sc_spirit, 360000, 5, 461,0,0; skilleffect 461, 5; } },{ }

):

Edited by Kido

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...