Jump to content
  • 0
greenieken

False Apprentice Suit

Question

Hi. Can somebody please help me to fix my item_db2 script, what i wanted to do is to change the appearance to baby job when wearing an item. but it seems that what i did is wrong. help pls.

Below is what i tried to do in my item_db

 

Spoiler

{
    Id: 29318
    AegisName: "False_Apprentice"
    Name: "False Apprentice"
    Type: 5
    Weight: 100
    Def: 5
    Slots: 1
    Loc: 136
    Script: <"     if (BaseJob == Job_Knight) { OnEquipScript: <" changebase Job_Knight; "> }
    else if (BaseJob == Job_Priest) {        OnEquipScript: <" changebase Job_Priest; ">    } 
    else if (BaseJob == Job_Wizard) {        OnEquipScript: <" changebase Job_Wizard; ">    }
    else if (BaseJob == Job_Blacksmith) {        OnEquipScript: <" changebase Job_Blacksmith; ">    } 
    else if (BaseJob == Job_Hunter) {        OnEquipScript: <" changebase Job_Hunter; ">    } 
    else if (BaseJob == Job_Assassin) {        OnEquipScript: <" changebase Job_Assassin; ">    } 
    else if (BaseJob == Job_Crusader) {        OnEquipScript: <" changebase Job_Crusader; ">    } 
    else if (BaseJob == Job_Monk) {        OnEquipScript: <" changebase Job_Monk; ">    } 
    else if (BaseJob == Job_Sage) {        OnEquipScript: <" changebase Job_Sage; ">    } 
    else if (BaseJob == Job_Rogue) {        OnEquipScript: <" changebase Job_Rogue; ">    } 
    else if (BaseJob == Job_Alchemist) {        OnEquipScript: <" changebase Job_Alchemist; ">    } 
    else if (BaseJob == Job_Bard) {        OnEquipScript: <" changebase Job_Bard; ">    } 
    else if (BaseJob == Job_Dancer) {        OnEquipScript: <" changebase Job_Dancer; ">    } 
    else end; 
    ">
    OnUnequipScript: <" changebase Class; ">
    Refine: false
},

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You should use OnEquipScript for that. And don't use multiple <""> only one per thing.

Like dis.

...
...
OnEquipScript: <"
  if (....)
    dothis();
  else if (....)
    dothat();
">
OnUnequipScript: <" changebase(Class); ">
...
...

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.