summaryrefslogblamecommitdiff
path: root/npc/003-3/malindou.txt
blob: 564c7ed3a159d91a605baa2e65b291bbf394b550 (plain) (tree)
1
2
3
4
5
6
7
8
9
                

           
               
         

                                                                                 

                                                   
                                       


          

                  



                                                         
                           






                                                             











                                                                             
 
















                                                


               
                       
                        





                                           
// TMW-2 Script.
// Author:
//    Saulc
//    Jesusalva
// Notes:
//    Tulim banker, and also handles PCLogin events: CheckClientVersion, and bank
//    Take care of server updates, but instances are defined on their ships.

003-3,36,34,0	script	Malindou	NPC_LLOYD,{
    Banker(.name$, "Tulimshar", 15000);
    close;

OnInit:
    .sex = G_MALE;
    .distance = 4;

    // Update handler (use `date +%s` for this)
    // Current UPDATE value: Qui Jun  7 08:10:55 -03 2018
    if ($UPDATE  < 1528369855) {
        $UPDATE=1528369855;
        debugmes "Warning.";
        debugmes "Warning.";
        debugmes "Warning: This introduces a server update:";
        debugmes "";
        debugmes "* Please create the imported guild";
        debugmes "";
    }
    // Current UPDATE value: Dom Jun 17 21:32:45 -03 2018
    if ($UPDATE < 1529281965) {
        $UPDATE=1529281965;
    }




    // This mensures Contributors Credits, and changes only during updates.
    // All names in lower case. Max value is 1'000'000. Non-TMW2 contributors
    // should be disregarded if they're not involved with the project.
    // See 003-2/lua.txt for rewards

    $@CONTRIBUTORS = htnew;
    htput($@CONTRIBUTORS, "jesusalva", 1000000);
    htput($@CONTRIBUTORS, "saulc", 1000000);
    htput($@CONTRIBUTORS, "lawncable", 1020);
    htput($@CONTRIBUTORS, "polaczka", 500);
    htput($@CONTRIBUTORS, "soren", 500);
    htput($@CONTRIBUTORS, "crazyfefe", 120);
    htput($@CONTRIBUTORS, "ayruss", 120);
    htput($@CONTRIBUTORS, "rakinorf", 100);
    htput($@CONTRIBUTORS, "ichigoblack", 100);
    htput($@CONTRIBUTORS, "acsvln", 100);
    htput($@CONTRIBUTORS, "skydragon", 100);
    htput($@CONTRIBUTORS, "dustman", 100);
    htput($@CONTRIBUTORS, "4144", 100);
    htput($@CONTRIBUTORS, "pookie", 20);
    htput($@CONTRIBUTORS, "dragonstar", 20);
    //htput($@CONTRIBUTORS, "", 1);
    end;

OnPCLoginEvent:
    checkclientversion;
    if (#MerchantBank) {
        BankVault += max(0, #MerchantBank);
        #MerchantBank = 0;
    }
    end;
}