Jump to content

emanuel

Inactive Member
  • Posts

    324
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by emanuel

  1. Acum 34 minute, Exygo a spus:

    It was a very bad joke also not related to the subject

    R u crazy ? He has big prices ...

     

    You need try try a code like this(P.S: I don't know how he coded the system yet, never checked, never need that system)

    const DESC_MANAGER::DESC_SET & c_ref_set = DESC_MANAGER::instance().GetClientSet(); // you need to include desc_manager for this

                for (itertype(c_ref_set) it = c_ref_set.begin(); it != c_ref_set.end(); ++it) // look through all players(all connections, all cores)
                {
                    LPCHARACTER ch = (*it)->GetCharacter(); // get the LPCHARACTER pointer from the itor
                    if (!ch)
                        continue;

     

                    ch->ChatPacket(CHAT_TYPE_COMMAND, "environment %d", value); // Do something for each player, preferably send a command from server to client and after that the client will handle the command inside game.py and then the python part comes helping.
                }

     

    I gave you a hint, not all the code, as I said above, I didn't checked the system yet because I didn't need it.

    Yes,who know c++ ,can make it,not me :D

  2. Acum 7 ore, Dobrescu Sebastian a spus:

    Create a timer that's working just with an event flag and that timer opens the def from python. This way all players will see it in real time.Don't worry about loop timer, it won't create any load in server. Good luck.

     

    cmdchat("_test_start")  ( quest command )

    
    _test_start you put in game.py at def __ServerCommand_Build(self): 

    Example:

    
    	def __ServerCommand_Build(self):
    		serverCommandList={
            	"_test_start"        : self.TestSystem,
            }

     

    and after you create the def at the end of the file and you are done.

    I Will try, thx✌️

  3. La 05.04.2015 la 18:51, Alina a spus:

    Please send me screenshots or code quotes from the changes you made. Most likely you missed something accidentally :) 

    Hii,i install this succesfully,but one problem,i have in quests something like this with colors ,noticeall : Player x kill boss x

    When that notice is showed,it's showed like in /b command,it's not good like that,any solution ? Sorry for my eng :D

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.