Browse Source

removed deprecated command syntax

Marvin Löschenkohl 4 years ago
parent
commit
94cb5d1afc

+ 0 - 0
storydorf/xmas.txt → Archiv/xmas.txt


+ 2 - 2
minigames/bedwars/bedwars.txt

@@ -428,8 +428,8 @@ for(i = 0; i < list.getSize(player_list); i++) {
 goto("checkgame");
 
 @setdisplay //Alle Teams mit Bett werden oben angezeigt, danach alle Teams ohne Bett. Ausgelöschte Teams werden gar nicht angezeigt
-list.new(bedtrue);
-list.new(bedfalse);
+bedtrue = list.new();
+bedfalse = list.new();
 index = 10;
 for(i = 0; i < list.getSize(allteams); i++) {
 	tempteam2 = list.getIndex(allteams, i);

+ 10 - 10
minigames/capturetheflag/capturetheflag.txt

@@ -41,7 +41,7 @@ map.add(teamcolortext2, 5, "§5Magenta");
 map.add(teamcolortext2, 6, "§dPink");
 map.add(teamcolortext2, 7, "§0Black");
 
-map.new(banners); //Liste der Banner
+banners = map.new(); //Liste der Banner
 map.add(banners, 0, "minecraft:blue_banner");
 map.add(banners, 1, "minecraft:red_banner");
 map.add(banners, 2, "minecraft:yellow_banner");
@@ -69,17 +69,17 @@ air_item = read.item(air_item_type);
 minplayers = teamsize + 1;
 maxplayers = teamsize * numberofteams;
 
-map.new(compassitem); //Map der Kompasse mit Namen
-map.new(teamlists); //Map mit Spielerlisten für jedes Team
+compassitem = map.new(); //Map der Kompasse mit Namen
+teamlists = map.new(); //Map mit Spielerlisten für jedes Team
 for(team = 0; team < numberofteams; team++) {
 	map.add(teamlists, team, list.new());
 	map.add(compassitem, team, read.item("minecaft:compass", 1, concat(map.get(teamcolortext2, team), "e Flagge")));
 }
 
-list.new(all); //Alle Spieler in der Quest
-list.new(waiters); //Alle Spieler ohne ausgewähltem Team
-map.new(players); //Alle Spieler mit ausgewähltem Team. Key: player_name / Value: Team
-map.new(compassmap); //Auf welche Flagge zeigt der Kompass eines Spielers
+all = list.new(); //Alle Spieler in der Quest
+waiters = list.new(); //Alle Spieler ohne ausgewähltem Team
+players = map.new(); //Alle Spieler mit ausgewähltem Team. Key: player_name / Value: Team
+compassmap = map.new(); //Auf welche Flagge zeigt der Kompass eines Spielers
 gamename = "§3CTF";
 
 player = script.getLeader();
@@ -115,8 +115,8 @@ size = list.getSize(all);
 block.setSign(gamesignloc, 2, concat(text.number(size), "/", text.number(maxplayers)));
 block.setSign(gamesignloc, 3, "§6Läuft");
 
-map.new(flagat); //Wo befindet sich eine Flagge. Base/Gegnerische Base/Spieler/frei herumliegend
-map.new(flagatloc); //Genaue Koordinaten, wo sich eine Flagge befindet
+flagat = map.new(); //Wo befindet sich eine Flagge. Base/Gegnerische Base/Spieler/frei herumliegend
+flagatloc = map.new(); //Genaue Koordinaten, wo sich eine Flagge befindet
 for(team = 0; team < numberofteams; team++) {
 	map.add(flagat, team, concat(map.get(colorcodes, team), "Base"));
 	map.add(flagatloc, team, map.get(flaglocs, team));
@@ -132,7 +132,7 @@ while(list.getSize(waiters) != 0) {
 	list.remove(waiters, p_name);
 }
 
-map.new(flagcarrier);
+flagcarrier = map.new();
 for(i = 0; i < size; i++) {
 	p = list.getIndex(all, i);
 	p_name = player.getName(p);

+ 4 - 4
minigames/capturetheflag/ctfmap1.txt

@@ -17,21 +17,21 @@ list2 = list.new();
 list.add(list2, loc.new(gamesworld, -5569, 85, -5499)); //team1
 list.add(list2, loc.new(gamesworld, -5569, 85, -5501)); //team2
 
-map.new(flaglocs);
+flaglocs = map.new();
 map.add(flaglocs, 0, list1);
 map.add(flaglocs, 1, list2);
 
 //Rotation der Banner
-map.new(flagrotation);
+flagrotation = map.new();
 map.add(flagrotation, 0, 12); //Osten
 map.add(flagrotation, 1, 4); //Westen
 
 //Spawn-Locations der Spieler
-map.new(spawnlocs);
+spawnlocs = map.new();
 map.add(spawnlocs, 0, loc.new(gamesworld, -5451, 64, -5500, 90, 0));
 map.add(spawnlocs, 1, loc.new(gamesworld, -5555, 64, -5500, -90, 0));
 
-map.new(compassitem);
+compassitem = map.new();
 map.add(compassitem, 0, read.item("minecaft:compass", 1, "§9Blaue Flagge"));
 map.add(compassitem, 1, read.item("minecaft:compass", 1, "§cRote Flagge"));
 

+ 10 - 11
minigames/maedn/maedn.txt

@@ -1,9 +1,9 @@
 rankingtable = "halmaranks";
 registerRanking(rankingtable);
 
-list.new(all);
-map.new(teams);
-set.new(block_click_catcher);
+all = list.new();
+teams = map.new();
+block_click_catcher = set.new();
 gamename = "§cMÄDN";
 air_item_type = "minecraft:air";
 pling_sound = sound.get("minecraft:block.note_block.pling");
@@ -14,24 +14,23 @@ gosub("setstart");
 player = script.getLeader();
 player_name = player.getName(player);
 
-list.new(all);
 gamesworldloc = read.location(ggv("SERVER", "gamesspawn"));
 gosub("setstart");
 air_item_type = "minecraft:air";
 
-map.new(colorwort);
+colorwort = map.new();
 map.add(colorwort, "blue", "Blau");
 map.add(colorwort, "green", "Grün");
 map.add(colorwort, "yellow", "Gelb");
 map.add(colorwort, "red", "Rot");
 
-map.new(wool);
+wool = map.new();
 map.add(wool, "blue", "minecraft:blue_wool");
 map.add(wool, "green", "minecraft:green_wool");
 map.add(wool, "yellow", "minecraft:yellow_wool");
 map.add(wool, "red", "minecraft:red_wool");
 
-map.new(colorcode_map);
+colorcode_map = map.new();
 map.add(colorcode_map, "blue", "§9");
 map.add(colorcode_map, "green", "§2");
 map.add(colorcode_map, "yellow", "§e");
@@ -55,8 +54,8 @@ player.speak("all", gamename, "§rDas Spiel läuft");
 block.setSign(gamesignloc, 2, concat(text.number(size), "/", text.number(maxplayers)));
 block.setSign(gamesignloc, 3, "§6Läuft");
 
-map.new(stablepos);
-map.new(aimpos);
+stablepos = map.new();
+aimpos = map.new();
 for(i = 0; i < list.getSize(colortext); i++) {
 	color = list.getIndex(colortext, i);
 	map.add(stablepos, color, list.new());
@@ -69,12 +68,12 @@ for(i = 0; i < list.getSize(colortext); i++) {
 	}
 }
 
-list.new(routepos);
+routepos = list.new();
 for(i = 0; i <= 39; i++) {
 	list.add(routepos, null);
 }
 
-map.new(colorforplayer);
+colorforplayer = map.new();
 for(h = 0; h < list.getSize(all); h++) {
 	color = list.getIndex(colortext, h);
 	p = list.getIndex(all, h);

+ 7 - 7
minigames/maedn/maednmap1.txt

@@ -7,13 +7,13 @@ gamesignloc = map.get(gamesignsmap, "maednsign1");
 würfelloc = loc.new(gamesworld, -1000, 101, 1000);
 mapname = "Map1";
 
-list.new(colortext);
+colortext = list.new();
 list.add(colortext, "blue");
 list.add(colortext, "yellow");
 list.add(colortext, "green");
 list.add(colortext, "red");
 
-list.new(route);
+route = list.new();
 list.add(route, loc.new(gamesworld, -1001, 101, 1005));
 list.add(route, loc.new(gamesworld, -1001, 101, 1004));
 list.add(route, loc.new(gamesworld, -1001, 101, 1003));
@@ -55,26 +55,26 @@ list.add(route, loc.new(gamesworld, -999, 101, 1004));
 list.add(route, loc.new(gamesworld, -999, 101, 1005));
 list.add(route, loc.new(gamesworld, -1000, 101, 1005));
 
-map.new(startindex);
+startindex = map.new();
 map.add(startindex, "blue", 0);
 map.add(startindex, "green", 10);
 map.add(startindex, "yellow", 20);
 map.add(startindex, "red", 30);
 
-map.new(homeindexes);
+homeindexes = map.new();
 map.add(homeindexes, "blue", 39);
 map.add(homeindexes, "green", 9);
 map.add(homeindexes, "yellow", 19);
 map.add(homeindexes, "red", 29);
 
-map.new(tploc);
+tploc = map.new();
 map.add(tploc, "blue", loc.new(gamesworld, -1001.5, 101, 1005.5,-180,0));
 map.add(tploc, "green", loc.new(gamesworld, -1004.5, 101, 998.5,-90,0));
 map.add(tploc, "yellow", loc.new(gamesworld, -997.5, 101, 995.5,0.0001,0));
 map.add(tploc, "red", loc.new(gamesworld, -994.5, 101, 1002.5,90,0));
 
-map.new(stable);
-map.new(aim);
+stable = map.new();
+aim = map.new();
 for(i = 0; i < list.getSize(colortext); i++) {
 	color = list.getIndex(colortext, i);
 	map.add(stable, color, list.new());

+ 4 - 4
minigames/sammelfieber/sammelfieberitems.txt

@@ -1,4 +1,4 @@
-list.new(items1);
+items1 = list.new();
 list.add(items1, "minecraft:wheat");
 list.add(items1, "minecraft:bread");
 list.add(items1, "minecraft:dirt");
@@ -79,7 +79,7 @@ list.add(items1, "minecraft:oak_trapdoor");
 list.add(items1, "minecraft:oak_button");
 list.add(items1, "minecraft:sugar_cane");
 
-list.new(items2);
+items2 list.new();
 list.add(items2, "minecraft:white_wool");
 list.add(items2, "minecraft:bowl");
 list.add(items2, "minecraft:paper");
@@ -189,7 +189,7 @@ list.add(items2, "minecraft:oak_door");
 list.add(items2, "minecraft:oak_boat");
 list.add(items2, "minecraft:shield");
 
-list.new(items3);
+items3 = list.new();
 list.add(items3, "minecraft:bucket");
 list.add(items3, "minecraft:minecart");
 list.add(items3, "minecraft:iron_door");
@@ -256,7 +256,7 @@ list.add(items3, "minecraft:brown_wool");
 list.add(items3, "minecraft:green_wool");
 list.add(items3, "minecraft:red_wool");
 
-list.new(items4);
+items4 = list.new();
 list.add(items4, "minecraft:glistering_melon_slice");
 list.add(items4, "minecraft:chest_minecart");
 list.add(items4, "minecraft:furnace_minecart");

+ 1 - 1
minigames/shoppingchaos/shopping_map1.txt

@@ -82,7 +82,7 @@ map.add(spawn_locs, 1, loc.new(gamesworld, 0, 101, 3014, -180, 0.0001));
 map.add(spawn_locs, 2, loc.new(gamesworld, 14, 101, 3000, 90, 0.0001));
 map.add(spawn_locs, 3, loc.new(gamesworld, -14, 101, 3000, -90, 0.0001));
 
-map.new(join_blocks); //Block-Locations, um einem Team zu joinen
+join_blocks = map.new(); //Block-Locations, um einem Team zu joinen
 map.add(join_blocks, loc.new(gamesworld, 0, 101, 2997), 0);
 map.add(join_blocks, loc.new(gamesworld, 0, 101, 3003), 1);
 map.add(join_blocks, loc.new(gamesworld, 3, 101, 3000), 2);

+ 1 - 1
startscript.txt

@@ -1,6 +1,6 @@
 clearscriptvars();
 
-setMOTD("§6Very unexpected o.O We are now on §c1.16.4");
+setMOTD("§2Clans §f& §cCities!\n§fMod Download? §c-> §fJoin our §bDiscord!");
 
 script.start("system/svars");
 script.start("system/perms", "utils/u_general");

+ 3 - 3
storydorf/floralisdorf.txt

@@ -84,8 +84,8 @@ event.load("block_click");
 event.load("villager_give");
 tempstage == 0;
 display.add(player, 6, concat("Blumen abgegeben: ", tempstage, "/9"));
-list.new("templist");
-list.new("flowers");
+templist = list.new();
+flowers = list.new();
 list.add(flowers, "RED_ROSE:0");
 list.add(flowers, "RED_ROSE:3");
 list.add(flowers, "RED_ROSE:4");
@@ -132,7 +132,7 @@ goto("waitstage1");
 player.speak(player, "§2Viola", "Hier ", player_name, ", nimm diese beiden Karotten und füttere unsere zwei städtischen Schildkröten, die du beim Rinnsal neben der Blumenwiese finden wirst.");
 event.load("block_click");
 item.drop(entity.getLocation(player), read.item("CARROT_ITEM:0:2"));
-list.new("turtles");
+turtles = list.new();
 list.add(turtles, read.location("games:2020:95:5956"));
 list.add(turtles, read.location("games:2027:95:5956"));
 tempstage = 0;

+ 5 - 5
storydorf/schiffbruch.txt

@@ -5,7 +5,7 @@ setVar("placeloc2", read.location("games:"));
 setVar("placeloc3", read.location("games:"));
 setVar("placeloc4", read.location("games:"));*/
 
-list.new("wheatlist");
+wheatlist = list.new();
 list.add($wheatlist, read.location("games:1905:108:3898"));
 list.add($wheatlist, read.location("games:1905:108:3899"));
 list.add($wheatlist, read.location("games:1905:108:3900"));
@@ -22,7 +22,7 @@ list.add($wheatlist, read.location("games:1903:108:3898"));
 list.add($wheatlist, read.location("games:1903:108:3897"));
 list.add($wheatlist, read.location("games:1904:108:3897"));
 
-list.new("goldblocks");
+goldblocks = list.new();
 list.add($goldblocks, read.location("games:1928:102:3845"));
 list.add($goldblocks, read.location("games:1922:102:3839"));
 list.add($goldblocks, read.location("games:1934:103:3840"));
@@ -77,8 +77,8 @@ if(equal($stage, 12)) goto("stage12");
 @stage0
 event.load("block-break");
 player.giveItem($player, read.item("WOOD_PICKAXE"));
-list.new("abgebaut_loc");
-list.new("abgebaut_type");
+abgebaut_loc = list.new();
+abgebaut_type = list.new();
 setVar("tempstone", 0);
 player.speak($player, "§2Kumpel", "Guten Morgen Kamerad! Wie du merkst, waren wir heute Nacht 'etwas' angetrunken.");
 player.speak($player, "§2Kumpel", "Leider haben wir dabei unser gutes Schiff auf Sand gesetzt. Was wir bei uns trugen, fiel ins tiefe Wasser.");
@@ -672,7 +672,7 @@ goto("waitstage11");
 @stage12
 player.speak($player, "§2Kumpel", "Gut, dass du hier bist. Auf der anderen Seite der Insel habe ich eine Hexe gesehen.");
 
-list.new("placelocs");
+placelocs = list.new();
 list.add($placelocs, $placeloc1);
 list.add($placelocs, $placeloc2);
 list.add($placelocs, $placeloc3);

+ 0 - 1
system/chat.txt

@@ -26,7 +26,6 @@ map.add(personalleavemessage, 37, concat(" has drunk one Kölsch too much.")); /
 joinmessages = list.new();
 list.add(joinmessages, concat(" joined Mundus Crassus."));
 list.add(joinmessages, concat(" entered the sick world."));
-list.add(joinmessages, concat(" revives the Kernseifen-Code-Safari."));
 list.add(joinmessages, concat(" is ready to discover new ores."));
 list.add(joinmessages, concat(" turns everything upside down."));
 

+ 1 - 1
system/commands.txt

@@ -5334,7 +5334,7 @@ result = databank.execute(seenStatement);
 varset = false;
 while(databank.next(result)) {
 	time = databank.getLong(result, 1);
-	calendar = time.new(time);month = text.number(time.getMonth(calendar));
+	calendar = time.new(time);
 	year = text.number(time.getYear(calendar));
 	month = text.number(time.getMonth(calendar));
 	day = text.number(time.getDay(calendar));

+ 4 - 4
system/ticketsystem.txt

@@ -5,8 +5,8 @@ pling_sound = sound.get("minecraft:block.note_block.pling");
 sound_category_ambient = sound.getCategory("ambient");
 
 //Ticket-Array: ticket[helpneeder][message][solver][ticketid]
-list.new(freetickets); //Liste mit allen offenen Tickets (Arrays)
-list.new(solvingtickets); //Liste mit Tickets in Bearbeitung (Arrays)
+freetickets = list.new(); //Liste mit allen offenen Tickets (Arrays)
+solvingtickets = list.new(); //Liste mit Tickets in Bearbeitung (Arrays)
 ticketcounter = 0;
 
 msg("dev", "§bTicketsystem §rwurde geladen");
@@ -230,7 +230,7 @@ if(command == "ticket") {
 		} else {
 			//checkforteamler
 			online = players.toList();
-			list.new(teamlers);
+			teamlers = list.new();
 			for(i = 0; i <= list.getSize(online) - 1; i++) {
 				p = list.getIndex(online, i);
 				if(issupporter(p)) {
@@ -314,7 +314,7 @@ function freeticket(ticket) {
 	setSolver(ticket, null);
 	//checkforteamler
 	online = players.toList();
-	list.new(teamlers);
+	teamlers = list.new();
 	for(i = 0; i <= list.getSize(online) - 1; i++) {
 		p = list.getIndex(online, i);
 		if(issupporter(p)) {

+ 2 - 2
utils/u_general.txt

@@ -2469,7 +2469,7 @@ function isAPermGroup(permstring) {
 }
 
 function getPermsFromPlayer(player_id) {
-	list.new(permslist);
+	permslist = list.new();
 	stmt = databank.prepare("SELECT perm_id FROM playerperms WHERE player_id = ?;");
 	databank.setInt(stmt, 1, player_id);
 	result = databank.execute(stmt);
@@ -2621,7 +2621,7 @@ function friend.delete(player_id, friend_id) {
 }
 
 function friend.getList(player_id) {
-	list.new(list);
+	list = list.new();
 	stmt = databank.prepare("SELECT friend_id FROM friends WHERE player_id = ?;");
 	databank.setInt(stmt, 1, player_id);
 	result = databank.execute(stmt);