Jump to content

Denis

Banned
  • Posts

    1031
  • Joined

  • Last visited

  • Days Won

    53
  • Feedback

    0%

Posts posted by Denis

  1. Why you didn't use boost to split? Wouldn't it be easier like this:

    std::string arguments  = "arg1,arg2,arg3";
    std::vector<std::string> container;
    boost::split(container,arguments,boost::is_any_of(","));
    // container.push_back("test");
    for (auto & element : container)
    {
    	printf("Output: %s\n", element.c_str());
    }

     

    • Love 1
  2.  

                m_afAffectFlag.Set(AFF_YMIR);
                ChatPacket(CHAT_TYPE_INFO, "You have been elevated!");

                sys_log(0, "Player %s elevated successful!", GetName());

    • Love 1
  3. 54 minutes ago, Lazarus1988 said:

    Thank you @VegaS but I know about that.

    Let's explain again...

    My server has very low exp and gold drop rates (about 1 - 100 gold per mob (depending by level and rank) and 5 - 600 exp),

    so non-cheating player shoud have on 17lv approx 30.000 gold, as you see, in my quest players gold turns into lump of gold when he reaches 100.000.000 gold, which 

    is impossible to get it on that low level without bug-using, one of my players (precisely 17lv) showed me on trade window he has 200x Lump of gold.

    I don't have any GM's on server and only I have access to database. That's why I asked you hoping you know what kind of bug this is and how to eliminate.

    PS: Also one of other my players told me rumour that bug is also on global servers, but It's hardly to believe me in that rumour.

    If he just received the lamp from another player?

  4.  

    Why kill python

    3 hours ago, VegaS said:

    Protect in chat, when someone try to use command (fris), (double) etc and he show him emoticon

    
    	def __SendTalkingChatPacket(self, text):
    		arg_command = ["(racha)", "(racha2)", "(racha3)", "(racha4)", "(racha5)"]
    		
    		for x in xrange(len(arg_command)):
    			if(text.find(arg_command[x]) != -1):
    				chat.AppendChat(chat.CHAT_TYPE_INFO, "[CHAT] You cannot use %s in chat!" % text)
    				return

     

     

        def __SendTalkingChatPacket(self, text):
            arg_command = ["(racha)", "(racha2)", "(racha3)", "(racha4)", "(racha5)"]
            
            if text in arg_command:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "[CHAT] You cannot use %s in chat!" % arg_command[x])
                return

×
×
  • 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.