summaryrefslogblamecommitdiff
path: root/npc/functions/dungeon.txt
blob: 0e83bed49837646492d16d13bb7eadb91fb9887b (plain) (tree)


































                                                                              
// TMW2 Script
// Authors:
//    Jesusalva
// Description:
//    Dungeon utilities

-	script	#DungeonCore	NPC_HIDDEN,{
    end;

// Main initialization
OnInit:
    setarray .heatmap$, "007-2";
    end;

// Heartbeat for Heat effects
OnHeat:
    // Did you left?
    .@i=array_find(.heatmap$, getmap());
    if (.@i < 0) {
        @heat$="";
        end;
    }

    // First time seeing this
    if (@heat$ != getmap()) {
        @heat$=getmap();
        dispbottom l("This is a hot map, you're suffering damage over time.");
    }

    // You are in a HEATMAP$, so suffer damage from heat
    percentheal -5, 0;
    addtimer2 5000, .name$+"::OnHeat";
    end;
}