Former Staff Shisui 491 Posted November 18, 2015 Former Staff Share Posted November 18, 2015 Yellow guys, is it possible to expand /eclipse flag to add more day modes besides day and night, like morning and evening? Or I have to create flags for each? /do_morning /do_evening This is the code for eclipse flag. cmd_gm.cpp Spoiler ACMD(do_eclipse) { char arg1[256]; one_argument(argument, arg1, sizeof(arg1)); if (strtol(arg1, NULL, 10) == 1) { quest::CQuestManager::instance().RequestSetEventFlag("eclipse", 1); } else { quest::CQuestManager::instance().RequestSetEventFlag("eclipse", 0); } } questmanager.cpp Spoiler else if ( name == "eclipse" ) { std::string mode(""); if ( value == 1 ) { mode = "dark"; } else if(value == 3) else { mode = "light"; } .... Vanilla's code has something like this but I don't know if this works properly.questmanager.cpp Spoiler else if ( name == "eclipse" ) { std::string mode(""); if ( value == 1 ) { mode = "dark"; } else if(value == 3) { mode = "morning"; } else if (value == 4) { mode = "evening"; } else { mode = "light"; } .... Link to comment Share on other sites More sharing options...
Former Staff Shisui 491 Posted November 21, 2015 Author Former Staff Share Posted November 21, 2015 bump. Link to comment Share on other sites More sharing options...
Sentrix 107 Posted November 21, 2015 Share Posted November 21, 2015 It is possible tho you would have to edit the client side day/night modes as well as the server side commands. I am not sure how to achieve this but it is something to do with the textures; I will create a guide how to do this shortly altho someone would have to create day/night etc. models for the brightness and the sky. Link to comment Share on other sites More sharing options...
Former Staff Shisui 491 Posted November 21, 2015 Author Former Staff Share Posted November 21, 2015 3 minutes ago, Sentrix said: It is possible tho you would have to edit the client side day/night modes as well as the server side commands. I am not sure how to achieve this but it is something to do with the textures; I will create a guide how to do this shortly altho someone would have to create day/night etc. models for the brightness and the sky. What do you mean by create models for day/night? Link to comment Share on other sites More sharing options...
Sentrix 107 Posted November 21, 2015 Share Posted November 21, 2015 I mean`t textures for the night/day vision; metin2 graphical interface isnt real world interface and has to be created whereas in real world it is automatic xD Link to comment Share on other sites More sharing options...
Former Staff Shisui 491 Posted November 21, 2015 Author Former Staff Share Posted November 21, 2015 I don't need models, I just need the flags evening and morning. Link to comment Share on other sites More sharing options...
Sentrix 107 Posted November 21, 2015 Share Posted November 21, 2015 Vanilla`s code works properly but don't forget to edit the cmd_gm also 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