summaryrefslogblamecommitdiff
path: root/npc/annuals/xmas/2021.txt
blob: 8a24652f637abf19e9d7c18c779b9d80d8edd11f (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                            



                                                            



                                                     

                                         

 








                                                                   
                                                            


                                                                     


                                                         

                                                 


           

                                                 

                         



                           
                                   

 
// TMW Script.
// Author:
//    Jesusalva
// Notes:
//    Christmas 2021 - Configuration Files

function	script	X21ID	{
    return (getcharid(1) > 0 ? getcharid(1) : getcharid(3));
}

function	script	X21ID2	{
    return (getcharid(1) > 0 ? getcharid(1) : getcharid(0));
}

function	script	X21TYPE	{
    return (getcharid(1) > 0 ? IOT_PARTY : IOT_CHAR);
}

function	script	X21ED1_CLEAR	{
    return (XMAS2021 & X21_ALYSSARESCUE);
}

function	script	X21ED1_DOCLEAR	{
    XMAS2021 = (XMAS2021 | X21_ALYSSARESCUE);
    return;
}

function	script	X21INIT	{
    .@inst = instance_create("Northen Lights", X21ID(), X21TYPE());
    // Instance must be created
    if (.@inst >= 0) {
        // We... Could use base name, actually, but whatever
        instance_attachmap("081-2", .@inst, false, "0812@"+X21ID2());
        instance_attachmap("081-3", .@inst, false, "0813@"+X21ID2());
        instance_attachmap("080-3", .@inst, false, "0803@"+X21ID2());
		instance_set_timeout(1800, 1800, .@inst);
		instance_init(.@inst);
    }
    if (instance_id() >= 0)
		instance_set_timeout(1800, 1800);
    return;
}

/* You cannot fiddle with party in this region */
080-1	mapflag	partylock
//081-1	mapflag	partylock
081-2	mapflag	partylock
081-3	mapflag	partylock

/* Secure regions */
081-3	mapflag	zone	MMO
081-3	mapflag	nosave	081-1,68,31