Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/29/24 in all areas

  1. Hey there~ I want to switch the order of the name and title, but after a few hours, I give up. So, it would be nice if you could help me out with my problem. Here is my problem: When you use 'setunittitle', the title appears above the NPC name. As an example: But I want the title beneath the name, like here: "I know I could simply use the name in 'setunittitle' and change the NPC name to the title name, but, well... that's not the intended use, is it?" In clif.cpp, the section where the name and title are defined is located: void clif_name( struct block_list* src, struct block_list *bl, send_target target ){ case BL_HOM: case BL_MER: case BL_PET: case BL_NPC: case BL_ELEM: { PACKET_ZC_ACK_REQNAMEALL_NPC packet = { 0 }; packet.packet_id = HEADER_ZC_ACK_REQNAMEALL_NPC; packet.gid = bl->id; switch (bl->type) { case BL_HOM: memcpy(packet.name, ((TBL_HOM *)bl)->homunculus.name, NAME_LENGTH); break; case BL_MER: memcpy(packet.name, ((TBL_MER *)bl)->db->name.c_str(), NAME_LENGTH); break; case BL_PET: safestrncpy(packet.name, ((TBL_PET *)bl)->pet.name, NAME_LENGTH); break; case BL_NPC: safestrncpy(packet.name, ((TBL_NPC *)bl)->name, NAME_LENGTH); break; case BL_ELEM: safestrncpy(packet.name, ((TBL_ELEM *)bl)->db->name.c_str(), NAME_LENGTH); break; } #if PACKETVER_MAIN_NUM >= 20180207 || PACKETVER_RE_NUM >= 20171129 || PACKETVER_ZERO_NUM >= 20171130 unit_data *ud = unit_bl2ud(bl); if (ud != nullptr) { memcpy(packet.title, ud->title, NAME_LENGTH); packet.groupId = ud->group_id; } #endif clif_send(&packet, sizeof(packet), src, target); } The next consideration is whether it would be possible to add a function that centers the name beneath the title. As you can observe, when the name is shorter than the title, it looks quite unappealing. It would be a good change for rAthena, I think, as I am not the only one bothered by this and centering the name would be a generally positive modification. I would greatly appreciate it if someone could provide me with the solution. Thank you.
    1 point
  2. conf\battle\skill.conf //Determines which kind of skill-failed messages should be sent: // 1 - Disable all skill-failed messages. // 2 - Disable skill-failed messages due to can-act delays. // 4 - Disable failed message from Snatcher // 8 - Disable failed message from Envenom display_skill_fail: 2
    1 point
  3. As the title says, it will convert the server side name to client side name (or as you configure - I'm just using the mapnametable.txt as reference) Usage - ConvertMapName(<mapname>); mapname is the server side map name used in mapindex Practical usage of this function is just to fancy up the mapnames on script. For example on mvp or pvp announcers, instead of announcing 'prt_fild08', it will show as 'Prontera Field F8' as per the default listed in the Loader NPC. You can modify the Loader NPC as much as you want. It is best to add both the function and the loader npc on 'Global_function.txt' so it will always be loaded first. This script is only for those who are just very particular on fancy details, otherwise, don't use this function if you have no idea what I mean. Sample NPCs are attached in the script itself. -- oopps, I will reupload as a downloadable file instead of a topic. If any mods can remove this please. Sorry. convertmapname.txt
    1 point
  4. 1 point
  5. Version 1.1.0

    170 downloads

    Reuploaded: Edited Nydhoggs Nest Instance with different difficulties. (see attachments)
    Free
    1 point
  6. Version 1.1.0

    146 downloads

    Edited Orc Memory Instance to have multiple difficulties. (see attachment for info)
    Free
    1 point
×
×
  • Create New...