Jump to content

Utility: Usable Enchant Item


Emistry

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

Usable Enchant Item


Description :

Players are able to click on the Enchant items to provide custom bonus to the selected equipment.

Varies of bonus could be done especially use together with a *getequippedon script command to provide a wide range of bonuses.

The current items and bonuses display in the video is just a sample for demo.

The origin of the idea come from Diablo and 張阿神.

 

Sample Usage:

callfunc("F_UsableEnchantItem", <delete_item_id>, <enchant_item_id>{, <card_index>});

 

Item Database :

Create a custom item for enchant

  - Id: 501
    AegisName: Red_Potion_Enchant_Usable
    Name: Red Potion
    Type: DelayConsume
    Buy: 10
    Weight: 70
    Script: |
      callfunc("F_UsableEnchantItem", 501, 909, 3);

Create a custom enchant item with special bonuses.

  - Id: 909
    AegisName: Jellopy_Enchant_Item
    Name: Jellopy
    Type: Etc
    Buy: 6
    Weight: 10
    Flags:
      BuyingStore: true
    Script: |
      .@eqp = getequippedon();
      if (.@eqp & EQP_ARMOR) { bonus bVit,100; }
      if (.@eqp & EQP_HEAD_TOP) { bonus bInt,100; } 
      if (.@eqp & EQP_SHOES) { bonus bAgi,100; }

 

Preview :


  • Submitter
  • Submitted
    01/17/2016
  • Category
  • Video
    https://www.youtube.com/watch?v=dFivhLs1zeE
  • Content Author
    Emistry

 

  • Love 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  315
  • Reputation:   12
  • Joined:  11/21/11
  • Last Seen:  

ohhh very very good :D thxxxxxxxx !

Link to comment
Share on other sites

  • 5 months later...

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

@Emistry Is it possible to put fail and success percentage?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

@Radian

yes, you can.

 

o9FR59T.png

Link to comment
Share on other sites


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

@Radian

yes, you can.

 

o9FR59T.png

Thank you so much. :)

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  05/14/16
  • Last Seen:  

Hi good afternoon apology supports aemond

Hi good afternoon apology supports aemond

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   35
  • Joined:  04/01/13
  • Last Seen:  

On 17/01/2016 at 7:46 PM, Emistry said:

File Name: Usable Enchant Item

File Submitter: Emistry

File Submitted: 18 Jan 2016

File Category: Utilities

Content Author: Emistry

 

 

 

Description :
Players are able to click on the Enchant items to provide custom bonus to the selected equipment.

Varies of bonus could be done especially use together with a *getequippedon script command to provide a wide range of bonuses.
The current items and bonuses display in the video is just a sample for demo.

The origin of the idea come from Diablo and 張阿神.

Preview :

 

 

 

 

 

Click here to download this file

 

 

Please could you upgrade the system to work with the current emulator?

ttp://prntscr.com/e8nmy3

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  02/24/17
  • Last Seen:  

On 2/14/2017 at 11:09 PM, VX Play said:

Please could you upgrade the system to work with the current emulator?

ttp://prntscr.com/e8nmy3

Same request as this guy.

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

the system work with the exception of this one error i have enountered because it says failed to close refine fails 100% of the time

 

Untitled.png.bc402aa6d785be21fb9e545b9c64a0ae.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   2
  • Joined:  04/20/13
  • Last Seen:  

Hi @Emistry is it possible to put the bonus in different bonus items id ? like

callfunc( "F_DiabloEnchant",<delete item id>,[random<bonus item id>,random<bonus item id>,random<bonus item id>,random<bonus item id>] );

"callfunc( "F_DiabloEnchant",501 (Rand 909,910,911,912 );"

 

thank you

Solved

" callfunc( "F_DiabloEnchant",delete item id,rand(bonus item id,bonus item id,and so on));"

Edited by wOni
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  10/02/12
  • Last Seen:  

Please Fix it =(
deb1bb9019384fe7befaf027a29eb2a0.thumb.png.a157aa0bdfcca07c5f88bb803f2e6474.png

Edited by tuxico
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  59
  • Reputation:   3
  • Joined:  11/13/16
  • Last Seen:  

I got an Error when compiling, have any solution??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

there is no source modification for this script please make sure that the name is correct and the npc loads properly or it will give you errors.

Link to comment
Share on other sites


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

@Emistry Can you make this as an npc please? Same flow but can you make the effects randon ex. stat +1 and stat +2 and all equip except accessories. then the usable item will be the required item on to enchant. Thanks in advance.

how do i add more stats effect equip.

ex. for armor i want (str+1,agi+1,dex+1) then for weapon i want (str+1, agi+1, dex+1 ,attack+1%)
 

Edited by Tofee
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

1 hour ago, Tofee said:

how do i add more stats effect equip.

ex. for armor i want (str+1,agi+1,dex+1) then for weapon i want (str+1, agi+1, dex+1 ,attack+1%)
 

just add mote items in itemdb like emistry example givem by emistry in the script

Link to comment
Share on other sites


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

On 4/21/2017 at 3:32 PM, Cyro said:

just add mote items in itemdb like emistry example givem by emistry in the script

i want 1 item only . that can enchant any types of equips but different random effects set depending on the type of equip.

oh ok i get it. but can someone guide me please :P what item execute the script and what script should i put on the (stones)

stone0 = triger
stone1 = str+1
stone2 = str+3
stone3 = int+1
stone4 = int+3
stone5 = dex+1
stone6 = dex+3

what if i want the enchants on headgear random str and dex only
weapon random int and dex only

 

help with this error on compiling.

Capture.PNG

Edited by Tofee
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  04/15/17
  • Last Seen:  

may i know how to make that bone helm colour name change??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   13
  • Joined:  03/20/17
  • Last Seen:  

How to fix it?

5b380ab05dc8e68fb16040a063f0040a.jpg

Link to comment
Share on other sites


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

On 4/29/2017 at 2:35 AM, wingsofloveza said:

How to fix it?

5b380ab05dc8e68fb16040a063f0040a.jpg

 

did you have error compiling? if not how did you do it?

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   13
  • Joined:  03/20/17
  • Last Seen:  

On 3/5/2560 at 5:05 PM, Tofee said:

did you have error compiling? if not how did you do it?

1 failed compiling.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/30/13
  • Last Seen:  

hello . im new here . i manage to run my OFFLINE server . and i was thinking to put this script in my Test Server . but , how do i compile the script.inc? thank u :)

 

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   10
  • Joined:  12/03/18
  • Last Seen:  

Hi, compiled this as instructed.

Using the latest rathena  February 2019.

Any thoughts of where i went wrong?

enchant.PNG

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  12/01/11
  • Last Seen:  

@Emistry

I guess we're all getting error when trying to compile the files "script" and "scrip_def" on src/custom folder.

 

error1.png.2e04eaeaf57d26f307b0b58d2bf03745.png

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  27
  • Reputation:   2
  • Joined:  10/08/20
  • Last Seen:  

Bump this post.. Hi @Emistry, this is a really good release, mind if update for new emulator to use? Same as the rest, Error during compiling.. Anyone has resolution method?

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   1
  • Joined:  12/13/16
  • Last Seen:  

hello ,will there be a support for this script? got errors on src/custom after compiling.. if no kindly tell so that we stop hoping for support and try to fix it ourselves or find solutions for the error 

 

@Emistry i have errors when recompiling.. same as the rest.. mind if you fix your script so we can use it? 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
Reply to this topic...

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