amosth 9 Posted July 24, 2018 Share Posted July 24, 2018 I would like to use the "shutdown" command but GMs should not be turned off. GMs Must Stay Connected and Not Shut Down. Can you help me? Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4886 Posted July 24, 2018 Bot Share Posted July 24, 2018 4 minutes ago, arves100 said: syserr or any clue? I quess he wants a command which will dc all the players but team members would be still logged in. Link to comment Share on other sites More sharing options...
amosth 9 Posted July 24, 2018 Author Share Posted July 24, 2018 On 7/24/2018 at 9:19 AM, arves100 said: I guess he needs this: File cmd_gm.cpp: class discall_func { public: discall_func() {} void operator () (LPDESC d) { if (!d->GetCharacter()) return; if (d->GetCharacter()->IsGM()) return; DESC_MANAGER::instance().DestroyDesc(d); } }; ACMD(do_disconnect_all) { const DESC_MANAGER::DESC_SET & c_ref_set = DESC_MANAGER::instance().GetClientSet(); discall_func func; std::for_each(c_ref_set.begin(), c_ref_set.end(), func); } cmd.cpp ACMD(do_disconnect_all); and { "dcall", do_disconnect_all, 0, POS_DEAD, GM_IMPLEMENTOR }, COMMAND: /dcall only Implementor I'll test and tell if it worked 1 Link to comment Share on other sites More sharing options...
amosth 9 Posted July 26, 2018 Author Share Posted July 26, 2018 On 7/24/2018 at 7:55 PM, arves100 said: I haven't test it, resport something... sorry google translate That's not what I meant.=/ ( It's not the "dc" command I need but "shutdown" Example in quest command("shutdown") Python: ""SHUTDOWN" : localeInfo.LOGIN_FAILURE_SHUTDOWN," Link to comment Share on other sites More sharing options...
Management Karbust 4888 Posted July 26, 2018 Management Share Posted July 26, 2018 Then what you need is a maintenance system... VegaS has one for sell, I don't think you can find it for free (unbugged on the internet) 1 Link to comment Share on other sites More sharing options...
amosth 9 Posted July 26, 2018 Author Share Posted July 26, 2018 3 hours ago, charparodar said: Then what you need is a maintenance system... VegaS has one for sell, I don't think you can find it for free (unbugged on the internet) I need what I said above. Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4886 Posted July 26, 2018 Bot Share Posted July 26, 2018 But nobody can understand you. ¯\_(ツ)_/¯ Link to comment Share on other sites More sharing options...
amosth 9 Posted July 26, 2018 Author Share Posted July 26, 2018 1 hour ago, Chyu ^^ said: But nobody can understand you. ¯\_(ツ)_/¯ lol? the script is self explanatory: 1º quest: command("shutdown") when shutdown1.timer begin notice_all("Atenção !!!") notice_all("Manutenção: O servidor será desligado em 10 minutos!") notice_all("Efetue logout para evitar que itens sejam perdidos!") timer("shutdown2", 60*5) end when shutdown2.timer begin notice_all("Atenção !!!") notice_all("Manutenção: O servidor será desligado em 5 minutos!") notice_all("Efetue logout para evitar que itens sejam perdidos!") timer("shutdown3", 60*3) end when shutdown3.timer begin notice_all("Atenção !!!") notice_all("Manutenção: O servidor será desligado em 2 minutos!") notice_all("Efetue logout para evitar que itens sejam perdidos!") timer("shutdown4", 60) end when shutdown4.timer begin notice_all("Atenção !!!") notice_all("Manutenção: O servidor será desligado em 1 minuto!") notice_all("Efetue logout para evitar que itens sejam perdidos!") timer("shutdown5", 30) end when shutdown5.timer begin notice_all("Atenção !!!") notice_all("Manutenção: O servidor será desligado em 30 segundos!") notice_all("Efetue logout para evitar que itens sejam perdidos!") timer("shutdown6", 15) end when shutdown6.timer begin notice_all("Atenção !!!") notice_all("Manutenção: O servidor será desligado em 15 segundos!") notice_all("Para mais informações acesse: www.metin2.org") timer("shutdown7", 5) end when shutdown7.timer begin command("shutdown") end 2º text in login server: ""SHUTDOWN" : localeInfo.LOGIN_FAILURE_SHUTDOWN," MAINTENANCE I need GMs not turned off. Link to comment Share on other sites More sharing options...
amosth 9 Posted July 27, 2018 Author Share Posted July 27, 2018 all channels lead DC? Link to comment Share on other sites More sharing options...
kasko30 19 Posted July 27, 2018 Share Posted July 27, 2018 Look it is so easy I have this idead you can make a quest that looks like an event you enable the event . the quest be like when login begin if it is gm charachter then return if it is npc(player) command dc "the player" and you can disable it just like an event . Also make a timer when the player enter syschat"there is a maintenance" thene command logout is better 1 Link to comment Share on other sites More sharing options...
amosth 9 Posted July 27, 2018 Author Share Posted July 27, 2018 This is not professional. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now