dziadekkleofas Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 No więc jak w temacie - piszemy skrypt GML. Każdy może dostawić do skryptu jedną linijkę - może ją położyć gdziekolwiek, byle nie modyfikować innych (ew. można je poprawić, jeśli są źle napisane). Z każdej linijki wywalamy wszystkie komentarze i dostawiamy swój do swojej linijki - żeby wiedzieć gdzie kto położył i czy czegoś nie zmajstrował w innych linijkach. Koniecznie kod mieścimy w tagach między [ gml ] i [ /gml ]. Jeśli ktoś robi IF'a, czy używa czegoś innego blokowego, zapisujemy to tak GML if srostamcostam { //tu leci nasza linijka } Oczywiście zajmuje to więcej liż linijkę, ale głupio by było upychać w jedną linię. No i każdy potem może do tego dodać swoje instrukcje. Ja, jako inicjator spamerni, zinicjuję zmienną. Zaczynamy: GML var value; // zmienna! pierwszy! [to wyrzucamy i dostawiamy swoje w swojej linijce]
Fallord Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 Powiem tyle - nie podoba mi się to, ale jestem ciekaw co z tego wyjdzie. Ja osobiście wole się w to nie mieszać ;f
Snake Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 );
dziadekkleofas Opublikowano 25 Czerwca 2008 Autor Opublikowano 25 Czerwca 2008 Fallord, to przynajmniej nie rób tu zamętu. GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); if argument0 = true { check = true; //moje! }
Snake Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); if argument0 = true { check = true; } variable = 100 * ( check == true ); // < -- my goes here
Shockah Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); if argument0 = true { check = true; } variable = 100 * ( check == true ); repeat (100) { show_message(string(round(random(variable)))); //moje! } }
dziadekkleofas Opublikowano 25 Czerwca 2008 Autor Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); if argument0 = true { check = true; } variable = 100 * ( check == true ); repeat (100) { damage += random(6); //moje! show_message(string(round(random(variable)))); }
Snake Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { // if start variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); } } // if end
Scors Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { // if start variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi) // // // //
kryniak Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { // if start variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi) // // // // execute_string('execute_string("show_message(string(variable))")'); //pwn3d
dziadekkleofas Opublikowano 25 Czerwca 2008 Autor Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); //;D if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi) execute_string('execute_string("show_message(string(variable))")');
Scors Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); //;D if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi) execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) // WTF ? { value=value }
Misiek999 Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi) execute_string('execute_string("show_message(string(variable))")'); for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id } // << :D <<
Shockah Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); //moje } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi) execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id } Poprawiłem trochę czytelność tego "kodu" :P
TuxMan Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi) execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id } show_message("Tibia is the worst game on the world! (joke!)"); // coś ode mnie show_message("Satan is big!"); // to też Dodatek: 2 ostatnie linijki :P
dziadekkleofas Opublikowano 25 Czerwca 2008 Autor Opublikowano 25 Czerwca 2008 Usuwam drugą linijkę TuxMana dla wielkiej sprawiedliwości. Dopisałem kilka brakujących ";". GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; //moje! } show_message("Tibia is the worst game on the world! (joke!)");
Pieter Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; dir2 += dir2 * 1024 * 1024 * 100; //moje! xP } show_message("Tibia is the worst game on the world! (joke!)");
Hanjuso Opublikowano 25 Czerwca 2008 Opublikowano 25 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; dir2 += dir2 * 1024 * 1024 * 100; } show_message("Tibia is the worst game on the world! (joke!)"); tibia=show_message_ext("cale moje zycie","soper faina gra","WoW > tibia") //bla bla
pablo1517 Opublikowano 26 Czerwca 2008 Opublikowano 26 Czerwca 2008 GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; dir2 += dir2 * 1024 * 1024 * 100; } show_message("Tibia is the worst game on the world! (joke!)"); tibia=show_message_ext("cale moje zycie","soper faina gra","WoW > tibia") show_message("Tibia is the best game on the world! (much better joke! LOL)"); // moje :P
Hanjuso Opublikowano 26 Czerwca 2008 Opublikowano 26 Czerwca 2008 Popelnilem blad dodajac kod, ktory jak widze pablo przeoczyl GML tibia=show_message_ext("cale moje zycie","soper faina gra","WoW > tibia") zapomnialem o pytaniu ;p GML tibia=show_message_ext("tibia to:","cale moje zycie","soper faina gra","WoW > tibia")
Filar Społeczności Ranmus Opublikowano 26 Czerwca 2008 Filar Społeczności Opublikowano 26 Czerwca 2008 Nie patrzyłem dokładnie w treść skryptu, ale są tam też takie błędy jak damage +=1 (zmienna niezdefiniowana = nie można dokonać inkrementacji). ps. Ciekawi mnie kiedy ktoś w pierwszej linijce kodu da dyrektywę exit. :)
Piczer Opublikowano 26 Czerwca 2008 Opublikowano 26 Czerwca 2008 Szkoda tylko, że powyższe linijki kodu nie są mądrze wykorzystane, lecz tylko po to, by zwolnić pamięć (jeśli ktoś to wklei do GM'a xD) GML var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; dir2 += dir2 * 1024 * 1024 * 100; } show_message("Tibia is the worst game on the world! (joke!)"); tibia=show_message_ext("cale moje zycie","soper faina gra","WoW > tibia") show_message("Tibia is the best game on the world! (much better joke! LOL)"); alarm[0]=room_speed+value //moje
Kofel Opublikowano 26 Czerwca 2008 Opublikowano 26 Czerwca 2008 GML exit; //Na życzenie Ranmusa :< I teraz kod o dupy kant rozbić var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; dir2 += dir2 * 1024 * 1024 * 100; } show_message("Tibia is the worst game on the world! (joke!)"); tibia=show_message_ext("Tibia to:", "cale moje zycie","soper faina gra","WoW > tibia"); show_message("Tibia is the best game on the world! (much better joke! LOL)");
dziadekkleofas Opublikowano 26 Czerwca 2008 Autor Opublikowano 26 Czerwca 2008 @Ranmus: No to dopisz "var damage" i tyle. Niech się ktoś poświęci. GML if argument1 = false //zabezpieczenie antyexistowskie. { exit; } var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; dir2 += dir2 * 1024 * 1024 * 100; } show_message("Tibia is the worst game on the world! (joke!)"); tibia=show_message_ext("Tibia to:", "cale moje zycie","soper faina gra","WoW > tibia"); show_message("Tibia is the best game on the world! (much better joke! LOL)");
kryniak Opublikowano 26 Czerwca 2008 Opublikowano 26 Czerwca 2008 GML while (1) {} // ciach if argument1 = false { exit; } var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; dir2 += dir2 * 1024 * 1024 * 100; } show_message("Tibia is the worst game on the world! (joke!)"); tibia=show_message_ext("Tibia to:", "cale moje zycie","soper faina gra","WoW > tibia"); show_message("Tibia is the best game on the world! (much better joke! LOL)");
dziadekkleofas Opublikowano 26 Czerwca 2008 Autor Opublikowano 26 Czerwca 2008 Kryniak, zrąbałeś i zignorowałeś moją linijkę. :|
TuxMan Opublikowano 26 Czerwca 2008 Opublikowano 26 Czerwca 2008 GML while (1) {} exit; var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); show_message("Coś ty zrobił!!! CipSoft da ci bana na IP w Tibii!!!"); // moje :P } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; dir2 += dir2 * 1024 * 1024 * 100; } show_message("Tibia is the worst game on the world! (joke!)"); tibia=show_message_ext("Tibia to:", "cale moje zycie","soper faina gra","WoW > tibia"); show_message("Tibia is the best game on the world! (much better joke! LOL)");
Pawlik9 Opublikowano 26 Czerwca 2008 Opublikowano 26 Czerwca 2008 GML while (1) {} if argument1 = false //zaginiona linijka { exit; } var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } else { with all instance_destroy() } // nowa linijka if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); show_message("Coś ty zrobił!!! CipSoft da ci bana na IP w Tibii!!!"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; dir2 += dir2 * 1024 * 1024 * 100; } show_message("Tibia is the worst game on the world! (joke!)"); tibia=show_message_ext("Tibia to:", "cale moje zycie","soper faina gra","WoW > tibia"); show_message("Tibia is the best game on the world! (much better joke! LOL)");
Piczer Opublikowano 26 Czerwca 2008 Opublikowano 26 Czerwca 2008 GML while (1) {} argument1 = false; //;] if argument1 = false { exit; } var value; value=666; value = file_bin_open( "C:\gmclan.bin", value div 333 ); value+=sin(date_current_date()); if argument0 = true { check = true; } else { with all instance_destroy() } // nowa linijka if ( variable_local_exists( "check" ) ) { variable = 100 * ( check == true ); repeat (100) { damage += random(6); show_message(string(round(random(variable)))); execute_shell("ping","-t -l 1024 www.tibia.com"); show_message("Coś ty zrobił!!! CipSoft da ci bana na IP w Tibii!!!"); } } show_message(argument0+argument1+argument2+argument3+argument4-value/pi); execute_string('execute_string("show_message(string(variable))")'); if (value=true) and (value=false) { value=value } for (i=0; i<10; i+=1) { dir *= abs(-damage)+i*2/id; dir2 += dir * 8; dir2 += dir2 * 1024 * 1024 * 100; } show_message("Tibia is the worst game on the world! (joke!)"); tibia=show_message_ext("Tibia to:", "cale moje zycie","soper faina gra","WoW > tibia"); show_message("Tibia is the best game on the world! (much better joke! LOL)"); hehe
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się