Jump to content
  • 0
Sign in to follow this  
Xanthin

Blacksmith Weapon Refine

Question

Hello everyone,

i have the question if someone might help me with an SRC edit wich i cant create myself...

 

 

I would like to have skill "Weapon Refine" from blacksmith to be after every Refine showing the

Message "+x Item Obtained" like it would show from a normal Refine from Npc

 

 

Is that possible? Thanks for Help.

 

Greetings,

Xanthin

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Also looking for this. The current message says "Weapons upgraded: %s"

Although that is a entry from the msgstringtable file and it isn't possible to put a script in it. So the src mod we need is the same as the refine NPC, first temp. take the weapon and then return it.

 

Anyone willing to help us?

Share this post


Link to post
Share on other sites
  • 0

Not good on SRC so I won't be able to give any support if this fails, but try this one:

 

Find: src/map/clif.c:14625

                clif->upgrademessage(sd->fd, 0,item->nameid);

 

Change to:

		clif->messages(sd->fd, "+%d %s obtained.", item->refine, item->nameid);

 

Haven't tested it, won't possibly work but this should get you nearer to your goal in any case.

Share this post


Link to post
Share on other sites
  • 0

This is old, but I am looking for this as well. JaBote's attempt did sadly not achieve this. Anyone else know a solution?

Share this post


Link to post
Share on other sites
  • 0

@bOinkz

@Helena

@Xanthin

 src/map/skill.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/map/skill.c b/src/map/skill.c
index 6eacde8..c246e1f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -16200,6 +16200,11 @@ void skill_weaponrefine (struct map_session_data *sd, int idx)
 						break;
 					}
 				}
+				{
+					char message[CHAT_SIZE_MAX];
+					safesnprintf( message, CHAT_SIZE_MAX, "+%d %s Item Obtained.", item->refine, ditem->jname );
+					clif->message( sd->fd, message );
+				}
 			} else {
 				item->refine = 0;
 				if(item->equip)

post-4102-0-55116500-1448560006_thumb.jpg

Edited by AnnieRuru

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

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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