casper Posted November 3, 2024 Posted November 3, 2024 data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\group À¯ÀúÀÎÅÍÆäÀ̽º Is the folder named? Quote
Akbare-2nd Posted November 3, 2024 Posted November 3, 2024 8 hours ago, rmon said: clif.cpp Here you go try it clif.cpp Quote
LeonZ Posted November 20, 2024 Posted November 20, 2024 It worked fine here. It's a shame it doesn't show the HP percentage of the mobs. Quote
Pyumel Posted November 20, 2024 Posted November 20, 2024 Can i actually change it to race group instead ele group? so i can display race of monster istead their elements Quote
Yaziid91 Posted November 20, 2024 Posted November 20, 2024 17 hours ago, LeonZ said: It worked fine here. It's a shame it doesn't show the HP percentage of the mobs. what is name of your hat please Quote
LeonZ Posted November 20, 2024 Posted November 20, 2024 3 hours ago, Yaziid91 said: what is name of your hat please https://www.divine-pride.net/database/item/31979/ Quote
Yaziid91 Posted November 21, 2024 Posted November 21, 2024 15 hours ago, LeonZ said: https://www.divine-pride.net/database/item/31979/ thanks Quote
Pyumel Posted November 27, 2024 Posted November 27, 2024 bump! someone please tell me, can i change this to mob race view instead of element view? i want change this to race monster view not element monster view Quote
Louis T Steinhil Posted January 3 Posted January 3 (edited) Hmm I tried adding your patch to the show_mob_info. it works great although if the name of the monster is too long then few characters will be omitted. XD Clif.cpp case BL_MOB: { mob_data *md = (mob_data *)bl; char ele_name[8] = { 0 }; //char output[16] = { 0 }; if( md->guardian_data && md->guardian_data->guild_id ){ PACKET_ZC_ACK_REQNAMEALL packet = { 0 }; packet.packet_id = HEADER_ZC_ACK_REQNAMEALL; packet.gid = bl->id; safestrncpy( packet.name, md->name, NAME_LENGTH ); safestrncpy( packet.guild_name, md->guardian_data->guild_name, NAME_LENGTH ); safestrncpy( packet.position_name, md->guardian_data->castle->castle_name, NAME_LENGTH ); clif_send(&packet, sizeof(packet), src, target); }else if( battle_config.show_mob_info ){ PACKET_ZC_ACK_REQNAMEALL packet = { 0 }; packet.packet_id = HEADER_ZC_ACK_REQNAMEALL; packet.gid = bl->id; safestrncpy( packet.name, md->name, NAME_LENGTH ); char mobhp[50], *str_p = mobhp; switch (md->status.def_ele) { case 0: strcpy(ele_name, "Neutral");break; case 1: strcpy(ele_name, "Water");break; case 2: strcpy(ele_name, "Earth");break; case 3: strcpy(ele_name, "Fire");break; case 4: strcpy(ele_name, "Wind");break; case 5: strcpy(ele_name, "Poison");break; case 6: strcpy(ele_name, "Holy");break; case 7: strcpy(ele_name, "Shadow");break; case 8: strcpy(ele_name, "Ghost");break; case 9: strcpy(ele_name, "Undead");break; default: break; } if( battle_config.show_mob_info&4 ){ str_p += sprintf( str_p, "Lv. %d | ", md->level ); } if( battle_config.show_mob_info&1 ){ if (strlen(ele_name)) str_p += sprintf( str_p, "Ele: %s %d | ", ele_name, md->status.ele_lv); } if( battle_config.show_mob_info&2 ){ str_p += sprintf( str_p, "HP: %u%% | ", get_percentage( md->status.hp, md->status.max_hp ) ); } // Even thought mobhp ain't a name, we send it as one so the client can parse it. [Skotlex] if( str_p != mobhp ){ *(str_p-3) = '\0'; //Remove trailing space + pipe. safestrncpy( packet.party_name, mobhp, NAME_LENGTH ); } clif_send(&packet, sizeof(packet), src, target); } Edited January 3 by Louis T Steinhil Quote
Louis T Steinhil Posted January 3 Posted January 3 On 11/27/2024 at 4:17 PM, Pyumel said: bump! someone please tell me, can i change this to mob race view instead of element view? i want change this to race monster view not element monster view yes that's easy, change the value of elements to race. Quote
Louis T Steinhil Posted January 4 Posted January 4 anyone happen to know how can i move the info like this? Quote
WhiteEagle Posted January 4 Posted January 4 17 minutes ago, Louis T Steinhil said: anyone happen to know how can i move the info like this? For this i am lookging too since month. Quote
Louis T Steinhil Posted January 5 Posted January 5 On 1/4/2025 at 11:37 AM, WhiteEagle said: For this i am lookging too since month. got it XD Quote
Pyumel Posted January 5 Posted January 5 (edited) On 1/4/2025 at 12:17 AM, Louis T Steinhil said: yes that's easy, change the value of elements to race. how can i detect this monster have demi-human race or fish race for example? because if i just change the value of the elements to race it mean i just change the display name not detect the monster race Edited January 5 by Pyumel Quote
Pyumel Posted January 5 Posted January 5 54 minutes ago, Louis T Steinhil said: got it XD share please sir Quote
Louis T Steinhil Posted January 5 Posted January 5 22 minutes ago, Pyumel said: how can i detect this monster have demi-human race or fish race for example? because if i just change the value of the elements to race it mean i just change the display name not detect the monster race char race_name[9] = { 0 }; switch (md->status.race) { case 0: strcpy(race_name, "Formless");break; case 1: strcpy(race_name, "Undead");break; case 2: strcpy(race_name, "Brute");break; case 3: strcpy(race_name, "Plant");break; case 4: strcpy(race_name, "Insect");break; case 5: strcpy(race_name, "Fish");break; case 6: strcpy(race_name, "Demon");break; case 7: strcpy(race_name, "D-Human");break; case 8: strcpy(race_name, "Angel");break; case 9: strcpy(race_name, "Dragon");break; default: break; } str_p += sprintf( str_p, "Race: %s | ", race_name); Quote
Louis T Steinhil Posted January 5 Posted January 5 14 minutes ago, Pyumel said: share please sir // Even thought mobhp ain't a name, we send it as one so the client can parse it. [Skotlex] if( str_p != mobhp ){ *(str_p-3) = '\0'; //Remove trailing space + pipe. safestrncpy( packet.guild_name, mobhp, NAME_LENGTH ); } Quote
Pyumel Posted January 5 Posted January 5 1 hour ago, Louis T Steinhil said: // Even thought mobhp ain't a name, we send it as one so the client can parse it. [Skotlex] if( str_p != mobhp ){ *(str_p-3) = '\0'; //Remove trailing space + pipe. safestrncpy( packet.guild_name, mobhp, NAME_LENGTH ); } thank sir, really appreciated Quote
Pyumel Posted January 5 Posted January 5 (edited) 1 hour ago, Louis T Steinhil said: char race_name[9] = { 0 }; switch (md->status.race) { case 0: strcpy(race_name, "Formless");break; case 1: strcpy(race_name, "Undead");break; case 2: strcpy(race_name, "Brute");break; case 3: strcpy(race_name, "Plant");break; case 4: strcpy(race_name, "Insect");break; case 5: strcpy(race_name, "Fish");break; case 6: strcpy(race_name, "Demon");break; case 7: strcpy(race_name, "D-Human");break; case 8: strcpy(race_name, "Angel");break; case 9: strcpy(race_name, "Dragon");break; default: break; } str_p += sprintf( str_p, "Race: %s | ", race_name); im sorry for bothering you, i mean i want change the "ele_group" to the race group so i can make icon for an races is that possible to do? if so what should i rewrite them? "race_group" ? and how much the number for races Edited January 5 by Pyumel Quote
Boobzilon Posted April 18 Posted April 18 (edited) Hi someone can help me ? A. I need to copy part of the code inside the .diff with notepad++ and put inside the other file indicated there ? B. How to insert the code properly in the new file to ovoid an error? C. How to recompile ? thank you Edited April 18 by Boobzilon Quote
Vy Low Posted May 18 Posted May 18 On 4/19/2025 at 9:57 AM, ADMSarah said: Any changes using latest commit? still working, just tested Quote
Enoch Posted June 1 Posted June 1 hello how put the name of monster on top and the element and race in the bottom? thank you Quote
Neragalengel Posted 8 hours ago Posted 8 hours ago On 10/8/2024 at 10:53 PM, Mitosky said: Hello, very grateful and I would like to put this on my server but when I compile it it gives the following error: #if PACKETVER_MAIN_NUM >= 20180207 || PACKETVER_RE_NUM >= 20171129 || PACKETVER_ZERO_NUM >= 20171130 unit_data *ud = unit_bl2ud(bl); mob_data* md = NULL; if (bl->type == BL_MOB) md = (mob_data*)bl; int ele_group = -1; char ele_name[8] = {0}; char output[16] = {0}; // Mostrar información elemental del monstruo [Hyroshima] if (battle_config.mob_ele_view && md != NULL) { switch (md->status.def_ele) { case 0: ele_group = 51; strcpy(ele_name, "Neutral"); break; case 1: ele_group = 52; strcpy(ele_name, "Water"); break; case 2: ele_group = 53; strcpy(ele_name, "Earth"); break; case 3: ele_group = 54; strcpy(ele_name, "Fire"); break; case 4: ele_group = 55; strcpy(ele_name, "Wind"); break; case 5: ele_group = 56; strcpy(ele_name, "Poison"); break; case 6: ele_group = 57; strcpy(ele_name, "Holy"); break; case 7: ele_group = 58; strcpy(ele_name, "Shadow"); break; case 8: ele_group = 59; strcpy(ele_name, "Ghost"); break; case 9: ele_group = 60; strcpy(ele_name, "Undead"); break; default: break; } if (ud != NULL) { if (ele_group > -1) md->ud.group_id = ele_group; if (strlen(ele_name) > 0) { safesnprintf(output, sizeof(output), "%s Lv: %d", ele_name, md->status.ele_lv); safestrncpy(ud->title, output, NAME_LENGTH); } } } if (ud != NULL) { memcpy(packet.title, ud->title, NAME_LENGTH); packet.groupId = ud->group_id; } #endif Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.