Jump to content
Freecz

Error sa pag gawa ng Custom na Bloody branch. mob_get_random_id: Invalid type (2) of random monster. ( Mystic Branch )

Recommended Posts

Objective: Gusto ko lang sana gumawa ng custom bloody branch na ang pangalan ay Mystic Branch na kung san mga piling rare mvp monsters lang ang nasa summon doon.

Hi mga repa sinubukan ko i follow yung steps dito sa article na ito kaso ang problema parang outdated na sya hindi tugma ang guide sa laman ng folders ko.

halimbawa naka lagay jaan na baguhin ko ung :

 

const char* mobfile[] = {
DBPATH"mob_branch.txt",
DBPATH"mob_poring.txt",
DBPATH"mob_boss.txt",
"mob_pouch.txt",
"mob_classchange.txt"};

pero wala sya di ko sya makita sa mob.cpp ko.

 ito ung lumalabas na error kapag sinubukan ko mag summon sa mystic branch.

image.png.9791539eab504d6c8df22098a4055b46.png

 

eto naman yung mga steps na ginawa ko nung ininstall ko ung mystic branch.

1.  pumunta ako sa src>map>mob.cpp

    - dinagdagan ko ito mob_rare_boss.txt

image.png.ffc5167cee1b9d62e5951d31f78a1463.png

2. pumunta naman akosa  src>map>mob.hpp tapos ay dinagdag ko naman to

image.png.98b6d2bf1461fb4f68bf2beb001b7bda.png

3. after nyan mga boss ni recompile ko kasi SRC file sya.

4. pumunta ako sa db>pre-re then dinagdag ko dito ung mob_rare_boss.txt eto yung nasa loob nya

image.png.559e6b4312a4364aca699d26aea8031a.png

5. ginawa ko ay nag type ako ng @reloadmobdb at sinubukan ko na din i restart ang server pero hindi pa din ito gumagana.

 

hanggang sa napansin ko na sa putty ay ganito ang lumabas 

image.png.848d9cc69a56816ff6c1fe7db6653cd4.png

note: alam ko mga boss sasabihin nyo sakin hanapin ko sa google dahil marami. Pero nag hanap na ako mga boss wala talaga ako mahanap kasi parang outdated na lahat ng guide.

paki tulungan naman po ako sa nakakalam kung pano lutasin itong problemang ito maraming salamat!.

Edited by Freecz

Share this post


Link to post
Share on other sites

Separate item? If not why not just change the item name itself.

Share this post


Link to post
Share on other sites

Declare in script_constants.hpp

/* mob random groups */
	export_constant(MOBG_Branch_Of_Dead_Tree);
	export_constant(MOBG_Poring_Box);
	export_constant(MOBG_Bloody_Dead_Branch);
	export_constant(MOBG_Red_Pouch_Of_Surprise);
	export_constant(MOBG_YOUR_Branch);
	export_constant(MOBG_ClassChange);
	export_constant(MOBG_Taekwon_Mission);

 

  • Upvote 1

Share this post


Link to post
Share on other sites

thats work for me, but for a Reason, after the first Rebuild of the Solution after that change, I only can modify the MVP that I originally put in the custom group, but it doesnt detect the new MVPs that I add to it.

Share this post


Link to post
Share on other sites
On 7/9/2021 at 7:28 PM, f_fman said:

thats work for me, but for a Reason, after the first Rebuild of the Solution after that change, I only can modify the MVP that I originally put in the custom group, but it doesnt detect the new MVPs that I add to it.

Did you created a new txt file for the new branch?

Make sure that the format for the new txt file is the same on what you inputted on the src mod. 

export_constant(MOBG_YOUR_Branch);

Share this post


Link to post
Share on other sites
16 hours ago, Ronald said:

Did you created a new txt file for the new branch?

Make sure that the format for the new txt file is the same on what you inputted on the src mod. 

export_constant(MOBG_YOUR_Branch);

yes I did, I modified the monster_summon and the new txt for the branch.

Share this post


Link to post
Share on other sites

Di ba pwede bro gawa ka new item tas script command nalang mas simply  ^_^

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.