Jump to content
  • 0

Item Enchanter Request


Radian

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

I've been looking in the forum before making this request topic, about the item enchanter.

to be specific about my request;

  1. Player can only select the 3/third and last slot from item.
  2. Player can only select the upper headgear.
  3. Requirements:
    • Stone/Gemstone ID#
    • Additional requirements Item + Zeny.
  4. Player can removed the stone/gemstone.
    1. Payments options:
      • Zeny
      • Coin
  5. Rates of success are [slot_3 = 10~15% chance of success / slot_4 = 5~10% chance of success]
  6. Players cant enchant the same stone/gemstone in the same headgear.
  7. If it fails the item will stay, but the stone/gemstone will be deleted from the players inventory.
  8. Add limit per day for the npc to enchant an item. resets the limit (OnClock0000:); 

here's a sample of the configuration.

// Gemstone/Stone ID's
setarray .gemstoneid, 601,602,603,604,605;

// Additional requirements
// or set 0 to disable
setarray .add_items, 501,10,502,3,503,7,504,9,505,99;

// Will the npc allow players
// to remove gemstone/stone
// in their headgear?
// 0 = disable
// 1 = enable (default
.allow_remove = 1;

// Payments for removing
// enchantments (stone/gemstone)
.zeny = 1000;
.coinid = 671;

// Rate Success
.Slot3 = rand(10,15);
.Slot4 = rand(5,15);

// If the enchantment fails
// will it be deleted?
// 1 = only the stone/gemstome (default)
// 2 = only the headgear
// 3 = all (stone/gemstone + headgear)
.deleteitem = 1;

So far that's all what im thinking, but everyone can add something to my idea.

Edited by Radian
changed topic's title.
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   39
  • Joined:  01/13/12
  • Last Seen:  

14 hours ago, Radian said:

I've been looking in the forum before making this request topic, about the item enchanter.

to be specific about my request;

  1. Player can only select the 3/third and last slot from item.
  2. Player can only select the upper headgear.
  3. Requirements:
    • Stone/Gemstone ID#
    • Additional requirements Item + Zeny.
  4. Player can removed the stone/gemstone.
    1. Payments options:
      • Zeny
      • Coin
  5. Rates of success are [slot_3 = 10~15% chance of success / slot_4 = 5~10% chance of success]
  6. Players cant enchant the same stone/gemstone in the same headgear.
  7. If it fails the item will stay, but the stone/gemstone will be deleted from the players inventory.
  8. Add limit per day for the npc to enchant an item. resets the limit (OnClock0000:); 

here's a sample of the configuration.


// Gemstone/Stone ID's
setarray .gemstoneid, 601,602,603,604,605;

// Additional requirements
// or set 0 to disable
setarray .add_items, 501,10,502,3,503,7,504,9,505,99;

// Will the npc allow players
// to remove gemstone/stone
// in their headgear?
// 0 = disable
// 1 = enable (default
.allow_remove = 1;

// Payments for removing
// enchantments (stone/gemstone)
.zeny = 1000;
.coinid = 671;

// Rate Success
.Slot3 = rand(10,15);
.Slot4 = rand(5,15);

// If the enchantment fails
// will it be deleted?
// 1 = only the stone/gemstome (default)
// 2 = only the headgear
// 3 = all (stone/gemstone + headgear)
.deleteitem = 1;

So far that's all what im thinking, but everyone can add something to my idea.

I think is it you want:

new_item_enchanter_v1.0.txt

I've tested and is working well...

You can go to line '347' to configure it.

Sorry for my English. ?

Edited by Cretino
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

16 hours ago, Cretino said:

I think is it you want:

new_item_enchanter_v1.0.txt 11.95 kB · 1 download

I've tested and is working well...

You can go to line '347' to configure it.

Sorry for my English. ?

Thank you for this, @Cretino I'll try it and let you know if something's wrong.

 

@Cretino I've tested the script, and its working 100%. I just wanted to change some things on it.

  1. The `ENCHANT_DELAY` change it to npc usage not for player.
    • When the whole server used the npc 100 times it will be disabled.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   39
  • Joined:  01/13/12
  • Last Seen:  

11 minutes ago, Radian said:

@Cretino I've tested the script, and its working 100%. I just wanted to change some things on it.

  1. The `ENCHANT_DELAY` change it to npc usage not for player.
    • When the whole server used the npc 100 times it will be disabled.

You want to put delay after enchant and add npc usage limit?

If you want enchant delay, you want for account or character or global?

After NPC reaches 100 usages, players can remove enchantments or disable completely the npc?

Edited by Cretino
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

3 minutes ago, Cretino said:

You want to put delay after enchant and add npc usage limit?

If you want enchant delay, you want for account or character?

After NPC reaches 100 usages, players can remove enchantments or disable completely the npc?

Uh, let's say every time a player used the npc to enchant, it will start counting until it reaches the limit of usage

.usage_limit = 100;

Then npc will only disable the enchantment part, not the remove enchantment.

I hope i explained it very well.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   39
  • Joined:  01/13/12
  • Last Seen:  

1 hour ago, Radian said:

Uh, let's say every time a player used the npc to enchant, it will start counting until it reaches the limit of usage

.usage_limit = 100;

Then npc will only disable the enchantment part, not the remove enchantment.

I hope i explained it very well.

I think is it you want:

new_item_enchanter_v1.1.txt

You can go to line '364' to configure it and see more for changes.

Edited by Cretino
  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

On 8/23/2019 at 10:45 AM, Cretino said:

I think is it you want:

new_item_enchanter_v1.1.txt 13.44 kB · 1 download

You can go to line '364' to configure it and see more for changes.

Thank you so much for this amazing script !

@Cretino Hi, i found a bug in the script, when an headgear is equipped with a card on it, and it successfully enchant it the card compound is gone.

nevermind bro, i found what's the problem.

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   39
  • Joined:  01/13/12
  • Last Seen:  

1 hour ago, Radian said:

@Cretino Hi, i found a bug in the script, when an headgear is equipped with a card on it, and it successfully enchant it the card compound is gone.

nevermind bro, i found what's the problem.

Yes, I saw the problem, I was using one variable not declared. ('@char[0]', '@char[1]' instead of '.@char[0]', '.@char[1]')

You guys need change this:

Spoiler

getitem2 .@equip, 1, 1, .@refine, 0, @cards[0], @cards[1], (.@selected_slot == 1) ? .gemstones[.@selected_gemstone - 1] : .@enchants[0], (.@selected_slot == 2) ? .gemstones[.@selected_gemstone - 1] : .@enchants[1];

 

To:

Spoiler

getitem2 .@equip, 1, 1, .@refine, 0, .@cards[0], .@cards[1], (.@selected_slot == 1) ? .gemstones[.@selected_gemstone - 1] : .@enchants[0], (.@selected_slot == 2) ? .gemstones[.@selected_gemstone - 1] : .@enchants[1];

 

And this:

Spoiler

getitem2 .@equip, 1, 1, .@refine, 0, @cards[0], @cards[1], (.@selected_enchant == 1) ? 0 : .@enchants[0], (.@selected_enchant == 2) ? 0 : .@enchants[1];

 

To:

Spoiler

getitem2 .@equip, 1, 1, .@refine, 0, .@cards[0], .@cards[1], (.@selected_enchant == 1) ? 0 : .@enchants[0], (.@selected_enchant == 2) ? 0 : .@enchants[1];

 

Thanks to notify me.

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Yes, @Cretino I found that one too.. thanks!

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