viewing paste Unknown #21089 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
// ***** 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;
 
}
Viewed 711 times, submitted by Guest.