I'm using the official rAthena JobMaster custom script and i've realized that, no matter which job i'd choose, it never gaves me the job relative weapon/item - i tested it with First classes, second classes, transclasses and third-classes.
So, i've started studying the script code yesterday, when rAthena compiles there is no error, but it simply doesnt gave me the item.
I would like to know how you guys would fix it. Here i Solved.
My Solution is described bellow:
Changed the Original Job_Change function last lines:
// Executes the actual jobchange and closes.
function Job_Change{.@previous_class=Class;.@to_cls= getarg(0);
next;
mes .NPCName$;
mes "You are now "+ callfunc("F_InsertArticle", jobname(.@to_cls))+"!";if(.@to_cls==Job_Novice_High&&.LastJob)
lastJob =Class;// Saves the lastJob for rebirth
jobchange .@to_cls;if(.@to_cls==Job_Novice_High)
resetlvl(1);elseif(.@to_cls==Job_Baby){
resetstatus;
resetskill;setSkillPoint,0;}
specialeffect2 EF_ANGEL2;
specialeffect2 EF_ELECTRIC;if(.@previous_class!=Class){if(.Platinum)
callfunc "F_GetPlatinumSkills";if(.GetJobEquip)Get_Job_Equip();}
close;// Always closes after the change}
To this way below... (the function for me is now out of the "IF" condition and before the ".Platinum" IF condition), it always gives the item:
// Executes the actual jobchange and closes.
function Job_Change{.@previous_class=Class;.@to_cls= getarg(0);
next;
mes .NPCName$;
mes "You are now "+ callfunc("F_InsertArticle", jobname(.@to_cls))+"!";if(.@to_cls==Job_Novice_High&&.LastJob)
lastJob =Class;// Saves the lastJob for rebirth
jobchange .@to_cls;if(.@to_cls==Job_Novice_High)
resetlvl(1);elseif(.@to_cls==Job_Baby){
resetstatus;
resetskill;setSkillPoint,0;}
specialeffect2 EF_ANGEL2;
specialeffect2 EF_ELECTRIC;Get_Job_Equip();if(.Platinum)
callfunc "F_GetPlatinumSkills";
close;// Always closes after the change}
Question
drakulya
Hello every body!
I hope you're all doing well.
I'm using the official rAthena JobMaster custom script and i've realized that, no matter which job i'd choose, it never gaves me the job relative weapon/item - i tested it with First classes, second classes, transclasses and third-classes.
So, i've started studying the script code yesterday, when rAthena compiles there is no error, but it simply doesnt gave me the item.
I would like to know how you guys would fix it. Here i Solved.
My Solution is described bellow:
Changed the Original Job_Change function last lines:
To this way below... (the function for me is now out of the "IF" condition and before the ".Platinum" IF condition), it always gives the item:
Hope it helps someone who needs.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.