func InitializePlayer(int iPlayer) { _inherited(); var pClonk; if(GetPlayerTeam(iPlayer) == 1) { pClonk = CreateObject(JAFA,0,0,iPlayer); pClonk -> Enter(FindObject(GOEB,0,0,LandscapeWidth(),LandscapeHeight()/2)); MakeCrewMember(pClonk,iPlayer); CreateContents(FLAG,pClonk); SetCursor(iPlayer,pClonk); pClonk = CreateObject(JAFA,0,0,iPlayer); pClonk -> Enter(FindObject(GOEB,0,0,LandscapeWidth(),LandscapeHeight()/2)); MakeCrewMember(pClonk,iPlayer); } if(GetPlayerTeam(iPlayer) == 2) { pClonk = CreateObject(WRAT,0,0,iPlayer); pClonk -> Enter(FindObject(GOEB,0,LandscapeHeight()/2,LandscapeWidth(),LandscapeHeight()/2)); MakeCrewMember(pClonk,iPlayer); CreateContents(FLAG,pClonk); SetCursor(iPlayer,pClonk); pClonk = CreateObject(WRAT,0,0,iPlayer); pClonk -> Enter(FindObject(GOEB,0,LandscapeHeight()/2,LandscapeWidth(),LandscapeHeight()/2)); MakeCrewMember(pClonk,iPlayer); } }
void Window_Item::Refresh() { std::vector<int> party_items; data.clear(); Main_Data::game_party->GetItems(party_items); for (size_t i = 0; i < party_items.size(); ++i) { if (this->CheckInclude(party_items[i])) { data.push_back(party_items[i]); } } if (CheckInclude(0)) { data.push_back(0); } item_max = data.size(); CreateContents(); if (index > 0 && index >= item_max) { --index; } contents->Clear(); for (int i = 0; i < item_max; ++i) { DrawItem(i); } }
void wxHtmlHelpController::RefreshLists() { if (m_Frame) { CreateContents(); CreateIndex(); m_SearchList -> Clear(); } }
bool C4Object::CreateContentsByList(C4IDList &idlist) { int32_t cnt,cnt2; for (cnt=0; idlist.GetID(cnt); cnt++) for (cnt2=0; cnt2<idlist.GetCount(cnt); cnt2++) if (!CreateContents(C4Id2Def(idlist.GetID(cnt)))) return false; return true; }
void Window_ShopBuy::Refresh() { data = Game_Temp::shop_goods; item_max = data.size(); CreateContents(); contents->Clear(); Rect rect(0, 0, contents->GetWidth(), contents->GetHeight()); contents->Clear(); for (size_t i = 0; i < data.size(); ++i) { DrawItem(i); } }
global func FxPotionSupplyTimer(pTarget) { if(!Random(50) || GetCon(pTarget) !=100) return(); var i,p; for(i=0; i<ObjectCount(0,0,0,0,0,0,0,0,pTarget); ++i) { if(Contents(i, pTarget)->~IsPotion()) p++; } if(p>3) return(0); var rnd=Random(8); if(!rnd--) if(!FindContents(PFIR, pTarget)) CreateContents(PFIR, pTarget); if(!rnd--) if(!FindContents(PFIS, pTarget)) CreateContents(PFIS, pTarget); if(!rnd--) if(!FindContents(PHEA, pTarget)) CreateContents(PHEA, pTarget); if(!rnd--) if(!FindContents(PIMM, pTarget)) CreateContents(PIMM, pTarget); if(!rnd--) if(!FindContents(PMAN, pTarget)) CreateContents(PMAN, pTarget); if(!rnd--) if(!FindContents(PMON, pTarget)) CreateContents(PMON, pTarget); if(!rnd--) if(!FindContents(PSTO, pTarget)) CreateContents(PSTO, pTarget); if(!rnd--) if(!FindContents(PWIP, pTarget)) CreateContents(PWIP, pTarget); return(1); }
public func Activate(oCaller, oClonk) { if(!oClonk) oClonk = oCaller; // Effekt prüfen var iChkEff; if (iChkEff = CheckEffect("WarmPSpell", oExtiObj, 180)) return(iChkEff!=-1 && RemoveObject()); // Nächstes gerforenes Objekt finden var oExtiObj, iExtiCount, pObj; // Den Clonk selbst? if(Frozen(oClonk)) iExtiCount += DoUnfreeze(oClonk, oCaller); else if(oClonk->~MagicWarm(1800)) iExtiCount += DoUnfreeze(oClonk, oCaller); else if(pObj = Contents(0,oClonk)) if(GetID(pObj)==METL) if(GetDefHeight(ANML)) { RemoveObject(pObj); CreateContents(ANML, oClonk); return(RemoveObject()); } // Nächstliegende Objekte SetPosition(GetX(oCaller), GetY(oCaller)); // Suchradius ist abhängig von Höhe des Aufrufenden - ein Zauberturm hat einen größeren Radius var iSearchRadius = GetObjHeight(oCaller) * 3; while(oExtiObj = FindObject(0, 0, 0, -1, -1, 0, 0, 0, 0, oExtiObj)) if(ObjectDistance(oCaller, oExtiObj) > iSearchRadius) break; else if(Frozen(oExtiObj)) iExtiCount += DoUnfreeze(oExtiObj, oCaller); else if (oExtiObj->~MagicUnfreeze(oCaller)) iExtiCount += DoUnfreeze(oExtiObj, oCaller); // Irgendwas erwärmt? if (!iExtiCount) { Message("$NoUnfreeze$", oClonk); RemoveObject(); return 0; } // Einmaliger Effekt pro Zauber Sound("Inflame"); return(true); }
void Window_Skill::Refresh() { data.clear(); const std::vector<int16_t>& skills = Game_Actors::GetActor(actor_id)->GetSkills(); for (size_t i = 0; i < skills.size(); ++i) { if (CheckInclude(skills[i])) data.push_back(skills[i]); } CreateContents(); contents->Clear(); if (data.size() == 0) { data.push_back(0); } item_max = data.size(); for (int i = 0; i < item_max; ++i) { DrawItem(i); } }
func InitializePlayer(int plr) { CreateMatSys(plr); // fill with material var msys = GetMatSys(plr); msys->DoFill(4, WOOD); msys->DoFill(10, METL); msys->DoFill(7, ROCK); //Flints CreateContents(FLNT, GetHiRank(plr), 2); var team = GetPlayerTeam(plr); var pos = GetStartPosition(team); if(GetLength(GetPlayersByTeam(team)) == 1) { CreateStartMaterial(pos[0], pos[1], plr); } var tank = FindObject2(Find_ID(STMT), Find_Allied(plr)); tank->DoFill(100); var i = 0, clonk; while(clonk = GetCrew(plr, i++)) clonk->Enter(tank); }
func ControlDigDouble(pCaller) { CreateContents(PTRC, pCaller); RemoveObject(light); RemoveObject(); }
func InitializeObjects() { CreateObject(Ambience); var Rule_BaseRespawn001 = CreateObject(Rule_BaseRespawn); Rule_BaseRespawn001->SetInventoryTransfer(true); Rule_BaseRespawn001->SetFreeCrew(true); CreateObject(Rule_NoPowerNeed); CreateObject(Rule_TeamAccount); CreateObjectAbove(EnvPack_Scarecrow, 1218, 440); CreateObjectAbove(EnvPack_Guidepost, 835, 369); CreateObject(EnvPack_TreeTrunks, 808, 368); CreateObjectAbove(SproutBerryBush, 1154, 445); var Branch001 = CreateObject(Branch, 1509, 657); Branch001->SetR(-26); CreateObjectAbove(Trunk, 1194, 454); CreateObjectAbove(Tree_Coconut, 1487, 669); var Tree_Coniferous001 = CreateObject(Tree_Coniferous, 1068, 363); Tree_Coniferous001->SetR(6); CreateObjectAbove(Tree_Coniferous, 1371, 576); CreateObjectAbove(Tree_Coniferous, 1258, 470); var Tree_Coniferous002 = CreateObject(Tree_Coniferous, 1302, 464); Tree_Coniferous002->SetR(30); CreateObjectAbove(Tree_Coniferous, 1219, 441); CreateObjectAbove(EnvPack_Guidepost, 2054, 521); CreateObjectAbove(Trunk, 2631, 589); CreateObjectAbove(SproutBerryBush, 2599, 590); CreateObjectAbove(SproutBerryBush, 2521, 582); CreateObject(SproutBerryBush, 3332, 645); CreateObjectAbove(SproutBerryBush, 2674, 593); var Branch002 = CreateObject(Branch, 2335, 600); Branch002->SetR(21); CreateObjectAbove(BigRock, 3273, 609); var LargeCaveMushroom001 = CreateObjectAbove(LargeCaveMushroom, 2877, 1342); LargeCaveMushroom001->SetClrModulation(0xffe1dde0); var LargeCaveMushroom002 = CreateObjectAbove(LargeCaveMushroom, 3101, 1371); LargeCaveMushroom002->SetClrModulation(0xffdde4da); var LargeCaveMushroom003 = CreateObjectAbove(LargeCaveMushroom, 2971, 1339); LargeCaveMushroom003->SetClrModulation(0xffe0eef5); var LargeCaveMushroom004 = CreateObjectAbove(LargeCaveMushroom, 2793, 1261); LargeCaveMushroom004->SetClrModulation(0xffdcd2ed); CreateObjectAbove(Tree_Coconut, 1822, 679); CreateObjectAbove(Tree_Coniferous2, 2567, 583); CreateObjectAbove(Tree_Coniferous2, 2107, 528); var Tree_Coniferous2001 = CreateObject(Tree_Coniferous2, 1409, 544); Tree_Coniferous2001->SetR(20); CreateObjectAbove(Tree_Coniferous2, 1157, 449); CreateObjectAbove(Tree_Coniferous, 1102, 432); var Tree_Coniferous2002 = CreateObject(Tree_Coniferous2, 1032, 358); Tree_Coniferous2002->SetR(-8); CreateObjectAbove(Tree_Coniferous3, 2359, 624); CreateObjectAbove(Tree_Coniferous3, 2424, 609); CreateObjectAbove(Flower, 907, 399); CreateObjectAbove(Flower, 997, 408); CreateObjectAbove(Flower, 938, 407); CreateObjectAbove(Flower, 1404, 599); var Flower005 = CreateObject(Flower, 1322, 533); Flower005->SetR(50); var Flower006 = CreateObject(Flower, 1328, 541); Flower006->SetR(50); var Flower007 = CreateObject(Flower, 1311, 523); Flower007->SetR(50); var Flower008 = CreateObjectAbove(Flower, 2600, 592); Flower008->SetSkin(2); var Flower009 = CreateObject(Flower, 2578, 574); Flower009->SetR(20); Flower009->SetSkin(2); CreateObject(Basement, 758, 370); CreateObject(Basement, 464, 368); CreateObject(Basement, 93, 391); CreateObject(Basement, 618, 370); CreateObject(Basement, 733, 369); CreateObject(Basement, 581, 370); CreateObject(Basement, 2758, 612); CreateObject(Basement, 2796, 613); CreateObject(Basement, 2837, 612); CreateObject(Basement, 3233, 603); CreateObject(Basement, 3205, 604); CreateObject(Basement, 3171, 603); CreateObject(Basement, 3061, 620); CreateObject(Basement, 3019, 618); CreateObject(Basement, 2967, 600); CreateObject(Basement, 2935, 600); CreateObject(Basement, 2897, 599); CreateObject(Basement, 2720, 611); var Foundry002 = CreateObjectAbove(Foundry, 944, 782); var Foundry001 = CreateObjectAbove(Foundry, 2958, 596); g_chemical = CreateObjectAbove(ChemicalLab, 734, 365); g_chemical.StaticSaveVar = "g_chemical"; g_cabin = CreateObjectAbove(WoodenCabin, 546, 367); g_cabin.StaticSaveVar = "g_cabin"; g_sawmill = CreateObjectAbove(Sawmill, 782, 366); g_sawmill.StaticSaveVar = "g_sawmill"; CreateObjectAbove(Pump, 466, 363); g_workshop = CreateObjectAbove(ToolsWorkshop, 609, 365); g_workshop.StaticSaveVar = "g_workshop"; var ToolsWorkshop001 = CreateObjectAbove(ToolsWorkshop, 2905, 595); CreateObjectAbove(Castle_ConstructionSite, 281, 343); CreateObjectAbove(Kitchen, 3030, 615); CreateObjectAbove(InventorsLab, 3212, 599); var Shipyard001 = CreateObjectAbove(Shipyard, 2763, 608); CreateObjectAbove(Loom, 3080, 616); var StoneDoor001 = CreateObject(StoneDoor, 540, 1244); StoneDoor001->SetComDir(COMD_Down); var SpinWheel001 = CreateObjectAbove(SpinWheel, 571, 1263); SpinWheel001->SetStoneDoor(StoneDoor001); g_windmill = CreateObjectAbove(Windmill, 665, 351); g_windmill->SetCategory(C4D_StaticBack); g_windmill.StaticSaveVar = "g_windmill"; g_flagpole = CreateObjectAbove(Flagpole, 502, 369); g_flagpole.StaticSaveVar = "g_flagpole"; g_flagpole->SetNeutral(true); CreateObjectAbove(WindGenerator, 3163, 599); var Elevator001 = CreateObjectAbove(Elevator, 76, 387); Elevator001->SetDir(DIR_Right); Elevator001->CreateShaft(530); Elevator001->SetCasePosition(905); var Elevator002 = CreateObjectAbove(Elevator, 985, 782); Elevator002->CreateShaft(30); Elevator002->SetCasePosition(800); var Lorry001 = CreateObject(Lorry, 25, 771); Lorry001->SetR(11); var Lorry002 = CreateObject(Lorry, 3188, 591); Lorry002->SetR(6); Lorry002->SetRDir(7); var Catapult001 = CreateObjectAbove(Catapult, 2795, 608); Catapult001->SetRDir(-5); Catapult001->SetObjectLayer(Catapult001); npc_newton = CreateObjectAbove(Clonk, 226, 321); npc_newton->SetColor(0xffff); npc_newton->SetName("Newton"); npc_newton->SetObjectLayer(npc_newton); npc_newton.StaticSaveVar = "npc_newton"; npc_newton->SetDir(DIR_Left); npc_lara = CreateObjectAbove(Clonk, 300, 337); npc_lara->SetColor(0xff0000); npc_lara.StaticSaveVar = "npc_lara"; npc_lara->SetName("Lara"); npc_lara->SetObjectLayer(npc_lara); npc_lara->SetSkin(1); npc_lara->SetDir(DIR_Left); npc_lisa = CreateObjectAbove(Clonk, 496, 367); npc_lisa->SetColor(0xff00); npc_lisa.StaticSaveVar = "npc_lisa"; npc_lisa->SetName("Lisa"); npc_lisa->SetObjectLayer(npc_lisa); npc_lisa->SetSkin(3); npc_lisa->SetDir(DIR_Left); npc_woody = CreateObjectAbove(Clonk, 782, 367); npc_woody->SetColor(0x808000); npc_woody.StaticSaveVar = "npc_woody"; npc_woody->SetName("Woody"); npc_woody->SetObjectLayer(npc_woody); npc_woody->SetSkin(2); npc_woody->SetDir(DIR_Left); npc_rocky = CreateObjectAbove(Clonk, 98, 774); npc_rocky->SetDir(DIR_Right); npc_rocky->SetColor(0x808080); npc_rocky.StaticSaveVar = "npc_rocky"; npc_rocky->SetName("Rocky"); npc_rocky->SetObjectLayer(npc_rocky); npc_rocky->SetSkin(2); npc_mave = CreateObjectAbove(Clonk, 973, 783); npc_mave->SetDir(DIR_Right); npc_mave->SetColor(0xff8000); npc_mave->SetName("Mave"); npc_mave->SetObjectLayer(npc_mave); npc_mave.StaticSaveVar = "npc_mave"; npc_pyrit = CreateObjectAbove(Clonk, 2816, 607); npc_pyrit->SetColor(0xff0000); npc_pyrit.StaticSaveVar = "npc_pyrit"; npc_pyrit->SetName("Pyrit"); npc_pyrit->SetObjectLayer(npc_pyrit); npc_pyrit->SetSkin(2); npc_pyrit->SetDir(DIR_Left); npc_clonko = CreateObjectAbove(Clonk, 2934, 595); npc_clonko->SetDir(DIR_Right); npc_clonko->SetColor(0xff8000); npc_clonko->SetName("Clonko"); npc_clonko->SetObjectLayer(npc_clonko); npc_clonko.StaticSaveVar = "npc_clonko"; npc_matthi = CreateObjectAbove(Clonk, 3002, 613); npc_matthi->SetColor(0x80ff00); npc_matthi->SetName("Matthi"); npc_matthi->SetObjectLayer(npc_matthi); npc_matthi.StaticSaveVar = "npc_matthi"; npc_matthi->SetDir(DIR_Left); npc_dora = CreateObjectAbove(Clonk, 3178, 1367); npc_dora->SetDir(DIR_Right); npc_dora->SetColor(0xffff20); npc_dora.StaticSaveVar = "npc_dora"; npc_dora->SetName("Dora"); npc_dora->SetObjectLayer(npc_dora); npc_dora->SetSkin(3); CreateObjectAbove(Fish, 1889, 728); CreateObjectAbove(Fish, 1879, 726); var Mosquito001 = CreateObjectAbove(Mosquito, 2292, 514); Mosquito001->SetXDir(-6); Mosquito001->SetCommand("Call", Mosquito001, nil, 0, nil, "MissionComplete"); var Sickle001 = npc_matthi->CreateContents(Sickle); npc_matthi->SetDialogue("Matthi",true); var Hammer001 = npc_clonko->CreateContents(Hammer); npc_clonko->SetDialogue("Clonko",true); var Hammer002 = npc_pyrit->CreateContents(Hammer); var Hammer003 = npc_pyrit->CreateContents(Hammer); npc_pyrit->SetDialogue("Pyrit",true); var Bucket001 = npc_mave->CreateContents(Bucket); npc_mave->SetDialogue("Mave",false); var Hammer004 = npc_newton->CreateContents(Hammer); npc_newton->SetDialogue("Newton",true); npc_lara->SetDialogue("Lara",true); npc_lisa->SetDialogue("Lisa",true); var Axe001 = npc_woody->CreateContents(Axe); npc_woody->SetDialogue("Woody",true); var Pickaxe001 = npc_rocky->CreateContents(Pickaxe); npc_rocky->SetDialogue("Rocky",true); npc_dora->SetDialogue("Dora",true); CreateObjectAbove(Skull, 1566, 703); CreateObjectAbove(Skull, 3124, 1378); CreateObject(Rock, 685, 593); CreateObject(Rock, 793, 487); CreateObject(Rock, 1244, 514); CreateObject(Rock, 1480, 734); CreateObject(Rock, 794, 894); CreateObject(Rock, 311, 446); CreateObject(Rock, 1243, 791); CreateObject(Rock, 1231, 736); CreateObject(Rock, 563, 921); CreateObject(Rock, 1219, 1087); CreateObject(Rock, 428, 1318); CreateObject(Rock, 2100, 950); CreateObject(Rock, 1922, 1160); CreateObject(Rock, 2277, 967); CreateObject(Rock, 2405, 695); CreateObject(Rock, 2893, 988); CreateObject(Rock, 3131, 688); CreateObject(Rock, 3266, 1378); CreateObjectAbove(Ore, 2226, 943); Foundry001->CreateContents(Ore, 3); CreateObject(Loam, 1030, 446); CreateObject(Loam, 1122, 917); CreateObject(Loam, 1492, 801); CreateObjectAbove(Loam, 926, 1166); CreateObject(Loam, 456, 1001); CreateObject(Loam, 2315, 629); CreateObject(Loam, 2582, 787); CreateObject(Loam, 3056, 722); CreateObject(Loam, 3235, 789); CreateObject(Loam, 3167, 946); CreateObject(Loam, 2630, 1049); CreateObject(Loam, 3238, 1147); CreateObject(Loam, 2734, 1242); CreateObject(Loam, 3003, 1342); Foundry002->CreateContents(Loam, 2); CreateObject(Loam, 951, 1330); CreateObjectAbove(Loam, 970, 1355); CreateObjectAbove(Loam, 952, 1399); CreateObject(Loam, 808, 1333); CreateObject(Loam, 737, 1319); CreateObject(Loam, 652, 1277); CreateObject(Loam, 797, 1388); CreateObjectAbove(Loam, 1012, 1391); CreateObjectAbove(Loam, 492, 1263); CreateObjectAbove(Loam, 504, 1263); CreateObjectAbove(Loam, 500, 1263); CreateObjectAbove(Metal, 2217, 942); ToolsWorkshop001->CreateContents(Metal, 3); Shipyard001->CreateContents(Metal, 4); Lorry002->CreateContents(Metal, 2); CreateObject(Moss, 1529, 680); ToolsWorkshop001->CreateContents(Wood, 3); Shipyard001->CreateContents(Wood, 4); ToolsWorkshop001->CreateContents(Pickaxe, 2); Lorry001->CreateContents(Axe, 3); var Crate001 = CreateObjectAbove(Crate, 2836, 607); Crate001->CreateContents(Hammer); ToolsWorkshop001->CreateContents(Hammer, 2); Foundry002->CreateContents(Bucket, 3); CreateObjectAbove(Bucket, 435, 1271); CreateObjectAbove(Crate, 2849, 607); CreateObjectAbove(Crate, 444, 1271); CreateObjectAbove(Crate, 473, 1263); CreateObjectAbove(Crate, 403, 1271); var Barrel001 = Foundry002->CreateContents(Barrel); Barrel001->AddRestoreMode(Foundry002, 944, 757); Barrel001->SetColor(0xff000000); var Barrel002 = Foundry002->CreateContents(Barrel); Barrel002->AddRestoreMode(Foundry002, 944, 757); Barrel002->SetColor(0xff000000); var Barrel003 = CreateObject(Barrel, 484, 361); Barrel003->SetR(23); Barrel003->SetColor(0xff000000); Barrel003->SetObjectLayer(Barrel003); var Barrel004 = CreateObject(Barrel, 648, 345); Barrel004->SetR(-22); Barrel004->SetColor(0xff000000); Barrel004->SetObjectLayer(Barrel004); var Barrel005 = CreateObjectAbove(Barrel, 244, 321); Barrel005->SetColor(0xff000000); Barrel005->SetObjectLayer(Barrel005); var Barrel006 = CreateObjectAbove(Barrel, 396, 343); Barrel006->SetColor(0xff000000); Barrel006->SetObjectLayer(Barrel006); CreateObjectAbove(Mushroom, 1192, 448); CreateObjectAbove(Mushroom, 1170, 439); CreateObjectAbove(Mushroom, 1492, 663); CreateObjectAbove(Mushroom, 1131, 434); CreateObjectAbove(Mushroom, 1523, 674); CreateObjectAbove(Mushroom, 1163, 438); CreateObjectAbove(Mushroom, 1070, 414); CreateObjectAbove(Mushroom, 1010, 399); CreateObjectAbove(Mushroom, 960, 400); CreateObjectAbove(Mushroom, 1175, 440); CreateObjectAbove(Mushroom, 1120, 432); CreateObjectAbove(Mushroom, 989, 398); CreateObjectAbove(Mushroom, 968, 398); CreateObjectAbove(Mushroom, 1013, 399); CreateObjectAbove(Mushroom, 1496, 662); CreateObjectAbove(Mushroom, 1088, 423); CreateObjectAbove(Mushroom, 1545, 696); CreateObjectAbove(Mushroom, 1223, 438); CreateObjectAbove(Mushroom, 943, 399); CreateObjectAbove(Mushroom, 1006, 399); CreateObjectAbove(Seaweed, 1952, 903); CreateObjectAbove(Seaweed, 2013, 911); CreateObjectAbove(Seaweed, 1903, 887); CreateObjectAbove(Seaweed, 1983, 911); CreateObjectAbove(Seaweed, 2207, 942); CreateObjectAbove(Seaweed, 2127, 895); CreateObjectAbove(Seaweed, 2227, 943); CreateObjectAbove(Seaweed, 2191, 927); CreateObjectAbove(Seaweed, 2232, 943); CreateObjectAbove(Seaweed, 2269, 927); CreateObjectAbove(Seaweed, 2249, 935); CreateObjectAbove(DynamiteBox, 2844, 607); CreateObjectAbove(DynamiteBox, 452, 1271); var DynamiteBox001 = CreateObject(DynamiteBox, 430, 1269); DynamiteBox001->SetR(10); var MetalBarrel001 = CreateObjectAbove(MetalBarrel, 395, 1271); MetalBarrel001->SetColor(0xff000000); var MetalBarrel002 = CreateObject(MetalBarrel, 421, 1268); MetalBarrel002->SetR(-104); MetalBarrel002->SetColor(0xff000000); var MetalBarrel003 = CreateObjectAbove(MetalBarrel, 411, 1271); MetalBarrel003->SetColor(0xff000000); var MetalBarrel004 = CreateObjectAbove(MetalBarrel, 385, 1271); MetalBarrel004->SetColor(0xff000000); var PowderKeg001 = CreateObject(PowderKeg, 378, 1268); PowderKeg001->SetR(99); var WindBag001 = CreateObject(WindBag, 382, 1268); WindBag001->SetR(-29); CreateObject(Firestone, 1272, 961); CreateObject(Firestone, 1763, 900); CreateObject(Firestone, 1415, 708); CreateObject(Firestone, 772, 621); CreateObject(Firestone, 1196, 493); CreateObject(Firestone, 345, 692); Lorry002->CreateContents(Firestone, 2); CreateObject(Firestone, 2460, 1366); CreateObject(Firestone, 2893, 671); CreateObject(Firestone, 2998, 959); CreateObject(Firestone, 3266, 1172); CreateObject(Firestone, 2653, 1129); CreateObject(Firestone, 2410, 1165); CreateObject(Firestone, 2853, 1378); return true; }
global func DoInitialize() { if(fInitialized) return(); fInitialized = 1; fUseHungerThirst = 1; if(!FindObject(NOPC)) CreateObject(NOPC); if(fUseHungerThirst) if (!ObjectCount(NDWA)) CreateObject(NDWA, 50,50, -1); // Durst if(fUseHungerThirst) if (!ObjectCount(NDFO)) CreateObject(NDFO, 50,50, -1); // Hunger if(FindObject(_ETG)) RemoveObject(FindObject(_ETG)); if(FindObject(REPR)) RemoveObject(FindObject(REPR)); CreateObject(REPR, 50,50, -1); // Nachwuchs if(FindObject(TREP)) RemoveObject(FindObject(TREP)); CreateObject(TREP, 50,50, -1); // Baumnachwuchs // NPC's sollen Position halten var i, pObj; while(pObj = FindObjectOwner(0,-1,0,0,0,0,OCF_CrewMember,0,0,pObj)) AddEffect("StayThere",pObj,1,35,pObj); // if (!GetPlayerCount()) return(); // Banditen erstellen pObj = CreateObject(BNDT, 3917, 570, -1); pObj->SetAI("BanditNoMove", 3); pObj->SetColorDw(RGB(150)); pObj = CreateObject(BNDT, 4120, 560, -1); pObj->SetAI("BanditNoMove", 3); pObj->SetColorDw(RGB(150)); pObj = CreateObject(BNDT, 4175, 520, -1); pObj->SetAI("BanditNoMove", 3); pObj->SetColorDw(RGB(150)); pObj = CreateObject(BNDT, 4044, 477, -1); pObj->SetAI("BanditNoMove", 3); pObj->SetColorDw(RGB(150)); pObj = CreateObject(BNDT, 4309, 471, -1); pObj->SetAI("BanditBoss", 3); pObj->SetColorDw(RGB(150)); pObj->MakeBoss(); pObj->Enter(FindObject(MTNT, 4309, 471, -1, -1)); // Startmaterial erstellen pWagon = CreateObject(COAC, 28, 270, -1); pHorse = CreateObject(HORS, 77, 270, -1); pHorse->ConnectWagon(pWagon); SetDir(1, pWagon); SetDir(1, pHorse); // Startmaterial CreateContents(MEAC,pWagon,6); CreateContents(WHKY,pWagon,3); for(i=0; i<2; i++) { pObj = CreateContents(WSKI, pWagon); LocalN("iWater", pObj) = 90; pObj->~UpdateGraphics(); } CreateContents(MLLT,pWagon); CreateContents(KNFE,pWagon); CreateContents(IGNB,pWagon); CreateContents(DYNB,pWagon,2); CreateContents(METL,pWagon,7); CreateContents(WOOD,pWagon,21); CreateContents(CNKT,pWagon,4); CreateContents(LNKT,pWagon); // Höhle muss immer vom Indianer zu betreten sein! FreeRect(1970,589,40,9); // Brauchbare Gebäude mit unzerstörbarkeit belegen for(pObj in FindObjects(Find_Category(C4D_StaticBack|C4D_Structure|C4D_Vehicle),Find_Not(Find_Category(32768)),Find_InRect(1130,190,300,140))) AddEffect("NoDmg",pObj,200); for(pObj in FindObjects(Find_Category(C4D_StaticBack|C4D_Structure|C4D_Vehicle),Find_Func("IsIndianHandcraft"), Find_Or(Find_InRect(1830,230,560,340),Find_InRect(3190,160,670,360)))) AddEffect("NoDmg",pObj,200); // Weil die Kanone hier bearbeitet worden ist if(pObj = FindObject(CCAN)) pObj->~Initialize(); if(fTestSection==1) return(ChangeSection("AshCity")); if(fTestSection==2) return(ChangeSection("Caves")); // ... und los! if(!fTesting) ScriptGo(1); return(1); }
func InitializeObjects() { var Grass001 = CreateObjectAbove(Grass, 396, 1149); Grass001->SetClrModulation(0xffa08060); var Grass002 = CreateObjectAbove(Grass, 232, 1181); Grass002->SetClrModulation(0xffa08060); var Grass003 = CreateObjectAbove(Grass, 228, 1180); Grass003->SetClrModulation(0xffa08060); var Tree_Coniferous_Burned001 = CreateObject(Tree_Coniferous_Burned, 17, 1097); Tree_Coniferous_Burned001->SetR(10); var Tree_Coniferous001 = CreateObject(Tree_Coniferous, 415, 1117); Tree_Coniferous001->SetR(10); Tree_Coniferous001->SetClrModulation(0xffc08060); var Branch001 = CreateObject(Branch, 241, 1176); Branch001->SetR(17); var Fern001 = CreateObjectAbove(Fern, 312, 1432); Fern001->SetClrModulation(0xffa08060); var LargeCaveMushroom001 = CreateObjectAbove(LargeCaveMushroom, 1355, 1451); LargeCaveMushroom001->SetClrModulation(0xffcddfdf); var LargeCaveMushroom002 = CreateObject(LargeCaveMushroom, 1308, 1384); LargeCaveMushroom002->SetR(180); LargeCaveMushroom002->SetClrModulation(0xffdae7dc); var LargeCaveMushroom003 = CreateObjectAbove(LargeCaveMushroom, 1411, 1447); LargeCaveMushroom003->SetClrModulation(0xffe9d5dd); var LargeCaveMushroom004 = CreateObject(LargeCaveMushroom, 1420, 1374); LargeCaveMushroom004->SetR(160); LargeCaveMushroom004->SetClrModulation(0xffeaedfb); var Branch002 = CreateObject(Branch, 1430, 1417); Branch002->SetR(-25); var Lichen001 = CreateObjectAbove(Lichen, 1387, 1440); Lichen001->SetAction("Grown"); var Lichen002 = CreateObjectAbove(Lichen, 1310, 1456); Lichen002->SetAction("Grown"); var Lichen003 = CreateObjectAbove(Lichen, 1466, 1415); Lichen003->SetAction("Grown"); var Trunk001 = CreateObject(Trunk, 217, 1159); Trunk001->SetR(-10); var EnvPack_Bag001 = CreateObjectAbove(EnvPack_Bag, 846, 885); EnvPack_Bag001->SetClrModulation(0xffa0a0a0); CreateObjectAbove(EnvPack_Bag, 840, 888); CreateObjectAbove(EnvPack_Bag, 844, 888); CreateObjectAbove(EnvPack_BridgeRustic, 1096, 673); CreateObjectAbove(EnvPack_Candle, 1054, 672); CreateObjectAbove(EnvPack_Candle, 1054, 575); CreateObjectAbove(EnvPack_Candle, 1185, 616); CreateObjectAbove(EnvPack_Candle, 1531, 448); CreateObjectAbove(EnvPack_Candle, 1362, 432); CreateObjectAbove(EnvPack_CandleSmall, 1556, 432); CreateObjectAbove(EnvPack_Crate, 1017, 576); CreateObjectAbove(EnvPack_FenceRustic, 1111, 728); CreateObjectAbove(EnvPack_FenceRustic, 1089, 735); CreateObjectAbove(EnvPack_Guidepost, 315, 1167); CreateObjectAbove(EnvPack_Lantern, 894, 488); CreateObjectAbove(EnvPack_Lantern, 1291, 472); CreateObjectAbove(EnvPack_Painting, 1235, 537); CreateObjectAbove(EnvPack_Rail, 1121, 672); CreateObjectAbove(EnvPack_Scarecrow, 204, 1185); CreateObject(EnvPack_TreeTrunks, 788, 888); CreateObjectAbove(EnvPack_WineBarrel, 1438, 552); CreateObjectAbove(EnvPack_WineBarrel, 1455, 553); CreateObjectAbove(EnvPack_Candle, 1471, 552); g_king = CreateObjectAbove(Clonk, 1568, 431); g_king->SetDir(DIR_Right); g_king->SetCon(200); g_king->SetClrModulation(0xffff8000); g_king->SetObjectBlitMode(GFX_BLIT_Additive); g_king->SetName("Hörx"); g_king.MaxEnergy = 200000; g_king->DoEnergy(150); g_king.StaticSaveVar = "g_king"; AI->AddAI(g_king); AI->SetGuardRange(g_king, 1185, 342, 415, 136); AI->SetEncounterCB(g_king, "EncounterKing"); var Goal_Assassination001 = CreateObject(Goal_Assassination); Goal_Assassination001->SetVictim(g_king); CreateObject(Rule_TeamAccount); CreateObject(Rule_NoPowerNeed); var LargeCaveMushroom005 = CreateObjectAbove(LargeCaveMushroom, 1334, 1459); LargeCaveMushroom005->SetClrModulation(0xffd0dbdf); var LargeCaveMushroom006 = CreateObjectAbove(LargeCaveMushroom, 1396, 1451); LargeCaveMushroom006->SetClrModulation(0xffe7e6f0); var LargeCaveMushroom007 = CreateObjectAbove(LargeCaveMushroom, 1426, 1437); LargeCaveMushroom007->SetClrModulation(0xffcfcbe5); var Fern002 = CreateObject(Fern, 276, 1442); Fern002->SetCon(22); g_ruin1 = CreateObject(Ruin_WoodenCabin, 97, 1150); g_ruin1->SetR(16); g_ruin1.StaticSaveVar = "g_ruin1"; g_ruin2 = CreateObjectAbove(Ruin_Windmill, 353, 1145); g_ruin2.StaticSaveVar = "g_ruin2"; g_ruin3 = CreateObjectAbove(Ruin_ChemicalLab, 267, 1180); g_ruin3.StaticSaveVar = "g_ruin3"; CreateObjectAbove(Foundry, 238, 1287); var Chest002 = CreateObjectAbove(Chest, 1475, 1415); var Chest006 = CreateObjectAbove(Chest, 1574, 583); var Chest005 = CreateObjectAbove(Chest, 823, 887); var Chest001 = CreateObjectAbove(Chest, 856, 887); var Chest003 = CreateObjectAbove(Chest, 1032, 575); var Chest004 = CreateObjectAbove(Chest, 136, 103); var StoneDoor001 = CreateObject(StoneDoor, 940, 652); StoneDoor001->SetComDir(COMD_Down); var StoneDoor002 = CreateObject(StoneDoor, 1348, 508); StoneDoor002->SetComDir(COMD_Down); StoneDoor002->DoDamage(170); var StoneDoor003 = CreateObject(StoneDoor, 1347, 412); StoneDoor003->SetComDir(COMD_Down); StoneDoor003->DoDamage(170); var SpinWheel001 = CreateObjectAbove(SpinWheel, 961, 672); SpinWheel001->SetSwitchTarget(StoneDoor001); var SpinWheel002 = CreateObjectAbove(SpinWheel, 1367, 527); SpinWheel002->SetSwitchTarget(StoneDoor002); var SpinWheel003 = CreateObjectAbove(SpinWheel, 1384, 471); SpinWheel003->SetSwitchTarget(StoneDoor003); CreateObject(Column, 1197, 551); CreateObject(Column, 1218, 463); CreateObjectAbove(Idol, 1080, 575); var SteamEngine001 = CreateObjectAbove(SteamEngine, 1529, 585); var Flagpole001 = CreateObjectAbove(Flagpole, 135, 1182); Flagpole001->SetNeutral(true); g_elev2 = CreateObjectAbove(Elevator, 1366, 614); g_elev2.StaticSaveVar = "g_elev2"; g_elev2->CreateShaft(477); g_elev2->SetCasePosition(1079); g_elev1 = CreateObjectAbove(Elevator, 167, 1184); g_elev1.StaticSaveVar = "g_elev1"; g_elev1->SetClrModulation(0xffa08060); g_elev1->CreateShaft(95); g_elev1->SetCasePosition(1267); var Catapult001 = CreateObjectAbove(Catapult, 697, 887); Catapult001->SetRDir(-7); var Lorry001 = CreateObject(Lorry, 149, 1314); Lorry001->SetR(24); var Lorry002 = CreateObject(Lorry, 1425, 1244); Lorry002->SetR(-36); CreateObjectAbove(Airship_Burnt, 38, 1152); var Cannon001 = CreateObject(Cannon, 788, 669); Cannon001->SetR(30); g_cannon = CreateObjectAbove(Cannon, 994, 471); g_cannon.StaticSaveVar = "g_cannon"; CreateObjectAbove(Cannon, 1336, 336); var Clonk001 = CreateObjectAbove(Clonk, 673, 887); Clonk001->SetName("Horst"); AI->AddAI(Clonk001); AI->SetHome(Clonk001, 670, 878, DIR_Left); AI->SetGuardRange(Clonk001, 400, 800, 500, 150); AI->SetAllyAlertRange(Clonk001, 60); AI->SetEncounterCB(Clonk001, "EncounterOutpost"); Clonk001->SetDir(DIR_Left); var Clonk002 = CreateObjectAbove(Clonk, 710, 886); Clonk002->SetName("Hanniball"); AI->AddAI(Clonk002); AI->SetHome(Clonk002, 709, 877, DIR_Left); AI->SetGuardRange(Clonk002, 634, 809, 233, 104); AI->SetAllyAlertRange(Clonk002, 60); Clonk002->SetDir(DIR_Left); var Clonk003 = CreateObjectAbove(Clonk, 781, 670); Clonk003->SetDir(DIR_Right); Clonk003->SetName("Twonky"); AI->AddAI(Clonk003); AI->SetHome(Clonk003, 781, 663, DIR_Right); AI->SetGuardRange(Clonk003, 481, 511, 600, 300); var Clonk004 = CreateObjectAbove(Clonk, 1010, 670); Clonk004->SetDir(DIR_Right); Clonk004->SetName("Sven"); AI->AddAI(Clonk004); AI->SetHome(Clonk004, 1010, 663, DIR_Right); AI->SetGuardRange(Clonk004, 773, 619, 501, 78); var Clonk005 = CreateObjectAbove(Clonk, 984, 671); Clonk005->SetDir(DIR_Right); Clonk005->SetName("Luki"); AI->AddAI(Clonk005); AI->SetHome(Clonk005, 985, 663, DIR_Right); AI->SetGuardRange(Clonk005, 773, 621, 596, 146); var Clonk006 = CreateObjectAbove(Clonk, 1372, 1244); Clonk006->SetColor(0xffff0000); Clonk006->SetName("Anna"); Clonk006->SetSkin(1); AI->AddAI(Clonk006); AI->SetHome(Clonk006, 1370, 1237, DIR_Left); AI->SetGuardRange(Clonk006, 1150, 1140, 320, 150); AI->SetAllyAlertRange(Clonk006, 170); Clonk006->SetDir(DIR_Left); var Clonk007 = CreateObjectAbove(Clonk, 1448, 1246); Clonk007->SetColor(0xffff0000); Clonk007->SetName("Cindy"); Clonk007->SetSkin(1); AI->AddAI(Clonk007); AI->SetGuardRange(Clonk007, 1150, 1140, 320, 150); AI->SetAllyAlertRange(Clonk007, 170); AI->SetEncounterCB(Clonk007, "EncounterCave"); Clonk007->SetDir(DIR_Left); g_farmer = CreateObjectAbove(Clonk, 307, 1167); g_farmer->SetColor(0xff0000); g_farmer->SetClrModulation(0xffffa020); g_farmer->SetName("Farmer"); g_farmer.StaticSaveVar = "g_farmer"; g_farmer->SetDir(DIR_Left); var Clonk008 = CreateObjectAbove(Clonk, 1197, 550); Clonk008->SetDir(DIR_Right); Clonk008->SetName("Sabrina"); Clonk008->SetSkin(1); AI->AddAI(Clonk008); AI->SetHome(Clonk008, 1196, 542, DIR_Right); AI->SetGuardRange(Clonk008, 955, 472, 415, 299); var Clonk009 = CreateObjectAbove(Clonk, 1265, 551); Clonk009->SetName("Laura"); Clonk009->SetSkin(1); AI->AddAI(Clonk009); AI->SetHome(Clonk009, 1266, 541, DIR_Left); AI->SetGuardRange(Clonk009, 966, 391, 383, 283); Clonk009->SetDir(DIR_Left); var Clonk010 = CreateObjectAbove(Clonk, 1286, 470); Clonk010->SetDir(DIR_Right); AI->AddAI(Clonk010); AI->SetHome(Clonk010, 1287, 464, DIR_Right); AI->SetGuardRange(Clonk010, 987, 312, 367, 313); var Clonk011 = CreateObjectAbove(Clonk, 1092, 574); Clonk011->SetDir(DIR_Right); Clonk011->SetName("Wolfgang"); AI->AddAI(Clonk011); AI->SetHome(Clonk011, 1092, 567, DIR_Right); AI->SetGuardRange(Clonk011, 792, 416, 600, 300); var Clonk012 = CreateObjectAbove(Clonk, 1069, 574); Clonk012->SetDir(DIR_Right); Clonk012->SetName("Hans"); AI->AddAI(Clonk012); AI->SetHome(Clonk012, 1069, 566, DIR_Right); AI->SetGuardRange(Clonk012, 769, 416, 600, 300); var Clonk013 = CreateObjectAbove(Clonk, 1018, 470); Clonk013->SetDir(DIR_Right); Clonk013->SetName("Joki"); AI->AddAI(Clonk013); AI->SetHome(Clonk013, 1019, 462, DIR_Right); AI->SetGuardRange(Clonk013, 848, 293, 498, 319); var Clonk014 = CreateObjectAbove(Clonk, 285, 1182); Clonk014->Kill(Clonk014, true); Clonk014->SetDir(DIR_Right); Clonk014->SetColor(0xffff0000); var Clonk015 = CreateObjectAbove(Clonk, 208, 1183); Clonk015->Kill(Clonk015, true); Clonk015->SetDir(DIR_Right); Clonk015->SetColor(0xffff0000); g_cannoneer = CreateObjectAbove(Clonk, 1000, 471); g_cannoneer.StaticSaveVar = "g_cannoneer"; g_cannoneer->SetDir(DIR_Left); g_cannoneer->SetName("Brutus"); g_cannoneer->SetAlternativeSkin("Guard"); var Clonk016 = CreateObjectAbove(Clonk, 1317, 334); Clonk016->SetName("Archibald"); AI->AddAI(Clonk016); AI->SetGuardRange(Clonk016, 978, 231, 391, 244); Clonk016->SetDir(DIR_Left); CreateObject(Rock, 879, 1002); CreateObjectAbove(Rock, 262, 1182); CreateObjectAbove(Rock, 140, 1183); CreateObjectAbove(Rock, 48, 1151); CreateObject(Rock, 154, 1205); CreateObject(Rock, 154, 1205); CreateObjectAbove(Rock, 241, 1287); CreateObject(Rock, 338, 1256); CreateObject(Rock, 661, 1392); CreateObjectAbove(Rock, 813, 887); CreateObject(Rock, 893, 1290); CreateObject(Rock, 1248, 1087); CreateObject(Rock, 1334, 1011); CreateObject(Rock, 1268, 932); CreateObject(Rock, 1298, 795); CreateObject(Rock, 1501, 932); CreateObject(Rock, 1473, 675); CreateObject(Rock, 1367, 654); CreateObject(Rock, 1505, 1162); CreateObject(Rock, 1482, 1049); CreateObject(Rock, 1402, 1447); CreateObject(Rock, 1025, 1392); CreateObject(Rock, 742, 1521); CreateObject(Rock, 712, 1350); CreateObject(Rock, 1047, 1206); Clonk006->CreateContents(Rock, 3); CreateObject(Coal, 59, 1345); CreateObject(Coal, 156, 1369); CreateObject(Coal, 243, 1554); CreateObject(Coal, 61, 1494); CreateObject(Coal, 140, 1379); SteamEngine001->CreateContents(Coal, 3); CreateObject(Ore, 227, 1365); CreateObjectAbove(Ore, 64, 1421); CreateObject(Ore, 264, 1453); CreateObject(Ore, 462, 1478); CreateObject(Ore, 77, 1485); CreateObject(Ore, 1481, 1448); CreateObject(Ore, 1438, 1463); CreateObject(Ore, 1566, 1561); CreateObject(Nugget, 1079, 1216); CreateObject(Nugget, 1244, 1138); CreateObject(Nugget, 1156, 1163); CreateObject(Nugget, 1127, 1165); CreateObjectAbove(Wood, 19, 1135); CreateObjectAbove(Wood, 749, 1056); CreateObjectAbove(Wood, 168, 1512); Lorry001->CreateContents(Wood, 30); Chest001->CreateContents(Wood, 5); CreateObjectAbove(Wood, 346, 1456); CreateObjectAbove(Wood, 336, 1456); Lorry002->CreateContents(Wood, 5); Chest002->CreateContents(Wood, 7); Chest003->CreateContents(Wood, 5); CreateObjectAbove(Wood, 167, 1512); CreateObjectAbove(Wood, 177, 1512); CreateObjectAbove(Wood, 511, 1497); Lorry001->CreateContents(Loam); CreateObjectAbove(Loam, 199, 1287); CreateObjectAbove(Loam, 283, 1431); CreateObjectAbove(Loam, 372, 1391); CreateObjectAbove(Loam, 415, 1431); CreateObjectAbove(Loam, 484, 1487); CreateObjectAbove(Loam, 511, 1502); CreateObject(Loam, 37, 1271); CreateObjectAbove(Loam, 200, 1583); CreateObjectAbove(Loam, 356, 1559); CreateObject(Loam, 314, 1228); CreateObject(Loam, 921, 1284); CreateObject(Loam, 1042, 1389); CreateObject(Loam, 1180, 1575); CreateObjectAbove(Loam, 1481, 1415); CreateObjectAbove(Loam, 1527, 1406); CreateObject(Loam, 958, 980); CreateObject(Loam, 1267, 893); CreateObject(Loam, 892, 825); CreateObjectAbove(Loam, 1393, 1103); CreateObject(Loam, 1462, 1076); CreateObjectAbove(Loam, 1501, 1415); Chest001->CreateContents(Loam, 3); Chest004->CreateContents(Loam, 5); var GoldBar001 = CreateObject(GoldBar, 1293, 1235); GoldBar001->SetR(22); Lorry002->CreateContents(GoldBar, 2); CreateObjectAbove(Airship, 931, 495); Clonk001->CreateContents(Sword); Clonk007->CreateContents(Sword); Clonk004->CreateContents(Sword); Clonk005->CreateContents(Sword); Clonk012->CreateContents(Sword); Clonk010->CreateContents(Sword); g_king->CreateContents(Sword); Clonk002->CreateContents(Sword); Clonk001->CreateContents(Arrow, 2); Chest005->CreateContents(Arrow); Clonk013->CreateContents(Arrow, 2); var Arrow006 = Clonk003->CreateContents(Arrow); Arrow006->SetInfiniteStackCount(); Clonk001->CreateContents(Bow); Chest005->CreateContents(Bow); Clonk003->CreateContents(Bow); Clonk013->CreateContents(Bow); g_king->CreateContents(Bow); CreateObjectAbove(Boompack, 135, 1324); CreateObjectAbove(Boompack, 1498, 1414); CreateObjectAbove(Boompack, 1483, 1414); CreateObjectAbove(Boompack, 1491, 1415); var Boompack001 = Chest002->CreateContents(Boompack); Boompack001->AddRestoreMode(Chest002, 1473, 1403); var Boompack002 = Chest002->CreateContents(Boompack); Boompack002->AddRestoreMode(Chest002, 1473, 1403); Lorry001->CreateContents(DynamiteBox); Lorry002->CreateContents(DynamiteBox); Chest002->CreateContents(DynamiteBox, 2); Chest004->CreateContents(DynamiteBox); CreateObjectAbove(Dynamite, 1334, 1224); Lorry002->CreateContents(Pickaxe); Clonk006->CreateContents(Pickaxe); Clonk007->CreateContents(Pickaxe); Lorry001->CreateContents(Shovel); var Barrel001 = CreateObject(Barrel, 167, 1327); Barrel001->SetR(-13); Barrel001->SetColor(0xff000000); var Barrel002 = Chest002->CreateContents(Barrel); Barrel002->SetColor(0xff000000); CreateObjectAbove(Seaweed, 169, 1543); CreateObjectAbove(Seaweed, 815, 1342); CreateObjectAbove(Seaweed, 719, 1078); CreateObjectAbove(Seaweed, 772, 1087); CreateObjectAbove(Seaweed, 1258, 1279); var Seaweed001 = CreateObject(Seaweed, 592, 1425); Seaweed001->SetCon(1); var Seaweed002 = CreateObject(Seaweed, 652, 1304); Seaweed002->SetCon(1); var Seaweed003 = CreateObject(Seaweed, 182, 1575); Seaweed003->SetCon(1); var Seaweed004 = CreateObjectAbove(Seaweed, 353, 1558); Seaweed004->SetCon(1); var Seaweed005 = CreateObject(Seaweed, 435, 1239); Seaweed005->SetCon(1); var Seaweed006 = CreateObject(Seaweed, 461, 1252); Seaweed006->SetCon(1); var Seaweed007 = CreateObject(Seaweed, 490, 1303); Seaweed007->SetCon(1); var Seaweed008 = CreateObject(Seaweed, 515, 1365); Seaweed008->SetCon(1); CreateObjectAbove(Mushroom, 126, 1320); CreateObjectAbove(Mushroom, 212, 1288); CreateObjectAbove(Mushroom, 367, 1392); CreateObjectAbove(Mushroom, 268, 1432); CreateObject(Mushroom, 247, 1303); CreateObject(Mushroom, 384, 1419); var Mushroom001 = CreateObject(Mushroom, 184, 1314); Mushroom001->SetCon(98); var Mushroom002 = CreateObject(Mushroom, 195, 1314); Mushroom002->SetCon(95); var Mushroom003 = CreateObject(Mushroom, 215, 1315); Mushroom003->SetCon(92); var Mushroom004 = CreateObject(Mushroom, 205, 1296); Mushroom004->SetCon(46); var Mushroom005 = CreateObject(Mushroom, 409, 1436); Mushroom005->SetCon(33); var Mushroom006 = CreateObject(Mushroom, 396, 1410); Mushroom006->SetCon(13); Chest006->CreateContents(Blunderbuss); Chest006->CreateContents(LeadBullet, 3); Clonk009->CreateContents(Javelin, 3); Clonk008->CreateContents(Javelin, 3); Clonk012->CreateContents(Shield); Clonk010->CreateContents(Shield); g_king->CreateContents(Shield); Clonk016->CreateContents(Shield); Chest006->CreateContents(Shield); Chest003->CreateContents(Bread, 3); Chest004->CreateContents(Bread, 3); Chest006->CreateContents(Bread, 2); CreateObjectAbove(EnvPack_ManaAltar, 1052, 471); Chest002->CreateContents(Ropeladder, 2); g_king->CreateContents(BombArrow); Chest002->CreateContents(WallKit, 2); Chest002->CreateContents(Bucket, 2); Clonk016->CreateContents(GrenadeLauncher); Clonk016->CreateContents(IronBomb, 20); Catapult001->CreateContents(Firestone, 5); CreateObject(Firestone, 38, 1189); CreateObject(Firestone, 101, 1214); CreateObject(Firestone, 369, 1281); CreateObject(Firestone, 22, 1253); CreateObject(Firestone, 376, 1216); CreateObject(Firestone, 139, 1346); CreateObject(Firestone, 280, 1463); CreateObject(Firestone, 451, 1438); CreateObject(Firestone, 678, 1364); CreateObject(Firestone, 838, 1100); CreateObject(Firestone, 880, 1089); CreateObject(Firestone, 1022, 1225); CreateObject(Firestone, 1338, 1261); CreateObject(Firestone, 1144, 1407); CreateObject(Firestone, 1051, 1365); CreateObject(Firestone, 1328, 1486); CreateObject(Firestone, 1467, 1460); CreateObject(Firestone, 911, 980); CreateObject(Firestone, 1118, 765); CreateObject(Firestone, 948, 787); CreateObject(Firestone, 781, 910); CreateObject(Firestone, 1356, 805); CreateObject(Firestone, 1287, 851); Clonk006->CreateContents(Firestone, 2); Clonk007->CreateContents(Firestone); Chest001->CreateContents(Firestone, 3); Clonk011->CreateContents(Firestone, 4); Chest003->CreateContents(Firestone, 3); g_king->CreateContents(Firestone, 3); CreateObject(Rule_Gravestones); return true; }
func DoStartSzen() { RemoveAll(TIME); CreateObject(DARK,0,0,-1); CreateObject(TIME,0,0,-1); FindObjects( Find_Func("SetLightOff",1) ); FindObjects( Find_Func("SetLightOn") ); giPlrEnemy = 0; giPlrFriend = 1; gpIntroCandle1 = Object(302); gpIntroCandle2 = Object(303); gpIntroCandle3 = Object(301); gpIntroChandelier = Object(300); gpIntroTorch = Object(211); gDrawbridge = FindObject(CPT3); // Glühwürmchen erstellen CreateObject(FFAC, 627, 705, -1); CreateObject(FFAC, 1905, 770, -1); CreateObject(FFAC, 2170, 745, -1); CreateObject(FFAC, 2675, 490, -1); // Königin erstellen gNPCQueen = CreateObject( _PRC,0,0,giPlrFriend); MakeCrewMember( gNPCQueen, giPlrFriend ); gNPCQueen->SetPosition(40,660); gNPCQueen->SetDir(1); gNPCQueen->SetName("$NPCQueen$"); //AttachDialogue(gNPCQueen,""); // Hexe erstellen gNPCWitch = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCWitch, giPlrFriend ); gNPCWitch->~SetName("Frau"); gNPCWitch->~SetPosition(1170,750); AttachDialogue(gNPCWitch,"Alvelin"); CreateContents(TIM1,gNPCWitch); // a dummy such that he does not collect the last barrel after ejecting it CreateContents(LAXE,gNPCWitch); // lumberjack's axe for looting the witch // Schmied erstellen gNPCBlacksmith = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCBlacksmith, giPlrFriend ); gNPCBlacksmith->~SetName("Heinz"); gNPCBlacksmith->~SetPosition(1515,770); AttachDialogue(gNPCBlacksmith,"Heinz"); // Erfinder erstellen gNPCInventor = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCInventor, giPlrFriend ); gNPCInventor->~SetName("Ingalf"); gNPCInventor->SetPosition(865,800); AttachDialogue(gNPCInventor,"Ingalf"); // Bürger erstellen gNPCCitizen = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCCitizen, giPlrFriend ); gNPCCitizen->~SetName("Odilbert"); gNPCCitizen->SetPosition(1215,750); AttachDialogue(gNPCCitizen,"Odilbert"); // Abenteurer erstellen gNPCAdventurer1 = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCAdventurer1, giPlrFriend ); gNPCAdventurer1->~SetName("Gernot"); gNPCAdventurer1->SetPosition(2715,495); AttachDialogue(gNPCAdventurer1,"Gernot"); // Abenteurer erstellen gNPCAdventurer2 = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCAdventurer2, giPlrFriend ); gNPCAdventurer2->~SetName("Linnert"); gNPCAdventurer2->SetPosition(2740,495); AttachDialogue(gNPCAdventurer2,"Linnert"); // Farmer erstellen gNPCFarmer = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCFarmer, giPlrFriend ); gNPCFarmer->~SetName("Armin"); gNPCFarmer->SetPosition(1840,765); AttachDialogue(gNPCFarmer,"Armin"); AttachDayNightCycle(gNPCFarmer,"Armin"); CreateContents(TIM1,gNPCFarmer); // a dummy such that he does not collect items // Wirtin erstellen gNPCInnkeeper = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCInnkeeper, giPlrFriend ); gNPCInnkeeper->~SetName("Bernika"); gNPCInnkeeper->SetPosition(1315,750); AttachDialogue(gNPCInnkeeper,"Bernika"); // Dirne erstellen gNPCProstitute = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCProstitute, giPlrFriend ); gNPCProstitute->~SetName("Rovena"); gNPCProstitute->SetPosition(1435,770); AttachDialogue(gNPCProstitute,"Rovena"); // Wache erstellen gNPCGuard1 = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCGuard1, giPlrFriend ); gNPCGuard1->~SetName("Helmar"); gNPCGuard1->SetPosition(1615, 769); gNPCGuard1->SetDir(1); AttachDialogue(gNPCGuard1,"Helmar"); // Wache erstellen gNPCGuard2 = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCGuard2, giPlrFriend ); gNPCGuard2->~SetName("Eboreus"); gNPCGuard2->SetPosition(395,690); AttachDialogue(gNPCGuard2,"Eboreus"); // Wache erstellen gNPCGuard3 = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCGuard3, giPlrFriend ); gNPCGuard3->~SetName("Radulf"); gNPCGuard3->SetPosition(225, 448); AttachDialogue(gNPCGuard3,"Radulf"); // Holzfäller erstellen gNPCLumberjack = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCLumberjack, giPlrFriend ); gNPCLumberjack->~SetName("Answin"); gNPCLumberjack->SetPosition(2000,755); AttachDialogue(gNPCLumberjack,"Answin"); // Inuk erstellen gNPCInuk1 = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCInuk1, giPlrFriend ); gNPCInuk1->~SetName("Bardrik"); gNPCInuk1->SetPosition(3685,45); AttachDialogue(gNPCInuk1,"Bardrik"); // Inuk erstellen gNPCInuk2 = CreateObject( CLNK,0,0,giPlrFriend ); MakeCrewMember( gNPCInuk2, giPlrFriend ); gNPCInuk2->~SetName("Jallik"); gNPCInuk2->SetPosition(4465,340); AttachDialogue(gNPCInuk2,"Jallik"); // Er hat 3 Fischfässer CreateContents(TIM1,gNPCInuk2); // a dummy such that he does not collect the last barrel after ejecting it CreateContents(FBRL,gNPCInuk2); CreateContents(FBRL,gNPCInuk2); CreateContents(FBRL,gNPCInuk2); // Magier erstellen gNPCCourtmage = CreateObject( MAGE,0,0,giPlrFriend ); MakeCrewMember( gNPCCourtmage, giPlrFriend ); gNPCCourtmage->~SetName("Nestor"); gNPCCourtmage->SetPosition(200,480); AttachDialogue(gNPCCourtmage,"Nestor"); ////////////////////////////////////////////////////////////// // Bösen Magier erstellen gNPCGrandmaster = CreateObject( MAGE,0,0,giPlrEnemy ); MakeCrewMember( gNPCGrandmaster, giPlrEnemy ); gNPCGrandmaster->~SetName("OBW"); ////////////////////////////////////////////////////////////// // die Könige der KI-Spieler vernichten RemoveAll(KING); // erstellen //gNPC = CreateObject( CLNK,0,0,giPlrFriend ); //MakeCrewMember( gNPC, giPlrFriend ); //gNPC->~SetName(""); CreateQuest("MainQuest"); CreateQuest("Bandits"); CreateQuest("MissingLooters"); CreateQuest("KingsChalice"); CreateQuest("DeepTreasure"); CreateQuest("HuskyHunt"); CreateQuest("Lumberjack"); CreateQuest("SomethingFishy"); CreateQuest("Whipped"); CreateQuest("FunkyBread"); //GetStory()->~CreateQuests(); return; }
// Yield 1-2 extra wood func Split2Components(...) { CreateContents(Wood); if (GetCon() > 25) CreateContents(Wood); return inherited(...); }
func InitializeObjects() { var Rule_BaseRespawn01 = CreateObject(Rule_BaseRespawn, 0, 0); Rule_BaseRespawn01->SetInventoryTransfer(true); Rule_BaseRespawn01->SetFreeCrew(true); CreateObject(Grass, 1121, 429); CreateObject(Grass, 1185, 444); CreateObject(Rule_NoPowerNeed, 0, 0); CreateObject(Rule_TeamAccount, 0, 0); CreateObject(EnvPack_Scarecrow, 1218, 440); CreateObject(EnvPack_Guidepost, 835, 369); CreateObject(EnvPack_TreeTrunks, 808, 368); CreateObject(SproutBerryBush, 1154, 445); var Rank0012 = CreateObject(Rank, 1509, 664); Rank0012->SetR(-26); Rank0012->SetPosition(1509, 661); CreateObject(Trunk, 1194, 454); CreateObject(Tree_Coconut, 1487, 669); var Tree_Coniferous0018 = CreateObject(Tree_Coniferous, 1068, 408); Tree_Coniferous0018->SetR(6); Tree_Coniferous0018->SetPosition(1068, 363); var Tree_Coniferous0022 = CreateObject(Tree_Coniferous, 1032, 403); Tree_Coniferous0022->SetR(-8); Tree_Coniferous0022->SetPosition(1032, 358); CreateObject(Tree_Coniferous, 1371, 576); CreateObject(Tree_Coniferous, 1258, 470); CreateObject(Tree_Coniferous, 1085, 429); CreateObject(Tree_Coniferous, 1155, 441); var Tree_Coniferous0042 = CreateObject(Tree_Coniferous, 1302, 503); Tree_Coniferous0042->SetR(30); Tree_Coniferous0042->SetPosition(1302, 464); var Tree_Coniferous0046 = CreateObject(Tree_Coniferous, 1328, 541); Tree_Coniferous0046->SetR(20); Tree_Coniferous0046->SetPosition(1328, 499); CreateObject(Tree_Coniferous, 1219, 441); CreateObject(EnvPack_Guidepost, 2054, 521); CreateObject(Tree_Coniferous, 2107, 520); CreateObject(Tree_Coniferous, 2421, 612); CreateObject(Tree_Coniferous, 2569, 576); CreateObject(Trunk, 2631, 589); CreateObject(SproutBerryBush, 2599, 590); CreateObject(SproutBerryBush, 2521, 582); CreateObject(SproutBerryBush, 3332, 653); CreateObject(SproutBerryBush, 2674, 593); var Rank0084 = CreateObject(Rank, 2335, 607); Rank0084->SetR(21); Rank0084->SetPosition(2335, 604); CreateObject(BigRock, 3273, 609); var LargeCaveMushroom0086 = CreateObject(LargeCaveMushroom, 2877, 1342); LargeCaveMushroom0086->SetClrModulation(0xffe1dde0); var LargeCaveMushroom0090 = CreateObject(LargeCaveMushroom, 3101, 1371); LargeCaveMushroom0090->SetClrModulation(0xffdde4da); var LargeCaveMushroom0094 = CreateObject(LargeCaveMushroom, 2971, 1339); LargeCaveMushroom0094->SetClrModulation(0xffe0eef5); var LargeCaveMushroom0098 = CreateObject(LargeCaveMushroom, 2793, 1261); LargeCaveMushroom0098->SetClrModulation(0xffdcd2ed); CreateObject(Tree_Coconut, 1822, 679); var Basement0123 = CreateObject(Basement, 2720, 615); Basement0123->SetCategory(C4D_StaticBack); var Basement0122 = CreateObject(Basement, 2897, 603); Basement0122->SetCategory(C4D_StaticBack); var Basement0121 = CreateObject(Basement, 2935, 604); Basement0121->SetCategory(C4D_StaticBack); var Basement0120 = CreateObject(Basement, 2967, 604); Basement0120->SetCategory(C4D_StaticBack); var Basement0119 = CreateObject(Basement, 3019, 622); Basement0119->SetCategory(C4D_StaticBack); var Basement0118 = CreateObject(Basement, 3061, 624); Basement0118->SetCategory(C4D_StaticBack); var Basement0117 = CreateObject(Basement, 3171, 607); Basement0117->SetCategory(C4D_StaticBack); var Basement0116 = CreateObject(Basement, 3205, 608); Basement0116->SetCategory(C4D_StaticBack); var Basement0115 = CreateObject(Basement, 3230, 609); Basement0115->SetCategory(C4D_StaticBack); var Basement0114 = CreateObject(Basement, 2837, 616); Basement0114->SetCategory(C4D_StaticBack); var Basement0113 = CreateObject(Basement, 2796, 617); Basement0113->SetCategory(C4D_StaticBack); var Basement0112 = CreateObject(Basement, 2758, 616); Basement0112->SetCategory(C4D_StaticBack); var Basement0111 = CreateObject(Basement, 581, 374); Basement0111->SetCategory(C4D_StaticBack); var Basement0110 = CreateObject(Basement, 733, 373); Basement0110->SetCategory(C4D_StaticBack); var Basement0109 = CreateObject(Basement, 618, 374); Basement0109->SetCategory(C4D_StaticBack); var Basement0108 = CreateObject(Basement, 93, 395); Basement0108->SetCategory(C4D_StaticBack); var Basement0107 = CreateObject(Basement, 464, 372); Basement0107->SetCategory(C4D_StaticBack); var Basement0106 = CreateObject(Basement, 758, 374); Basement0106->SetCategory(C4D_StaticBack); var Foundry0124 = CreateObject(Foundry, 944, 782); var Foundry0127 = CreateObject(Foundry, 2958, 596); g_chemical = CreateObject(ChemicalLab, 734, 365); g_chemical.StaticSaveVar = "g_chemical"; g_cabin = CreateObject(WoodenCabin, 546, 367); g_cabin.StaticSaveVar = "g_cabin"; g_sawmill = CreateObject(Sawmill, 782, 366); g_sawmill.StaticSaveVar = "g_sawmill"; CreateObject(Pump, 466, 363); g_workshop = CreateObject(ToolsWorkshop, 609, 365); g_workshop.StaticSaveVar = "g_workshop"; var ToolsWorkshop0139 = CreateObject(ToolsWorkshop, 2905, 595); CreateObject(Castle_ConstructionSite, 281, 343); CreateObject(Kitchen, 3030, 615); CreateObject(InventorsLab, 3212, 599); var Shipyard0146 = CreateObject(Shipyard, 2763, 608); CreateObject(Loom, 3080, 616); var StoneDoor0150 = CreateObject(StoneDoor, 540, 1263); StoneDoor0150->SetComDir(COMD_Down); var SpinWheel0151 = CreateObject(SpinWheel, 571, 1263); SpinWheel0151->SetStoneDoor(StoneDoor0150); var WindGenerator0269 = CreateObject(WindGenerator, 3163, 599); WindGenerator0269->SetCategory(C4D_StaticBack); g_flagpole = CreateObject(Flagpole, 502, 369); g_flagpole->SetNeutral(true); g_flagpole.StaticSaveVar = "g_flagpole"; g_windmill = CreateObject(Windmill, 665, 351); g_windmill->SetCategory(C4D_StaticBack); g_windmill.StaticSaveVar = "g_windmill"; var Elevator0361 = CreateObject(Elevator, 76, 387); Elevator0361->SetDir(DIR_Right); Elevator0361->CreateShaft(530); Elevator0361->SetCasePosition(905); var Lorry0369 = CreateObject(Lorry, 25, 779); Lorry0369->SetR(11); Lorry0369->SetPosition(25, 771); var Lorry0371 = CreateObject(Lorry, 3188, 598); var Catapult0373 = CreateObject(Catapult, 2795, 608); Catapult0373->SetRDir(4); Catapult0373->SetObjectLayer(Catapult0373); npc_newton = CreateObject(Clonk, 226, 321); npc_newton->SetColor(0xffff); npc_newton->SetName("Newton"); npc_newton->SetObjectLayer(npc_newton); npc_newton.StaticSaveVar = "npc_newton"; npc_newton->SetDir(DIR_Left); npc_lara = CreateObject(Clonk, 300, 337); npc_lara->SetColor(0xff0000); npc_lara.StaticSaveVar = "npc_lara"; npc_lara->SetName("Lara"); npc_lara->SetObjectLayer(npc_lara); npc_lara->SetSkin(1); npc_lara->SetDir(DIR_Left); npc_lisa = CreateObject(Clonk, 496, 367); npc_lisa->SetColor(0xff00); npc_lisa.StaticSaveVar = "npc_lisa"; npc_lisa->SetName("Lisa"); npc_lisa->SetObjectLayer(npc_lisa); npc_lisa->SetSkin(3); npc_lisa->SetDir(DIR_Left); npc_woody = CreateObject(Clonk, 782, 367); npc_woody->SetColor(0x808000); npc_woody.StaticSaveVar = "npc_woody"; npc_woody->SetName("Woody"); npc_woody->SetObjectLayer(npc_woody); npc_woody->SetSkin(2); npc_woody->SetDir(DIR_Left); npc_rocky = CreateObject(Clonk, 98, 774); npc_rocky->SetDir(DIR_Right); npc_rocky->SetColor(0x808080); npc_rocky.StaticSaveVar = "npc_rocky"; npc_rocky->SetName("Rocky"); npc_rocky->SetObjectLayer(npc_rocky); npc_rocky->SetSkin(2); npc_mave = CreateObject(Clonk, 973, 783); npc_mave->SetDir(DIR_Right); npc_mave->SetColor(0xff8000); npc_mave->SetName("Mave"); npc_mave->SetObjectLayer(npc_mave); npc_mave.StaticSaveVar = "npc_mave"; npc_pyrit = CreateObject(Clonk, 2816, 607); npc_pyrit->SetColor(0xff0000); npc_pyrit.StaticSaveVar = "npc_pyrit"; npc_pyrit->SetName("Pyrit"); npc_pyrit->SetObjectLayer(npc_pyrit); npc_pyrit->SetSkin(2); npc_pyrit->SetDir(DIR_Left); npc_clonko = CreateObject(Clonk, 2934, 595); npc_clonko->SetDir(DIR_Right); npc_clonko->SetColor(0xff8000); npc_clonko->SetName("Clonko"); npc_clonko->SetObjectLayer(npc_clonko); npc_clonko.StaticSaveVar = "npc_clonko"; npc_matthi = CreateObject(Clonk, 3002, 613); npc_matthi->SetColor(0x80ff00); npc_matthi->SetName("Matthi"); npc_matthi->SetObjectLayer(npc_matthi); npc_matthi.StaticSaveVar = "npc_matthi"; npc_matthi->SetDir(DIR_Left); npc_dora = CreateObject(Clonk, 3178, 1367); npc_dora->SetDir(DIR_Right); npc_dora->SetColor(0xffff20); npc_dora.StaticSaveVar = "npc_dora"; npc_dora->SetName("Dora"); npc_dora->SetObjectLayer(npc_dora); npc_dora->SetSkin(3); CreateObject(Fish, 1923, 729); CreateObject(Fish, 1924, 746); npc_dora->SetDialogue("Dora",true); var Pickaxe0478 = npc_rocky->CreateContents(Pickaxe); npc_rocky->SetDialogue("Rocky",true); var Axe0473 = npc_woody->CreateContents(Axe); npc_woody->SetDialogue("Woody",true); npc_lisa->SetDialogue("Lisa",true); npc_lara->SetDialogue("Lara",true); var Hammer0462 = npc_newton->CreateContents(Hammer); npc_newton->SetDialogue("Newton",true); var Bucket0460 = npc_mave->CreateContents(Bucket); npc_mave->SetDialogue("Mave",false); var Hammer0455 = npc_pyrit->CreateContents(Hammer); var Hammer0454 = npc_pyrit->CreateContents(Hammer); npc_pyrit->SetDialogue("Pyrit",true); var Hammer0451 = npc_clonko->CreateContents(Hammer); npc_clonko->SetDialogue("Clonko",true); var Sickle0448 = npc_matthi->CreateContents(Sickle); npc_matthi->SetDialogue("Matthi",true); CreateObject(Skull, 1566, 703); CreateObject(Skull, 3124, 1378); CreateObject(Rock, 685, 594); CreateObject(Rock, 793, 488); CreateObject(Rock, 1244, 515); CreateObject(Rock, 1480, 735); CreateObject(Rock, 794, 895); CreateObject(Rock, 311, 447); CreateObject(Rock, 1243, 792); CreateObject(Rock, 1231, 737); CreateObject(Rock, 563, 922); CreateObject(Rock, 1219, 1088); CreateObject(Rock, 428, 1319); CreateObject(Rock, 2100, 951); CreateObject(Rock, 1922, 1161); CreateObject(Rock, 2277, 968); CreateObject(Rock, 2405, 696); CreateObject(Rock, 2893, 989); CreateObject(Rock, 3131, 689); CreateObject(Rock, 3266, 1379); CreateObject(Ore, 2226, 943); Foundry0127->CreateContents(Ore); Foundry0127->CreateContents(Ore); Foundry0127->CreateContents(Ore); CreateObject(Loam, 1030, 449); CreateObject(Loam, 1122, 920); CreateObject(Loam, 1492, 804); CreateObject(Loam, 935, 1132); CreateObject(Loam, 456, 1004); CreateObject(Loam, 2315, 632); CreateObject(Loam, 2582, 790); CreateObject(Loam, 3056, 725); CreateObject(Loam, 3235, 792); CreateObject(Loam, 3167, 949); CreateObject(Loam, 2630, 1052); CreateObject(Loam, 3238, 1150); CreateObject(Loam, 2734, 1245); CreateObject(Loam, 3003, 1345); Foundry0124->CreateContents(Loam); Foundry0124->CreateContents(Loam); CreateObject(Loam, 951, 1333); CreateObject(Loam, 970, 1355); CreateObject(Loam, 952, 1364); CreateObject(Loam, 808, 1336); CreateObject(Loam, 737, 1322); CreateObject(Loam, 652, 1280); CreateObject(Loam, 797, 1391); CreateObject(Loam, 1021, 1339); CreateObject(Loam, 492, 1263); CreateObject(Loam, 504, 1263); CreateObject(Loam, 500, 1263); CreateObject(Metal, 2217, 942); ToolsWorkshop0139->CreateContents(Metal); ToolsWorkshop0139->CreateContents(Metal); ToolsWorkshop0139->CreateContents(Metal); Shipyard0146->CreateContents(Metal); Shipyard0146->CreateContents(Metal); Shipyard0146->CreateContents(Metal); Shipyard0146->CreateContents(Metal); Lorry0371->CreateContents(Metal); Lorry0371->CreateContents(Metal); CreateObject(Moss, 1529, 681); ToolsWorkshop0139->CreateContents(Wood); ToolsWorkshop0139->CreateContents(Wood); ToolsWorkshop0139->CreateContents(Wood); Shipyard0146->CreateContents(Wood); Shipyard0146->CreateContents(Wood); Shipyard0146->CreateContents(Wood); Shipyard0146->CreateContents(Wood); var Crate0548 = CreateObject(Crate, 2836, 607); var Hammer0549 = Crate0548->CreateContents(Hammer); Hammer0549->SetR(50); ToolsWorkshop0139->CreateContents(Hammer); ToolsWorkshop0139->CreateContents(Hammer); Foundry0124->CreateContents(Bucket); Foundry0124->CreateContents(Bucket); Foundry0124->CreateContents(Bucket); CreateObject(Bucket, 435, 1271); Lorry0369->CreateContents(Axe); Lorry0369->CreateContents(Axe); Lorry0369->CreateContents(Axe); ToolsWorkshop0139->CreateContents(Pickaxe); ToolsWorkshop0139->CreateContents(Pickaxe); CreateObject(Crate, 2849, 607); CreateObject(Crate, 444, 1271); CreateObject(Crate, 473, 1263); CreateObject(Crate, 403, 1271); var Barrel0560 = Foundry0124->CreateContents(Barrel); Barrel0560->SetColor(0xff000000); Barrel0560->AddRestoreMode(Foundry0124); var Barrel0562 = Foundry0124->CreateContents(Barrel); Barrel0562->SetColor(0xff000000); Barrel0562->AddRestoreMode(Foundry0124); var Barrel0564 = CreateObject(Barrel, 484, 367); Barrel0564->SetR(23); Barrel0564->SetColor(0xff000000); Barrel0564->SetObjectLayer(Barrel0564); Barrel0564->SetPosition(484, 361); var Barrel0566 = CreateObject(Barrel, 648, 351); Barrel0566->SetR(-22); Barrel0566->SetColor(0xff000000); Barrel0566->SetObjectLayer(Barrel0566); Barrel0566->SetPosition(648, 345); var Barrel0568 = CreateObject(Barrel, 244, 321); Barrel0568->SetColor(0xff000000); Barrel0568->SetObjectLayer(Barrel0568); var Barrel0570 = CreateObject(Barrel, 396, 343); Barrel0570->SetColor(0xff000000); Barrel0570->SetObjectLayer(Barrel0570); CreateObject(Mushroom, 1192, 448); CreateObject(Mushroom, 1170, 440); CreateObject(Mushroom, 1492, 663); CreateObject(Mushroom, 1131, 436); CreateObject(Mushroom, 1523, 675); CreateObject(Mushroom, 1163, 440); CreateObject(Mushroom, 1070, 414); CreateObject(Mushroom, 1010, 399); CreateObject(Mushroom, 960, 400); CreateObject(Mushroom, 1175, 440); CreateObject(Mushroom, 1120, 432); CreateObject(Mushroom, 989, 400); CreateObject(Mushroom, 968, 400); CreateObject(Mushroom, 1013, 400); CreateObject(Mushroom, 1496, 664); CreateObject(Mushroom, 1088, 424); CreateObject(Mushroom, 1545, 696); CreateObject(Mushroom, 1223, 440); CreateObject(Mushroom, 943, 399); CreateObject(Mushroom, 1006, 400); var Seaweed0652 = CreateObject(Seaweed, 1952, 903); Seaweed0652->SetPhase(26); var Seaweed0655 = CreateObject(Seaweed, 2013, 911); Seaweed0655->SetPhase(1); var Seaweed0658 = CreateObject(Seaweed, 1903, 887); Seaweed0658->SetPhase(57); var Seaweed0661 = CreateObject(Seaweed, 1983, 911); Seaweed0661->SetPhase(35); var Seaweed0664 = CreateObject(Seaweed, 2207, 942); Seaweed0664->SetPhase(29); var Seaweed0667 = CreateObject(Seaweed, 2127, 895); Seaweed0667->SetPhase(44); var Seaweed0670 = CreateObject(Seaweed, 2227, 943); Seaweed0670->SetPhase(29); var Seaweed0673 = CreateObject(Seaweed, 2191, 927); Seaweed0673->SetPhase(29); var Seaweed0676 = CreateObject(Seaweed, 2232, 943); Seaweed0676->SetPhase(66); var Seaweed0679 = CreateObject(Seaweed, 2269, 927); Seaweed0679->SetPhase(66); var Seaweed0682 = CreateObject(Seaweed, 2249, 935); Seaweed0682->SetPhase(66); CreateObject(DynamiteBox, 2844, 607); CreateObject(DynamiteBox, 452, 1271); var DynamiteBox0687 = CreateObject(DynamiteBox, 430, 1271); DynamiteBox0687->SetR(10); DynamiteBox0687->SetPosition(430, 1269); var MetalBarrel0688 = CreateObject(MetalBarrel, 395, 1271); MetalBarrel0688->SetColor(0xff000000); var MetalBarrel0690 = CreateObject(MetalBarrel, 421, 1271); MetalBarrel0690->SetR(-104); MetalBarrel0690->SetColor(0xff000000); MetalBarrel0690->SetPosition(421, 1268); var MetalBarrel0692 = CreateObject(MetalBarrel, 411, 1271); MetalBarrel0692->SetColor(0xff000000); var MetalBarrel0694 = CreateObject(MetalBarrel, 385, 1271); MetalBarrel0694->SetColor(0xff000000); var PowderKeg0696 = CreateObject(PowderKeg, 378, 1271); PowderKeg0696->SetR(99); PowderKeg0696->SetPosition(378, 1268); var WindBag0698 = CreateObject(WindBag, 382, 1271); WindBag0698->SetR(-29); WindBag0698->SetPosition(382, 1268); CreateObject(Firestone, 1272, 962); CreateObject(Firestone, 1763, 901); CreateObject(Firestone, 1415, 709); CreateObject(Firestone, 772, 622); CreateObject(Firestone, 1196, 494); CreateObject(Firestone, 345, 693); Lorry0371->CreateContents(Firestone); Lorry0371->CreateContents(Firestone); CreateObject(Firestone, 2460, 1367); CreateObject(Firestone, 2893, 672); CreateObject(Firestone, 2998, 960); CreateObject(Firestone, 3266, 1173); CreateObject(Firestone, 2653, 1130); CreateObject(Firestone, 2410, 1166); CreateObject(Firestone, 2853, 1379); return true; }
protected func Initialize() { // Netterweise gibt's zu Beginn einmal Plutonium CreateContents(PLUT); return(1); }