greenieken 0 Posted August 15, 2017 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 }, Quote Share this post Link to post Share on other sites
0 bWolfie 138 Posted August 15, 2017 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); "> ... ... Quote Share this post Link to post Share on other sites
0 greenieken 0 Posted August 15, 2017 Thanks man! Should not also use OnEquipScript repeatedly. Thanks @Myriad!! Quote Share this post Link to post Share on other sites
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
{
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