Jump to content

Hyroshima

Members
  • Posts

    189
  • Joined

  • Last visited

  • Days Won

    24

Everything posted by Hyroshima

  1. Could you please tell me which revision you are using, if there were any errors or warnings when compiling after applying the diff? Now, to get more detailed, could you record a video? You show the skill that is not being affected by the diff, as it is there in skill_db.yml, maybe it is something specific in pre-re mode, after you send me this information I will analyze it as soon as I have time and then I will make an update in the mod.
  2. hello, a part of the code in the line was cut, try it now. battle_config_init.inc
  3. Allows you to send private messages to a player (char_id), you can use the char_id or a title as the sender. /** [Hyroshima] * whisper <CHAR_ID_TARGET>,<MESSAGE>,<CHAR_ID_SENDER/TITLE>}; * @return: 0 success, 1 target not found, 2 sender not found. **/ BUILDIN_FUNC(whisper){ map_session_data *ssd,*tsd; char message[70] = {0}; char wisp_title[NAME_LENGTH] = {0}; uint8 len = strlen(script_getstr(st,3)); if(!script_charid2sd(2,tsd)) { //Target not found / offline script_pushint(st,1); return SCRIPT_CMD_SUCCESS; } if(atoi(script_getstr(st,4))) { if(!script_charid2sd(4,ssd)) { //Sender not found. / offline script_pushint(st,2); return SCRIPT_CMD_SUCCESS; } else safestrncpy(wisp_title,ssd->status.name,NAME_LENGTH); } else safestrncpy(wisp_title,script_getstr(st,4),NAME_LENGTH); script_pushint(st,0); safestrncpy(message,script_getstr(st,3),len); clif_wis_message(tsd,wisp_title,message,len,0); return SCRIPT_CMD_SUCCESS; } BUILDIN_DEF(whisper, "is?"), //Hyroshima Example: *whisper 150001,"message test","Tester"; *whisper(150001,"message test",150002; A member had asked me if I would do it, I ended up doing it but then he had replied that he had already done it, so I am making available what I did.
  4. if you added it manually you probably added a few lines above where it really should be, attach your clif.cpp or pastebin.com so I can take a look.
  5. I think on both sides, I believe that making free content available is essential to influence other people too, or even inspire other people. in a way, there are many mods/scripts that require a lot of time to develop and test, in addition to having to provide support when necessary. suggestions are also important, both for me and for those who will be able to benefit from them. but I understand what you are saying, I also think it is valid but don't be too hard on them, many could help if they knew how, we cannot let a minority affect us when we talk about those who only want to consume without participating Anyway, thanks to everyone lol, I will soon update the mod, if I had more time available (or if I could manage my time better lol) I will make more systems and mods available in the future.
  6. i will change the current enable/disable option for this format soon. apparently it is not possible, I checked even without this mod, add the show_mob_info option to show the hp or lvl and then apply a title or groupid (icon/emblem) and it has no effect when show_mob_info is being used, the values are in different packages, but I will do some more analysis, if I can't do it, stay here in case someone has a solution lol. i will see how safe it is, as there is a character limit.
  7. This error doesn't make sense, remove the contents of this file and add it to src/map/battle.hpp before the line #include <custom/battle_config_struct.inc>
  8. A friend is creating the elemental icons in a standardized way and much better than these exemplary models that I used. when I upload an update to the mod I will improve the description, adding the mob's race and level, maybe the icon will be in gif showing the element in one frame and the element's level in another frame.
  9. View File Mob Element View A small mod that allows you to display a custom icon and a title referring to the element and element level of the mob. It can be disabled by changing it in monster.conf // Show Element Info [Hyroshima] // 0= Off, 1= On mob_ele_view: 1 I have an observation to inform, if any of the information related to show_mob_info is enabled the mod will behave as disabled. // Display some mob info next to their name? (add as needed) // (does not works on guardian or Emperium) // 1: Display mob HP (Hp/MaxHp format) // 2: Display mob HP (Percent of full life format) // 4: Display mob's level show_mob_info: 0 Obs: i am making 2 diff files available: _A = Closest to current revision. _B = A little older compared to the current review The video quality is not very good (sorry), watch the preview video in fullscreen Submitter Hyroshima Submitted 10/04/24 Category Source Modifications Video Content Author Hyroshima  
  10. i just uploaded a mod that does something similar (I just didn't add the mob race), wait for Staff to accept the mod and you can test it. unfortunately if you use any of the options in show_mob_info you cannot use these changes. In the meantime you can test using a script like this to show a title on the mob: prontera,155,169,5 script teste_mob_title 113,{ monster("prontera",156,170,"--ja--",1002,1); .@mobrid = $@mobid; setunitdata .@mobrid,UMOB_GROUP_ID,1; //add a group icon setunittitle .@mobrid,"Test Title"; //add a title end; } remembering that you need to leave show_mob_info with value 0
  11. Version 1.0.0

    1432 downloads

    A small mod that allows you to display a custom icon and a title referring to the element and element level of the mob. It can be disabled by changing it in monster.conf // Show Element Info [Hyroshima] // 0= Off, 1= On mob_ele_view: 1 I have an observation to inform, if any of the information related to show_mob_info is enabled the mod will behave as disabled. // Display some mob info next to their name? (add as needed) // (does not works on guardian or Emperium) // 1: Display mob HP (Hp/MaxHp format) // 2: Display mob HP (Percent of full life format) // 4: Display mob's level show_mob_info: 0 Obs: i am making 2 diff files available: _A = Closest to current revision. _B = A little older compared to the current review The video quality is not very good (sorry), watch the preview video in fullscreen
    Free
  12. View File AnyMapDrops This mod made in map_drops.yml now allows you to add drops globally (without specifying a map), I also added a parameter where the added item can go directly to the player's inventory if there is space. Example of use ( db\import\map_drops.yml ) Header: Type: MAP_DROP_DB Version: 2 Body: - Map: ANY GlobalDrops: - Index: 0 Item: Union_Token Rate: 50000 DirectInventory: true - Index: 1 Item: Flower Rate: 100000 SpecificDrops: - Monster: Fabre Drops: - Index: 0 Item: White_Gold_Coin Rate: 50000 DirectInventory: true - Index: 1 Item: Izidor Rate: 50000 - Monster: Poring Drops: - Index: 0 Item: Crystal_Jewel__ Rate: 50000 Note 1: To be valid across all maps, set the map name to ANY. Note 2: The new parameter DirectInventory ( false | true ) allows the item to go directly to the inventory. Note 3: I created 2 new mapflags (nomapdrops and mapdrops), the first is self-explanatory (does not drop any items from map_drops ), the second will be effective for instances, as now map_drops does not drop items in instances, so just apply the second mapflag on the instance (in the instance maps) to make it work again. Example of use: OnInstanceInit: setmapflag instance_mapname("1@nyd"),mf_mapdrops; setmapflag instance_mapname("2@nyd"),mf_mapdrops; Next updates I will add a parameter to mapdrops.yml if you want the item to be dropped in instances too instead of having to use the mapdrops mapflag. Submitter Hyroshima Submitted 06/26/24 Category Source Modifications Video Content Author Hyroshima  
  13. Version 1.0.0

    243 downloads

    This mod made in map_drops.yml now allows you to add drops globally (without specifying a map), I also added a parameter where the added item can go directly to the player's inventory if there is space. Example of use ( db\import\map_drops.yml ) Header: Type: MAP_DROP_DB Version: 2 Body: - Map: ANY GlobalDrops: - Index: 0 Item: Union_Token Rate: 50000 DirectInventory: true - Index: 1 Item: Flower Rate: 100000 SpecificDrops: - Monster: Fabre Drops: - Index: 0 Item: White_Gold_Coin Rate: 50000 DirectInventory: true - Index: 1 Item: Izidor Rate: 50000 - Monster: Poring Drops: - Index: 0 Item: Crystal_Jewel__ Rate: 50000 Note 1: To be valid across all maps, set the map name to ANY. Note 2: The new parameter DirectInventory ( false | true ) allows the item to go directly to the inventory. Note 3: I created 2 new mapflags (nomapdrops and mapdrops), the first is self-explanatory (does not drop any items from map_drops ), the second will be effective for instances, as now map_drops does not drop items in instances, so just apply the second mapflag on the instance (in the instance maps) to make it work again. Example of use: OnInstanceInit: setmapflag instance_mapname("1@nyd"),mf_mapdrops; setmapflag instance_mapname("2@nyd"),mf_mapdrops; Next updates I will add a parameter to mapdrops.yml if you want the item to be dropped in instances too instead of having to use the mapdrops mapflag.
    Free
  14. View File Max Trap Control This mod allows you to control the number of traps that the player can use. conf/battle/skill.conf // Max Trap [Hyroshima] // Functionality to control the number of active traps. // Note: // skill_max_trap > Controls the number of individual active trap skills that were not been to defined parameter ActiveInstance in skill_db.yml // global_max_trap > Controls the maximum active trap skills for all skill traps (listed in skill.cpp -> trap_skill_id), this option overrides skill_max_trap if the definer is smaller than it //- // skill_max_trap: 0 (disabled) // global_max_trap: 0 (disabled) //- skill_max_trap: 0 global_max_trap: 0 the option skill_max_trap only affects skills that do not have the parameter ActiveInstance in skill_db.yml the option global_max_trap affects all trap skills mentioned above in the code box, the skills are listed in the function as I also inform in the description of the code box above. Note: i am making 2 diff files available: _A = Closest to current revision. _B = A little older compared to the current review As there have been some changes to how some functions receive/send parameters, I will try to maintain this standard when sending diff files. Submitter Hyroshima Submitted 06/10/24 Category Source Modifications Video https://www.youtube.com/watch?v=l5Sr42myq40 Content Author Hyroshima  
  15. Version 1.0.0

    222 downloads

    This mod allows you to control the number of traps that the player can use. conf/battle/skill.conf // Max Trap [Hyroshima] // Functionality to control the number of active traps. // Note: // skill_max_trap > Controls the number of individual active trap skills that were not been to defined parameter ActiveInstance in skill_db.yml // global_max_trap > Controls the maximum active trap skills for all skill traps (listed in skill.cpp -> trap_skill_id), this option overrides skill_max_trap if the definer is smaller than it //- // skill_max_trap: 0 (disabled) // global_max_trap: 0 (disabled) //- skill_max_trap: 0 global_max_trap: 0 the option skill_max_trap only affects skills that do not have the parameter ActiveInstance in skill_db.yml the option global_max_trap affects all trap skills mentioned above in the code box, the skills are listed in the function as I also inform in the description of the code box above. Note: i am making 2 diff files available: _A = Closest to current revision. _B = A little older compared to the current review As there have been some changes to how some functions receive/send parameters, I will try to maintain this standard when sending diff files.
    Free
  16. View File Extra Mapflags [nofalcon, noriding, nomadogear, nowug, nocart] They are simple mapflags but I believe they can be very useful in general. Note: noriding affects pecopeco, dragon, gryphon. prontera mapflag nofalcon prontera mapflag noriding prontera mapflag nomadogear prontera mapflag nocart prontera mapflag nowug Submitter Hyroshima Submitted 06/07/24 Category Source Modifications Video Content Author Hyroshima  
  17. Version 1.0.0

    90 downloads

    They are simple mapflags but I believe they can be very useful in general. Note: noriding affects pecopeco, dragon, gryphon. prontera mapflag nofalcon prontera mapflag noriding prontera mapflag nomadogear prontera mapflag nocart prontera mapflag nowug
    Free
  18. it would be possible, but I would need to write new code exclusively for this, maybe when I have more time available I can add this functionality to the NPC too.
  19. Let's use in here script_commands.txt example: https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L9179 you use it like this: totalCards = query_sql("SELECT COUNT(*) FROM player_cards WHERE account_id = '" + getcharid(3) + "'"); basically totalCards will receive 1 if the query_sql is executed successfully or 0 in case of failure, now the values to which you are doing the SELECT need a scope in which they will always be an array of values, in your case as a sum of all the values in the table referring to the account id, so the array will only have one index with the result, so you would have to do it like this: prontera,140,174,4 script Personal storage2#prt 113,{ OnInit: // Query of obtained cards query_sql("SELECT COUNT(*) FROM player_cards WHERE account_id = '" + getcharid(3) + "'",.@totalCards); // totalCards = query_sql("SELECT COUNT(card_id) FROM player_cards WHERE account_id = '" + getcharid(3) + "'"); mes "[Card Album]"; mes "Here, let me open"; mes "your Card record."; //Ex1 mes "You have collected " + .@totalCards + " cards out of 1009."; //Ex2 mes "You have collected " + .@totalCards[0] + " cards out of 1009."; mes "Thank you for using"; mes "the Kafra Service."; close; } Remembering that you cannot use the OnInit label and then use commands that are common to rid (player) without attaching rid (player) as in the case of the "mes","getcharid(3)" and "close" commands, this will cause an error on the stating emulator that there is no rid attached, I hope you understand what I tried to explain
  20. Search for this function: function gviewid { set .@n,getarraysize(.viewid); while(1) { set .@zt,.@zt+1; if(.@zt&13)sleep2(1); if(set(.@u,.viewid[set(.@t,rand(.@n))])) break; } for(;.@t<.@n;set .@t,.@t+1) set .viewid[.@t],.viewid[.@t+1]; return .@u; } and replace with this: function gviewid { set .@n,getarraysize(.viewid); if(.@n<=1) set .@rnd,0; else set .@rnd,rand(.@n); //dispbottom "."+getarraysize(.viewid)+""; while(1) { set .@zt,.@zt+1; if(.@zt&13)sleep2(1); if(set(.@u,.viewid[set(.@t,.@rnd)])) break; } for(;.@t<.@n;set .@t,.@t+1) set .viewid[.@t],.viewid[.@t+1]; return .@u; }
  21. View File Mir4 Enchant It allows you to enchant equipment using a random system between possibilities, and each registered title has 4 categories of rarity: S,A,B,C and each one with its respective chances. Submitter Hyroshima Submitted 05/07/24 Category Utilities Video https://www.youtube.com/watch?v=3eB84Us_hmE Content Author Hyroshima  
  22. Yes, that was a little mistake of mine I've already made the changes, wait for a mod to allow the files to be updated.
  23. I sent a compatible version for emulators without inarray, just wait for the rA mods to release it.
  24. Attach here the script_commands.txt file that is in the doc folder of your emulator, so I will check what commands are missing and will port a version for older revisions.
  25. Did you change the script? This line you mention is incomplete, the version in the script I sent is like this: getinventorylist; for(set .@i,0; .@i<getarraysize(.itens); set .@i,.@i+1) { if(inarray(@inventorylist_id[0],.itens[.@i]) > -1) { setarray .@invitm[getarraysize(.@invitm)],.itens[.@i]; setarray .@invitm$[getarraysize(.@invitm$)],""+getitemname(.itens[.@i])+""; } } The revision of your emulator is so old that it doesn't have the inarray() command and have you tried to remove it?
×
×
  • Create New...