// ***** Completed Professions System by Oxxy (C) 2015, XXRO ***** \\ // Professions that will be available: // Primary Professions: // Herbalism -- Needed for alchemy // Mining -- Needed for blacksmithing and jewelcrafting // Skinning -- Needed for blacksmithing // Blacksmithing // Jewelcrafting // Alchemy // Secondary Professions: // Cooking // Fishing // Archaeology /* Returning values */ /* Returns 1 if the profession was successfully taken */ /* Returns -1 if something wrong happens */ /* Take profession function. */ /* Will set your profession to null and also nullify your level and skill of that profession */ /* How to use: */ /* callfunc("Take_Profession",(1/2/3)); */ /* If getarg(0) == 1, it will take first primary profession */ /* If getarg(0) == 2, it will take second primary profession */ /* If getarg(0) == 3, it will take secondary profession */ function script takeProfession { switch(getarg(0)) { case 1: // Primary First Profession Profession_1$ = ""; Profession_1_Level = 0; Profession_1_Skill = 0; return 1; case 2: // Primary Second Profession Profession_2$ = ""; Profession_2_Level = 0; Profession_2_Skill = 0; return 1; case 3: // Secondary Profession Profession_3$ = ""; Profession_3_Level = 0; Profession_3_Skill = 0; return 1; default: return -1; } return; }