Jump to content
  • 0

Enchant Forged Weapon?


OscarScorp

Question


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Hello everyone! Hope you're safe and healthy!
I wasn't sure if this question should be here or in the Client request section.

 

I would like to know if it's possible to add an Enchantment to a Forged Weapon. Example:
Very Very Strong Player's Fire Axe with a special item attachment (Atk+10).

 

I am not too experienced on this subject but I think each "very" and the elemental stone occupy space in each of the 4 slots of the weapon?Is it possible to add an extra slot to weapons which are "hidden" to the player? (Not shown in the 4 squares in the item description). Or is another way on solving this is to add an [Option] to the Forged weapon? Is it possible?

 

Thanks in advance!

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

Yes it possible, Look at getitem3 (doc > script_command)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1507
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

This might help

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Thank you people! Will look into it.
(Odd how I didn't get notified about these comments)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

On 4/12/2020 at 10:32 AM, Chaos92 said:

This might help

Finally got the opportunity to try this script but, I get this issue when attempting to enchant (image attached).

Any idea on what's the problem?
Thanks in advance!

help.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

are u is that script in pre renewal mode?
if yes u must add all item_randomopt_db.yml to your pre re folder

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

On 9/7/2021 at 11:22 AM, OscarScorp said:

Finally got the opportunity to try this script but, I get this issue when attempting to enchant (image attached).

Any idea on what's the problem?
Thanks in advance!

help.png

try this , I am not sure why you are getting this error , however this will use item2 if there is no options found

 

sader_s_enchant.txt

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

6 hours ago, sader1992 said:

try this , I am not sure why you are getting this error , however this will use item2 if there is no options found

 

sader_s_enchant.txt 16.21 kB · 0 downloads

Thanks! The script doesn't throw an error anymore and the process can be completed, except, what I'm looking for is enchant a Forged weapon.
Tried with regular Dagger and it can enchant up to 4 times. Tried with a "Very Strong" Dagger and no bonus is added.
 

 

6 hours ago, LearningRO said:

are u is that script in pre renewal mode?
if yes u must add all item_randomopt_db.yml to your pre re folder

My code is old and don't have the yml randomopt files. I added the file manually to db folder but, is it there anything else I need to edit to make my RO read the yml instead of the txt?

dagg.png

Edited by OscarScorp
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

2 hours ago, OscarScorp said:

Thanks! The script doesn't throw an error anymore and the process can be completed, except, what I'm looking for is enchant a Forged weapon.
Tried with regular Dagger and it can enchant up to 4 times. Tried with a "Very Strong" Dagger and no bonus is added.

The item's data are saved in the card slots , that's why runes + custom data(like names etc) cannot coexist

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

15 hours ago, sader1992 said:

The item's data are saved in the card slots , that's why runes + custom data(like names etc) cannot coexist

How about an Option(s)?

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

2 hours ago, OscarScorp said:

How about an Option(s)?

random options should be ok, as long as you don't edit the item cards.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

I'm close to making this work, but I need to know if an NPC can detect if your Equipped Weapon is Forged and it has at least 1 Very (from Very Very strong).
Is this possible?

Edited by OscarScorp
Formatting.
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

On 9/14/2021 at 11:28 PM, OscarScorp said:

I'm close to making this work, but I need to know if an NPC can detect if your Equipped Weapon is Forged and it has at least 1 Very (from Very Very strong).
Is this possible?

as I said before , the data are saved in the card slots , you can read the card slot and check out what the return value

 

---------------------------------------

*getequipcardid(<equipment slot>,<card slot>)

Returns value from equipped item slot in the indicated slot (0, 1, 2, or 3).

This function returns CARD ID, CARD0_FORGE, CARD0_CREATE, or CARD0_PET (for card 0, if the item is produced).
It's useful for when you want to check whether an item contains cards or if it's signed.

---------------------------------------

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Hey, it's me bothering again.
Tried what you told me and I can read the cards equipped in the weapon but can't manage to read if the weapon is forged or if it has at least 1 "Very".
When reading the parameter 0, does "255" mean's it's Forged?

I think I'm, understanding...
wat.png.2e056a8893817db6390f5de9c944a63b.png

I just need to know how to obtain the Name of the Forger. I can't find how to with NPC scripting, but I may require using a Function from SRC?

image.png

On 9/8/2021 at 6:24 PM, LearningRO said:

are u is that script in pre renewal mode?
if yes u must add all item_randomopt_db.yml to your pre re folder

I'm using renewal and have item_randomopt_db.TXT , but not yml (my code is old).
If I add the ymls manually, doesn't work either.

Can't update rathena because I have my src heavily modified and don't want to lose all my changes (custom skills, etc).
Is there a way to fix this?

Edited by OscarScorp
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...