Jump to content

Grimmjow

Members
  • Content Count

    17
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Grimmjow


  1.  

    The last 5 updates to the emulator for no reason just crash!

    The picture freezes and nothing happens!

    What is the problem?

    You should probably provide more information with screenshots and crashdump 

    The picture freezes and nothing happens!


  2. I want to ask help from experts to adapt code for the latest version of Hercules.

    I tried to change, but not enough knowledge in src.

    Please help.

     

     

    Open clif.c
    Найти void clif_parse_GlobalMessage(int fd, struct map_session_data* sd)
    
    After:
    
    char *name, *message;
    int namelen, messagelen;
    
    Add:
    
    char prefix[255]; // prefix for timestamp [Qwadrat]
    time_t t = time(NULL); // time var [Qwadrat]
    
    Continue to find:
    
    // send message to others (using the send buffer for temp. storage)
    And to prepend:
    
    // timestamp feature by Qwadrat
    strftime(prefix, 10, "[%H:%M] ", localtime(&t));
    strcat(prefix,text);
    textlen = strlen(prefix)+1;
    
    Further:
    
    // send message to others (using the send buffer for temp. storage)
    Replace the original piece of code:
    
    WFIFOHEAD(fd, 8 + textlen);
    WFIFOW(fd,0) = 0x8d;
    WFIFOW(fd,2) = 8 + textlen;
    WFIFOL(fd,4) = sd->bl.id;
    safestrncpy((char*)WFIFOP(fd,8), prefix, textlen);
    clif_send(WFIFOP(fd,0), WFIFOW(fd,2), &sd->bl, sd->chatID ? CHAT_WOS : AREA_CHAT_WOC);
    // send back message to the speaker
    //memcpy(WFIFOP(fd,0), RFIFOP(fd,0), RFIFOW(fd,2));-original
    memcpy(WFIFOP(fd,4), prefix, textlen); // [Qwadrat]
    WFIFOW(fd,0) = 0x8e;
    WFIFOW(fd,2) = RFIFOW(fd,2) + 8; // 8 - textlen [Qwadrat]
    WFIFOSET(fd, WFIFOW(fd,2));
    

  3. [Err] 1265 - Data truncated for column 'equip_jobs' at row 1

    [Err] REPLACE INTO `item_db` VALUES ('501','Red_Potion','Red Potion','0','50','25','70','0','0','0','0','0','0xFFFFFFFFFFFFFFFF','63','2','0','0','0',NULL,'0','0','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','itemheal rand(45,65),0;','','');

    [Msg] Finished - Unsuccessfully

    --------------------------------------------------

     

    Help!


  4.  

    -	script	MvP Drop	FAKE_NPC,{
    OnNPCKillEvent:
        if (getmonsterinfo(killedrid, 22)) {
            for (.@i = 0; .@i < getarraysize(.items); .@i += 3) {
                if ( rand( 10000 ) < .items[.@i + 2] ) {
                    getitem .items[.@i], .items[.@i + 1];
                    announce "Wow! " +strcharinfo( 0 )+ " has obtained " +getitemname(.items[.@i])+ " [" +.items[.@i + 1]+ "] from " +getmonsterinfo(killedrid, 0)+ ".",bc_all;
                }
            }
        }
    	end;
    
    OnInit:
        // <item id>,<amount>,<chance>
    	// Chance: 1 = 0.1%
        setarray .items[0],14232, 2, 5,
                 7615, 1, 3,
                 7227, 1, 2,
                 7179, 1, 1;
        end;
    }
    

     

    Thank you very much! I have added and set, like all works as it should.

     

    There was a question about above The subject  14232, 2, 50falls just got it but no announcement of the drop. 

     

    A new question. 

    It was established 7227, 1, 10, // TCG Card, including @ autoloot 0.4 and drop flies into the alt + e! why?


  5. Using the Hercules emulator. Date download 09-11/02/2016

    I apologize in advance for my English, do not scold me harshly. Thank!

    Help me please to do so would be

    14232, 2, 5, > 0.50%

    7615, 1, 3, > 0.50%

    7227, 1, 2, > 0.75%

    7179, 1, 1; > 0.75%

     

    I cheated on if ( rand( 100 ) < .items[ .@i + 2 ] ) { on if ( rand( 10000 ) < .items[ .@i + 2 ] ) {

    14232, 2, 50,

    7615, 1, 50,

    7227, 1, 75,

    7179, 1, 75;

     

    but I'm not sure that this is true

     

    And another thing

    conf/battle/drops.conf

    // Make broadcast ** Player1 won Pupa's Pupa Card (chance 0.01%) ***

    // This can be set to any value between 0~10000.
    // Note: It also announces STEAL skill usage with rare items
    // 0 = don't show announces at all
    // 1 = show announces for 0.01% drop chance items
    // 333 = show announces for 3.33% or lower drop chance items
    // 10000 = show announces for all items
    rare_drop_announce: 10000
    The subject  14232, 2, 50, falls just got it but no announcement of the drop.
     
    Very need Your help. Thanks!

     

     
    
    	-    script    MvP Drop    -1,{
    	    OnNPCKillEvent:
    	        if ( getmonsterinfo( killedrid, 22 ) ) {
    	            for ( .@i = 0; .@i < getarraysize( .items ); .@i += 3 ) {
    	                if ( rand( 100 ) < .items[ .@i + 2 ] ) {
    	                    getitem .items[ .@i ], .items[ .@i + 1 ];
    	                    announce "Wow! " +strcharinfo( 0 )+ " has obtained " +getitemname( .items[ .@i ] )+ " [" +.items[ .@i + 1 ]+ "] from " +getmonsterinfo(killedrid, 0)+ ".",0;
    	                }
    	            }
    	        }
    	    end;
    	    
    	    OnInit:
    	        // <item id>,<amount>,<chance>
    	        setarray .items[0],14232, 2, 5,
    	                 7615, 1, 3,
    	                 7227, 1, 2,
    	                 7179, 1, 1;
    	        end;
    	}
    	
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.