summaryrefslogblamecommitdiff
path: root/npc/029-0/event.txt
blob: 4968696ec63b34ad69d55f6c7abdd6341327a1a8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                  
                                                      



















































                                                                                                                                                      
                                   
                            
                               
                          








                                
                                
                                   
 
                                        


                                 













                                        
                                     
                               
                                 


                             
 











                                          

                           













                                                               
                                                                      

                           


            
            
            
            


                                   
                                          
                               
                                  
                             








                                   
                                   
                                      
 
                                               


                                    













                                            
                                        
                                   
                                  


                                











                                             




                                                  


        
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Exclusive for Fires of Steam 2021 - When our OVH server datacenter got fire.

029-0,111,37,0	script	Alliance Hero#FoS	NPC_HALBERDBARBARIAN,{
    if (gettime(7) != 2021 || !$FIRESOFSTEAM) {
        disablenpc .name$;
        die(); end;
    }
    compareandsetq TulimsharQuest_DarkInvocator, 0, 4;
    mesn;
    mesq l("Sooo, the police station of Moubootaur Legends went ablaze. Constable Perry is too busy to monitor illegal operation on this continent.");
    next;
    mesn;
    mesq l("Therefore... Are you perhaps interested in some... illicit goods? %%p");
    next;
    select
        l("Show me what you got, noob."),
        l("Actually - Do you exchange goods even more illegal goods than this?"),
        l("Actually - Do you exchange illegal... research results?");
    mes "";
    if (@menu == 1) {
        closeclientdialog;
        openshop .name$;
        close;
    }
    else if (@menu == 2) {
        mesn;
        mesq l("Yes I do... I sell %s %s for the small amount of %s GP. Interested? %%%%p", fnum(.mobp), l("Monster Points"), fnum(.mobg));
        if (Zeny < .mobg) close;
        next;
        if (askyesno() == ASK_NO) close;
        if (Zeny < .mobg) { die(); close; }
        Zeny-=.mobg;
        Mobpt+=.mobp;
        mes "";
        mesn;
        mesq l("Hehehe... A pleasure doing business with you!");
    } else if (@menu == 3) {
        mesn;
        mesq l("Yes I do... I sell %s %s for the small amount of %s GP. Interested? %%%%p", fnum(.robp), l("Research Points"), fnum(.robg));
        if (Zeny < .robg) close;
        next;
        if (askyesno() == ASK_NO) close;
        if (Zeny < .robg) { die(); close; }
        Zeny-=.robg;
        Mobpt+=.robp;
        mes "";
        mesn;
        mesq l("Hehehe... A pleasure doing business with you!");
    }
    close;

OnInit:
	tradertype(NST_MARKET);
    .mobp=rand2(1000, 2500);
    .mobg=.mobp*rand2(100, 150)/10;
    .robp=rand2(900, 1200);
    .robg=.robp*rand2(80, 110);
    .distance=5;
    .sex=G_MALE;

    sellitem LeatherPatch, 800, 45;
    sellitem RawLog, -1, 40;
    sellitem WoodenLog, -1, 40;
    sellitem Coal, -1, 35;
    sellitem IronOre, -1, 30;
    sellitem CopperOre, -1, 20;
    sellitem LeadOre, -1, 15;
    sellitem TinOre, -1, 15;
    sellitem SilverOre, -1, 14;
    sellitem GoldOre, -1, 14;
    sellitem TitaniumOre, -1, 9;
    sellitem IridiumOre, -1, 6;
    sellitem PlatinumOre, -1, 3;
    sellitem EarthPowder, -1, 3;
    sellitem EverburnPowder, -1, 2;

    sellitem AncientBlueprint, 10000, 4;
    sellitem RustyKnife, -1, 5;
    sellitem TrainingWand, -1, 5;
    sellitem TrainingBow, -1, 5;

    sellitem AlchemyBlueprintA, -1, 5;
    sellitem AlchemyBlueprintB, -1, 4;
    sellitem AlchemyBlueprintC, -1, 3;
    sellitem AlchemyBlueprintD, -1, 2;
    sellitem AlchemyBlueprintE, -1, 1;

    sellitem EquipmentBlueprintA, -1, 5;
    sellitem EquipmentBlueprintB, -1, 4;
    sellitem EquipmentBlueprintC, -1, 3;
    sellitem EquipmentBlueprintD, -1, 2;
    sellitem EquipmentBlueprintE, -1, 1;

    sellitem ArcmageBoxset, 10000, 4;
    sellitem ScholarshipBadge, -1, 3;
    sellitem Bullet, -1, 90000;
    sellitem Lifestone,  -1, 800;
    sellitem Bread,  -1, 750;
    sellitem Cheese, -1, 400;
    sellitem Aquada, -1, 200;

    sellitem WhiteFur, -1, rand2(50);
    sellitem Piberries, -1, rand2(50);
    sellitem CherryCake, -1, rand2(50);
    sellitem LettuceLeaf, -1, rand2(50);
    sellitem BugLeg, -1, rand2(50);
    sellitem RoastedMaggot, -1, rand2(50);
    sellitem Moss, -1, rand2(50);
    sellitem AnimalBones, -1, rand2(40);
    sellitem Milk, -1, rand2(50);
    sellitem Mashmallow, -1, rand2(50);
    sellitem Dragonfruit, -1, rand2(50);

    if (gettime(7) != 2021)
        disablenpc .name$;

    if ($FIRESOFSTEAM && gettime(7) == 2021 &&!$@FOS_MOBDROP) {
        addmonsterdrop(Scar, DarkCrystal, 500);
        addmonsterdrop(Crafty, DarkCrystal, 500);
        addmonsterdrop(GiantMutatedBat, DarkCrystal, 550);
        addmonsterdrop(Forain, DarkCrystal, 500);
        addmonsterdrop(GreenDragon, DarkCrystal, 500);
        addmonsterdrop(EliteDuck, DarkCrystal, 550);
        addmonsterdrop(Terranite, DarkCrystal, 500);
        addmonsterdrop(JackO, DarkCrystal, 550);
        addmonsterdrop(RedSkullSlime, DarkCrystal, 500);
        addmonsterdrop(Michel, DarkCrystal, 500);
        addmonsterdrop(CopperSkullSlime, DarkCrystal, 500);
        addmonsterdrop(MonsterGeneral, DarkCrystal, 10000);
        setiteminfo(DarkCrystal, ITEMINFO_SELLPRICE, rand2(100, 200));
        $@FOS_MOBDROP=true;
    }
    end;

OnClock0001:
OnClock0601:
OnClock1201:
OnClock1801:
    .mobp=rand2(1000, 2500);
    .mobg=.mobp*rand2(100, 150)/10;

    restoreshopitem LeatherPatch, 800, 45;
    restoreshopitem RawLog, 40;
    restoreshopitem WoodenLog, 40;
    restoreshopitem Coal, 35;
    restoreshopitem IronOre, 30;
    restoreshopitem CopperOre, 20;
    restoreshopitem LeadOre, 15;
    restoreshopitem TinOre, 15;
    restoreshopitem SilverOre, 14;
    restoreshopitem GoldOre, 14;
    restoreshopitem TitaniumOre, 9;
    restoreshopitem IridiumOre, 6;
    restoreshopitem PlatinumOre, 3;
    restoreshopitem EarthPowder, 3;
    restoreshopitem EverburnPowder, 2;

    restoreshopitem AncientBlueprint, 10000, 4;
    restoreshopitem RustyKnife, 5;
    restoreshopitem TrainingWand, 5;
    restoreshopitem TrainingBow, 5;

    restoreshopitem AlchemyBlueprintA, 5;
    restoreshopitem AlchemyBlueprintB, 4;
    restoreshopitem AlchemyBlueprintC, 3;
    restoreshopitem AlchemyBlueprintD, 2;
    restoreshopitem AlchemyBlueprintE, 1;

    restoreshopitem EquipmentBlueprintA, 5;
    restoreshopitem EquipmentBlueprintB, 4;
    restoreshopitem EquipmentBlueprintC, 3;
    restoreshopitem EquipmentBlueprintD, 2;
    restoreshopitem EquipmentBlueprintE, 1;

    restoreshopitem ArcmageBoxset, 10000, 4;
    restoreshopitem ScholarshipBadge, 3;
    restoreshopitem Lifestone, 800;
    restoreshopitem Bullet, 90000;
    restoreshopitem Bread,  750;
    restoreshopitem Cheese, 400;
    restoreshopitem Aquada, 200;

    restoreshopitem WhiteFur, rand2(50);
    restoreshopitem Piberries, rand2(50);
    restoreshopitem CherryCake, rand2(50);
    restoreshopitem LettuceLeaf, rand2(50);
    restoreshopitem BugLeg, rand2(50);
    restoreshopitem RoastedMaggot, rand2(50);
    restoreshopitem Moss, rand2(50);
    restoreshopitem AnimalBones, rand2(40);
    restoreshopitem Milk, rand2(50);
    restoreshopitem Mashmallow, rand2(50);
    restoreshopitem Dragonfruit, rand2(50);
    end;

OnMinute02:
    if (gettime(7) != 2021 || !$FIRESOFSTEAM) end;
    donpcevent "Neko::OnClock2359";
    end;
}