Jump to content
  • 0

Creating new smithing elemental ore


Ryoshu

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  09/17/12
  • Last Seen:  

hey guys im trying to make a dark element ore for blacksmith crafing. i am able to do the equivalent of turning 10 smaller pieces to a larger piece. such as going form red blood to flame heart using the mini furnace. but now i want to be able to take my 'dark essence' and use it like a flame heart accept i want it to craft a dark property weapon. the problem is i cant get the item to drop into one of the slots so i can actually craft with it. ive looked everywhere trying to find out what's causing this restriction and have conclude it must be in the client. its basically the same restriction that doesnt let you put jellopy for example in a crafting slot. anyone got any hints or clues on what i can do to make my item work the way i want?

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you mean this ?

trunk/db/produce_db.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  09/17/12
  • Last Seen:  

I have done that already, but I cannot put the item into one of the slots under the create weapon to give it an enchantment. U know how u drag in a flame heart for fire enchantment, I am not able to drag over the custom ore in the same way.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  09/17/12
  • Last Seen:  

Bump

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

i dont think that work for items...Elemental Stone / Star Crumb only work for Weapon during the forging process...

and why would you go add another Elemental Stone / Star Crumb into the Elemental Stone itself ???

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  09/17/12
  • Last Seen:  

No. I made a dark enchantment stone. I want Smith's to be able to craft dark, holy, and ghost weapons. Understand?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

I understand what you meant, Now, i'm not 100% sure this will work but try this. (Remeber to make a copy of your src file first).

open: rAthena/src/map/skill.c

Find:

 if(slot[i]>=994 && slot[i]<=997 && ele==0){ /* Flame Heart . . . Great Nature */
  static const int ele_table[4]={3,1,4,2};
  pc_delitem(sd,j,1,1,0,LOG_TYPE_PRODUCE);
  ele=ele_table[slot[i]-994];
 }

Replace with:

/*L_ID = Lowest ID in range & H_ID = Highest ID in range. Example: slot[i]>=21000 && slot[i]<=22000*/
	if(slot[i]>=994 && slot[i]<=997 && ele==0 || slot[i]>=L_ID && slot[i]<=H_ID && ele==0){	/* Flame Heart . . . Great Nature */
		static const int ele_table[7]={3,1,4,2,6,7,8}; //Added 6=Holy, 7=Dark, 8=Ghost
		pc_delitem(sd,j,1,1,0,LOG_TYPE_PRODUCE);
		if(slot[i]>=L_ID && slot[i]<=H_ID){ //L_ID & H_ID here must be the same as up there.
			ele=ele_table[slot[i]-L_ID];} //L_ID here must be the same as L_ID up there.
		else{
			ele=ele_table[slot[i]-994];
		}

Save and recompile. This should effectively allow you to create weapons using your custom elemental stones.

Note - This most likely will not make the item have the elemental name. For example: Flame Dagger. I don't think it will show - Dark Dagger

Edited by GmOcean
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  09/17/12
  • Last Seen:  

I have edited this part of the source already. i even changed it to your code. the problem is that i cannot drag and drop the item into one of the slots. its like the game doesnt recognize that my item is an enchanting ore. so when i try to drop the item it, it simply doesnt work. like i said before it feels like trying to drop a jellopy in one of the 3 slots. it just wont go there.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Then, i guess it truely is impossible. The only work around would be to create custom items, using 1 of your stones as a normal ingredient, and just crafting a "Dark" elemented weapon.

My only guess is it's probably a client thing, but i dunno.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  09/17/12
  • Last Seen:  

Yea I think that is probably the only solution then. I think we solved this one as unsolvable. Haha thanx

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Hey, not sure if this will make it work or not, but i just stumbled upon this in: rAthena/src/common/mmo.h

#define MIN_ATTRIBUTE 0
#define MAX_ATTRIBUTE 4
#define ATTRIBUTE_NORMAL 0
#define MIN_STAR 0
#define MAX_STAR 3

From what i can understand, those are the Attributes according to rAthena/db/const.txt

Ele_Neutral 0
Ele_Water 1
Ele_Earth 2
Ele_Fire 3
Ele_Wind 4
Ele_Poison 5
Ele_Holy 6
Ele_Dark 7
Ele_Ghost 8
Ele_Undead 9

There for changing it to support more Attributes, MAY work. Not garanteed, but at this rate, 1 little edit couldn't hurt much.

Link to comment
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
Answer this question...

×   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...