viewing paste Login Settings v1 | 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
//===== eAthena Script =======================================
//= OnLogin AtCommand Settings
//===== By ===================================================
//= lllchrislll
//===== Version ==============================================
//= 1.0
//===== Compatible With ======================================
//= Every eAthena Version
//===== Description ==========================================
//= This script will be executing AtCommands on Login,
//= depending on what you have put.
//===== Comments =============================================
//= None yet.....
//============================================================
prontera,139,173,5  script  Login Settings  57,{
set .@n$,"[Login Settings]";
 
mes .@n$;
mes "Hello, "+strcharinfo(0);
mes "What setting do you want to change?";
menu "Autoloot ["+( (login_loot)? "^00BB22On^000000" : "^FF2200Off^000000")+"]",auto_loot,
     "Main Chat ["+( (login_main)? "^00BB22On^000000" : "^FF2200Off^000000")+"]",main_chat,
     "@NoAsk ["+( (login_noask)? "^00BB22On^000000" : "^FF2200Off^000000")+"]",no_ask;
 
    auto_loot:
    next;
    mes .@n$;
    mes "Status: "+( (login_loot) ? "^00BB22On^000000" : "^FF2200Off^000000");
    menu "I want to "+((!login_loot) ? "^00BB22enable^000000" : "^FF2200disable^000000")+" it.",-,"Nothing",L_quit;
 
    next;
    mes .@n$;
    if(login_loot == 0) {
        mes "Autoloot is now ^00BB22On^000000.";
        set login_loot,1;
        atcommand strcharinfo(0) + "@autoloot";
        
    } else if(login_loot == 1) {
        mes "Autoloot is now ^FF2200Off^000000.";
        set login_loot,0;
        atcommand strcharinfo(0) + "@autoloot off";
    }
    close;
    
    main_chat:
    next;
    mes .@n$;
    mes "Status: "+( (login_main) ? "^00BB22On^000000" : "^FF2200Off^000000");
    menu "I want to "+((!login_main) ? "^00BB22enable^000000" : "^FF2200disable^000000")+" it.",-,"Nothing",L_quit;
 
    next;
    mes .@n$;
    if(login_main == 0) {
        mes "Main Chat is now ^00BB22On^000000.";
        set login_main,1;
        atcommand strcharinfo(0) + "@main";
        
    } else if(login_main == 1) {
        mes "Main Chat is now ^FF2200Off^000000.";
        set login_main,0;
        atcommand strcharinfo(0) + "@main off";
    }
    close;
    
    no_ask:
    next;
    mes .@n$;
    mes "Status: "+( (login_noask) ? "^00BB22On^000000" : "^FF2200Off^000000");
    menu "I want to "+((!login_noask) ? "^00BB22enable^000000" : "^FF2200disable^000000")+" it.",-,"Nothing",L_quit;
 
    next;
    mes .@n$;
    if(login_noask == 0) {
        mes "@noask is now ^00BB22On^000000.";
        set login_noask,1;
        atcommand strcharinfo(0) + "@noask";
        
    } else if(login_noask == 1) {
        mes "@noask is now ^FF2200Off^000000.";
        set login_noask,0;
        atcommand strcharinfo(0) + "@noask off";
    }
    close;
    
    L_quit:
    next;
    mes .@n$;
    mes "See ya.";
    close;
 
OnPCLoginEvent:
if(login_loot == 1) {
    atcommand strcharinfo(0) + "@autoloot";
    dispbottom "Autoloot is now On.";
}
if(login_main == 1) {
    atcommand strcharinfo(0) + "@main";
    dispbottom "Main Chat is now On.";
}
if(login_noask == 1) {
    atcommand strcharinfo(0) + "@noask";
    dispbottom "@noask is now On.";
}
end;
}
Viewed 869 times, submitted by Guest.