Jump to content

Frost Diver

Members
  • Posts

    189
  • Joined

  • Last visited

Posts posted by Frost Diver

  1. On 3/23/2025 at 6:50 PM, Sylfeyn said:

    Yeah, mine is working.
    Check your db/import/mob_skill_db.txt though and make sure you have a blank newline after the 30000,Marine Sphere@NPC_SELFDESTRUCTION,idle,173,1,10000,3500,0,yes,self,onspawn,,,,,,,, line
    I remember the first time I saw an error in one of the servers when loading that file because it didn't count the correct number of arguments. Adding a new line made it work correctly.

    yup, i did create a blank newline in the mob_skill_db.txt. no errors in the emulator. but somehow, i managed to make it work after recompile it again. weird, but got mine working now. thanks mate for the guide ^_^

  2. 7 hours ago, Sylfeyn said:

    I created a mob with id 30000 and AegieName G_MARINE_SPHERE in db/import/mob_db.yml all other stats copied from the original
    Then I added this to db/import/mob_avail.yml to assign it a sprite:
     

    Body:
      - Mob: G_MARINE_SPHERE
        Sprite: MARINE_SPHERE

    In db/import/mob_skill_db.txt I added:
    30000,Marine Sphere@NPC_SELFDESTRUCTION,idle,173,1,10000,3500,0,yes,self,onspawn,,,,,,,,

    In skill.cpp:
     

    case AM_SPHEREMINE:
    case AM_CANNIBALIZE:
    	{
    		int32 summons[5] = { MOBID_G_MANDRAGORA, MOBID_G_HYDRA, MOBID_G_FLORA, MOBID_G_PARASITE, MOBID_G_GEOGRAPHER };
    		int32 class_ = skill_id==AM_SPHEREMINE?MOBID_MARINE_SPHERE:summons[skill_lv-1];
    		enum mob_ai ai = (skill_id == AM_SPHEREMINE) ? AI_SPHERE : AI_FLORA;
    		struct mob_data *md;

    I changed MOBID_MARINE_SPHERE to MOBID_G_MARINE_SPHERE.


    Finally in mob.hpp:
     

    enum MOBID {
    	MOBID_PORING			= 1002,
    	MOBID_RED_PLANT			= 1078,
    	MOBID_BLUE_PLANT,
    	MOBID_GREEN_PLANT,
    	MOBID_YELLOW_PLANT,
    	MOBID_WHITE_PLANT,
    	MOBID_SHINING_PLANT,
    	MOBID_BLACK_MUSHROOM	= 1084,
    	MOBID_MARINE_SPHERE		= 1142,
    	MOBID_EMPERIUM			= 1288,
    	MOBID_G_PARASITE		= 1555,
    	MOBID_G_FLORA			= 1575,
    	MOBID_G_HYDRA			= 1579,
    	MOBID_G_MANDRAGORA		= 1589,
    	MOBID_G_GEOGRAPHER		= 1590,	
    	MOBID_GUARDIAN_STONE1	= 1907,
    	MOBID_GUARDIAN_STONE2,
    	MOBID_SILVERSNIPER		= 2042,
    	MOBID_MAGICDECOY_FIRE,
    	MOBID_MAGICDECOY_WATER,
    	MOBID_MAGICDECOY_EARTH,
    	MOBID_MAGICDECOY_WIND,
    	MOBID_ZANZOU			= 2308,
    	MOBID_S_HORNET			= 2158,
    	MOBID_S_GIANT_HORNET,
    	MOBID_S_LUCIOLA_VESPA,
    	MOBID_GUILD_SKILL_FLAG	= 20269,
    	MOBID_ABR_BATTLE_WARIOR = 20834,
    	MOBID_ABR_DUAL_CANNON,
    	MOBID_ABR_MOTHER_NET,
    	MOBID_ABR_INFINITY,
    	MOBID_BIONIC_WOODENWARRIOR = 20848,
    	MOBID_BIONIC_WOODEN_FAIRY,
    	MOBID_BIONIC_CREEPER,
    	MOBID_BIONIC_HELLTREE,
    };

    I added MOBID_G_MARINE_SPHERE    = 30000, into this enum

    I think that's it.

    ahh no wonder i got error. i didn't modify the mob.hpp file. thanks mate. but, 1 problem is, onspawn seems not working. when i spawned, it didn't cast the self destruction immediately. when i hit then only it will cast the skill. did yours working?

  3. 22 hours ago, Sylfeyn said:

    Okay the simplest form was to create a separate mob based on Marine Sphere and edit the relevant source files to use its mob id instead of the original marine sphere, then configure the skill in mob_skill_db.txt with condition onspawn

    which source files to edit to use different mob id?

  4. 2 hours ago, Remix_ said:

    Hello @Frost Diver, I updated the diff attached to my post, I forgot to add the timer_func and unordered set to contain the monsterID. It should work now. 🙂
    @ManokStreZ, I suggest you apply the codes manually, applying multiple custom patches will affect the code structures inside your server files. I'm just finalizing the autoattack and add it to pull request so the co-devs can inspect the codes before it merges as an official update.

    thank you sir. it work like a charm now ^^

    • Like 1
  5. Hello,

    i run this script in sql:

    CREATE TABLE `bk6_talk` (`intid` int(11) unsigned NOT NULL AUTO_INCREMENT, `npcid` mediumint(8) unsigned DEFAULT '0', `talkid` int(11) unsigned NOT NULL DEFAULT '0', `lang` varchar(3) NOT NULL DEFAULT 'en', `custom` tinyint(1) unsigned NOT NULL DEFAULT '0', `dialog` varchar(255) DEFAULT NULL, PRIMARY KEY (`intid`), UNIQUE KEY `idx_unique` (`npcid`,`talkid`,`lang`,`dialog`), KEY `idx_dialog` (`npcid`,`talkid`,`lang`)) ENGINE=MyISAM AUTO_INCREMENT=1;

    but got error. how to adjust the script to be able to create table in my database?

    Capture.JPG

  6. 3 hours ago, Remix_ said:

    I’m glad it worked well on you. Yeah, might be a great idea to add auto teleportation to the source code. But, my only goal is to sort the autoattack function compatible to the latest rA. I believe you can achieve that by utilizing the teleportation skill using the ingame script. 🙂

     

    hello, i tried @autoattack +1002, it said monster added to list. but if i check using @autoattack list, no any monster added. and if i turn on the command @autoattack on, it will tagetting all monsters

    1.JPG

    2.JPG

  7. 2 hours ago, Velda said:

    Well, i don't have a clue how long this approval takes.. And since i'm unpatient person and i want to conclude this project i already edited the first post - you can find download sources at the end.
    Today i also made custom cards and MVP cards so i added them too.

    Thanks mate. I'll test this out 👍

  8. 9 hours ago, Velda said:

    Hello everyone,
    few days ago i finished my custom instance - Poring Hell. Since i put some time into it i don't want to keep it just for myself. But it's a lots of adjustments on server-side and client-side too. Right know i'm making this topic just to show it. But, if anyone will be interested, please let me know and i will edit the post and provide all of the files i used along with the readme file how to make it work and which files need to be edited etc.

    Some more info about it:
    - NPCs are briefly dubbed using AI, i used soundeffect command there (so it really talks to you a bit if you have sound effects ON)!
    - There are custom BGM music (the music in the video is the actual music used for maps not a stream music).
    - I added few 4th class skills to monsters, created stats for them, made the whole story, NPC scripts, etc...
    - The maps i used are existing RO maps.

    - Skills need definitely a bit adjustment (lots of Dragon Breath and Gale Storm spam as you can see on the video lol)

    - The instance is made for 2022+ Renewal client (and rAthena) like an end-game instance by default. So mobs are strong in general - but this can be adjusted as needed by changing in the DB of course.

    I used illustrations found on the internet (from Honkai, manga etc..). I'm not owner nor creator of these materials! Since it is my first (and probably last) RO custom instance i made, i used instance tutorial by Skorm (thank you) and lots of sprites that i found on rAthena or Hercules forums for download. I just edited some of these sprites little bit but i did not create them by myself. So i also thanks to people who created them.

    For preview of the whole instance see video below:


    So once again, if anyone will like it and want it, let me know and i'll add sources here - for free of course. ^^

    Up for this!

    Great work mate

  9. On 7/30/2023 at 10:53 PM, kpcamber said:

    Hello everyone, I want to use this hateffect on NPC OnInit, and I have tried to put it in OnInit event. But it doesn't work. Are there any ways to make it work? How can I do?

    how do you use it on NPC OnInit event? mind to show the examples of the script commands?

    thanks

×
×
  • Create New...