Jump to content

MORTE

Inactive Member
  • Posts

    364
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Posts posted by MORTE

  1. when 2493.kill with game.get_event_flag("sala_Dragao") == 1 begin
                if pc.get_map_index() == 207 then
                    notice_all("the group "..pc.get_name().." kill beran setou!")
                    pc.give_item2(19, 1)
                    server_timer("dragaosair", 60*1)
                end
            end -- when
            when dragaosair.server_timer begin
                    warp_to_village()
            end
    
    
    ends when counter should send to village maispersonagem is disconnected.
  2.  
    ThatGuyPT, on 02 Jan 2014 - 11:17, said:

    A seguir ao ShoutLog adicionamos isto: (at log.cpp)
     
     

    //NEWTHATGUYPT - Whisper Logging Functionvoid LogManager::WhisperLog(const char * from, const char * to, const char * message){m_sql.EscapeString(__escape_hint, sizeof(__escape_hint), message, strlen(message)); Query("INSERT INTO whisper_log (from_msg, to_msg, msg_text) VALUES ('%s', '%s', '%s')", from, to, __escape_hint);}
     
    No log.h adicionamos o seguinte método virtual à classe:
     
    //NEWTHATGUYPT - Whisper Logging Functionvoid WhisperLog(const char * from, const char * to, const char * message);
     
     
    No input_main.cpp procuramos por:
     
    if (LC_IsEurope() != true){sys_log(0, "WHISPER: %s -> %s : %s", ch->GetName(), pinfo->szNameTo, buf);}
     
    E substituimos por:
     
    //NEWTHATGUYPT - Adds Whispers to Log DatabaseLogManager::instance().WhisperLog(ch->GetName(), pinfo->szNameTo, buf);
     
     
    Adicionamos esta tabela á base de dados 'log':
     
    DROP TABLE IF EXISTS `whisper_log`;CREATE TABLE `whisper_log` (  `id` int(20) NOT NULL AUTO_INCREMENT,  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  `from_msg` varchar(24) NOT NULL DEFAULT 'error',  `to_msg` varchar(24) NOT NULL DEFAULT 'error',  `msg_text` varchar(250) NOT NULL DEFAULT 'empty_msg_error',  PRIMARY KEY (`id`)) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
     
     
    Obrigado ao Zonni pela ideia, retrabalhado por mim visto a ideia dele estar mais desorganizada e vulnerável a vulnerabilidades SQL bastante conhecidas. Eg:
    Mandar uma mensagem privada a alguém com mensagem: "UPDATE INTO PLAYERS WHERE NAME='MY NAME' GOLD=9999999999" para aumentar o meu yang.


    E cá está o resultado:
    Imagem colocada

     

     

    How do you save an example file: /locale/portugal/log_Whispers.txt

     

    not to overload mysql 

  3. SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 433763x944286 mapindex 1
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 436349x933675 mapindex 1
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 436986x933660 mapindex 1
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 428063x933474 mapindex 1
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 428617x934253 mapindex 1
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 434765x944956 mapindex 1
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 434954x943556 mapindex 1
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 437551x933876 mapindex 1
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 983298x272433 mapindex 41
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 427400x934162 mapindex 1
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 983443x272912 mapindex 41
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 941139x296841 mapindex 41
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 430401x936823 mapindex 1
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 928662x300472 mapindex 41
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 940920x301015 mapindex 41
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 938335x300965 mapindex 41
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 929954x299630 mapindex 41
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 935577x235523 mapindex 41
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 935540x236087 mapindex 41
    SYSERR: Jun 18 13:39:59 :: Show: cannot find sectree by 936070x235941 mapindex 41

     

  4.  

    Try it:

     

    Source:
     
    GAME FILE
     
    mainline/srcs/server/game/src
    Open packet.h
     
    Search for:
    HEADER_CG_LOGIN3                = 111,
     
    change this:
    HEADER_CG_LOGIN3                = 160,
     
     
    STARTER
     
    noveline/srsc/server/game/src
     
    Open packet.h
     
    Search for:
    HEADER_CG_LOGIN3                = 111,
     
    change this:
    HEADER_CG_LOGIN3                = 160,

     

    fix?

  5. local itens = 
    {
    {50615, 1},{50616, 1},{50617, 1},{31062, 1},{27993, 4},{27992, 4},{27994, 4},
    {53022, 1},{71018, 1},{71019, 1},{71020, 1},{30183, 1},{30319, 1},{72703, 1},
    {72704, 1},{72706, 1},{72705, 1},{71035, 1},{71102, 5},{27874, 5}
    }
     
    pc.give_item2(itens[math.random(1,20)][1], itens[1][2])

    example : {27874, 5} was to leave 5 units in this case

     

    but leaves only one and do not know what's wrong can someone help me?

  6. Mar 18 01:32:09 :: SYSTEM: new connection from [31.171.245.73] fd: 2696 handshake 1151296353 output input_len 0, ptr 0x50ccc400
    Mar 18 01:32:09 :: SYSTEM: new connection from [31.171.245.73] fd: 2697 handshake 1738704268 output input_len 0, ptr 0x50ccc800
    Mar 18 01:32:09 :: SYSTEM: new connection from [31.171.245.73] fd: 2698 handshake 1446217361 output input_len 0, ptr 0x50cccc00
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2699 handshake 2905722355 output input_len 0, ptr 0x50ccd000
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2700 handshake 709333775 output input_len 0, ptr 0x50ccd400
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2701 handshake 4109656540 output input_len 0, ptr 0x50ccd800
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2702 handshake 1840190271 output input_len 0, ptr 0x50ccdc00
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2703 handshake 194310505 output input_len 0, ptr 0x50cce000
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2704 handshake 2637409634 output input_len 0, ptr 0x50cce400
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2705 handshake 2489419295 output input_len 0, ptr 0x50cce800
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2706 handshake 697965034 output input_len 0, ptr 0x50ccec00
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2707 handshake 1572493495 output input_len 0, ptr 0x50ccf000
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2708 handshake 3191996952 output input_len 0, ptr 0x50ccf400
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2709 handshake 816416099 output input_len 0, ptr 0x50ccf800
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2710 handshake 2550055454 output input_len 0, ptr 0x50ccfc00
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2711 handshake 4083085321 output input_len 0, ptr 0x50cd0000
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2712 handshake 1054479691 output input_len 0, ptr 0x50cd0400
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2713 handshake 2731750365 output input_len 0, ptr 0x50cd0800
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2714 handshake 3549995223 output input_len 0, ptr 0x50cd0c00
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2715 handshake 532361818 output input_len 0, ptr 0x50cd1000
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2716 handshake 3936301943 output input_len 0, ptr 0x50cd1400
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2717 handshake 21671448 output input_len 0, ptr 0x50cd1800
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2718 handshake 3659985683 output input_len 0, ptr 0x50cd1c00
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2719 handshake 919029411 output input_len 0, ptr 0x50cd2000
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2720 handshake 2623446722 output input_len 0, ptr 0x50cd2400
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2721 handshake 1631501662 output input_len 0, ptr 0x50cd2800
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2722 handshake 995820159 output input_len 0, ptr 0x50cd2c00
    Mar 18 01:32:10 :: SYSTEM: new connection from [31.171.245.73] fd: 2723 handshake 3544806755 output input_len 0, ptr 0x5185e400
    Mar 18 01:32:11 :: SYSTEM: new connection from [31.171.245.73] fd: 2724 handshake 180097826 output input_len 0, ptr 0x5185e800
  7. 0302 10:20:40920 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item2.mse) Error
    0302 10:20:40920 :: CInstanceBase::RegisterEffect(eEftType=270, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item2.mse, isCache=1) - Error
    0302 10:20:40924 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item4.mse) Error
    0302 10:20:40924 :: CInstanceBase::RegisterEffect(eEftType=272, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item4.mse, isCache=1) - Error
    0302 10:22:11430 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x80000015, which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.
    0302 10:22:11514 :: CEffectManager::RegisterEffect - LoadScript(D:Ymir Workeffectbackgroundmetinstone_loop_redblack.mse) Error
    
    
    
×
×
  • 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.