Jump to content

blizzard2117

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by blizzard2117

  1. how can i disable the hp bars?

     

    Solved

     

    Thanks Mootie and RyotoRyo

    How?

    look for this at clif.c then comment/remove == post #4 

    void clif_monster_hp_bar( struct mob_data* md, int fd ) {
    #if PACKETVER >= 20120404
    	WFIFOHEAD(fd,packet_len(0x977));
    
    	WFIFOW(fd,0)  = 0x977;
    	WFIFOL(fd,2)  = md->bl.id;
    	WFIFOL(fd,6)  = md->status.hp;
    	WFIFOL(fd,10) = md->status.max_hp;
    
    	WFIFOSET(fd,packet_len(0x977));
    #endif
    }
    

    next look for this still at clif.c then comment

    #if PACKETVER >= 20120404
    			if( !(md->status.mode&MD_BOSS) ){
    				int i;
    				for(i = 0; i < DAMAGELOG_SIZE; i++)// must show hp bar to all char who already hit the mob.
    					if( md->dmglog[i].id == sd->status.char_id )
    						//clif_monster_hp_bar(md, sd->fd);
    			}
    #endif
    

    then look for this at mob.c then comment

     

    #if PACKETVER >= 20120404
    	if( !(md->status.mode&MD_BOSS) ){
    		int i;
    		for(i = 0; i < DAMAGELOG_SIZE; i++){ // must show hp bar to all char who already hit the mob.
    			struct map_session_data *sd = map_charid2sd(md->dmglog[i].id);
    			if( sd && check_distance_bl(&md->bl, &sd->bl, AREA_SIZE) ) // check if in range
    				clif_monster_hp_bar(md, sd->fd);
    		}
    	}
    #endif
    
     

     

     

    save then recompile.

    For removing HP bar.. 

     

    change all the date  20120404 to 20150404.. and its works for me.. sorry for my bad english!  /no1

×
×
  • Create New...