Jump to content
  • 0

Player Name on Arrow Crafting


Marihna

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  37
  • Reputation:   0
  • Joined:  09/28/17
  • Last Seen:  

Does anyone know how to add a players name to the arrows that they crafted? We would like arrows crafted by players to have their names attached to them, similar to player made alchemist potions and weapons forged by blacksmiths.

 

I've seen this done in a few servers but am not quite sure how to go about adding it to mine. Any help is appreciated! Thank you!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   3
  • Joined:  11/07/17
  • Last Seen:  

In source we have:

if (battle_config.produce_item_name_input&0x4) {
			tmp_item.card[0] = CARD0_CREATE;
			tmp_item.card[1] = 0;
			tmp_item.card[2] = GetWord(sd->status.char_id,0); // CharId
			tmp_item.card[3] = GetWord(sd->status.char_id,1);
}

 

I guess that it's this file: conf/import-tmpl/battle_conf.txt

Try to add this line in that file:

// items.conf
produce_item_name_input: 0x4

 

Or if it doesn't work create a import folder, a battle_conf.txt in it to add above lines, i'm not sure if it uses from import-tmpl, as there's this line in battle_athena.conf:

//Your custom config goes here.
import: conf/import/battle_conf.txt

 

 

Edited by Psychonaut
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   1
  • Joined:  03/01/12
  • Last Seen:  

Thanks for your help! We found it after all.

For people looking to customize this as well, here's the file you need to edit. 

conf/battle/items.conf

Find this part here:

// Do produced items have the maker's name on them? (Note 3)
// 0x01: Produced Weapons
// 0x02: Produced Potions
// 0x04: Produced Arrows
// 0x08: Produced Holy Water/Ancilla
// 0x10: Produced Deadly Potions
// 0x80: Other produced items.
produce_item_name_input: 0x03

And replace produce_item_name_input: 0x03 

to: produce_item_name_input: 0x07  (For produced Weapons, Potions and Arrows)

  • Upvote 1
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...