Jump to content
  • 0

[Solved] Need help for script refine


Yaziid91

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   0
  • Joined:  04/20/19
  • Last Seen:  

Hello, I would like to know if anyone has an idea how to do this: for example, I would like my weapon to have an effect say ALLSTAT+100 if refined+10 with the ELUNIUM ENRICHED item only, but if it is refined with the normal elunium item it will not have the effect, thank you for your help.

edit i create 2 script, first one with blacklist ID and other classic

Edited by Yaziid91
solved
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  78
  • Reputation:   19
  • Joined:  12/24/18
  • Last Seen:  

34 minutes ago, Yaziid91 said:

Hello, I would like to know if anyone has an idea how to do this: for example, I would like my weapon to have an effect say ALLSTAT+100 if refined+10 with the ELUNIUM ENRICHED item only, but if it is refined with the normal elunium item it will not have the effect, thank you for your help.

 

I think this is possible, but it requires source modification to identify whether an item has been refined from an enriched elu. This can also be done through scripting, but there’s a potential issue: if the item is traded, the variable added in the script might be lost, which could result in the bonus stats disappearing.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1282
  • Reputation:   393
  • Joined:  02/03/12
  • Last Seen:  

14 hours ago, Mice said:

 

I think this is possible, but it requires source modification to identify whether an item has been refined from an enriched elu. This can also be done through scripting, but there’s a potential issue: if the item is traded, the variable added in the script might be lost, which could result in the bonus stats disappearing.

Not necessarily you could give the enhancement incrementally +10 to all stats for each refine with enriched elunium or if you really want the effect to happen all at once you could give it a stat bonus of +0 all stats until +10. Remove the +0 stat bonus if the refine it with normal elunium. Weapon bonuses can be 0 but are still set and retained through trades etc.

Edited by Skorm
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   0
  • Joined:  04/20/19
  • Last Seen:  

On 11/3/2024 at 1:52 PM, Skorm said:

Not necessarily you could give the enhancement incrementally +10 to all stats for each refine with enriched elunium or if you really want the effect to happen all at once you could give it a stat bonus of +0 all stats until +10. Remove the +0 stat bonus if the refine it with normal elunium. Weapon bonuses can be 0 but are still set and retained through trades etc.

Could you tell me which file I should turn to in order to modify the system to use this method of giving +10 stats for each refine if done with enriched elunium? In the worst case, the refined items will be custom, so I can just make them unchangeable in the item db.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  78
  • Reputation:   19
  • Joined:  12/24/18
  • Last Seen:  

On 11/3/2024 at 8:52 PM, Skorm said:

Not necessarily you could give the enhancement incrementally +10 to all stats for each refine with enriched elunium or if you really want the effect to happen all at once you could give it a stat bonus of +0 all stats until +10. Remove the +0 stat bonus if the refine it with normal elunium. Weapon bonuses can be 0 but are still set and retained through trades etc.

I understand. How can I identify an item that has been refined using Enrich or Normal Elunium? Yes, it's possible for the bonuses to get stuck on the item when traded to another character, but regarding the logic of identifying items refined with Enrich and Normal Elunium, how would that be applied? The only method I can think of is having separate refiners for Elunium and Enrich Elunium, using the unique ID of the item for identification of the variable. Please correct me if I'm wrong.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   0
  • Joined:  04/20/19
  • Last Seen:  

Bumpp

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