Jump to content

Recommended Posts

Posted

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
  • 5 months later...
  • 2 weeks later...
  • 7 months later...
Posted
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

  • 4 weeks later...
  • 2 weeks later...
Posted (edited)

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
  • 2 weeks later...
Posted

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.

Posted (edited)

@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
Posted
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

Posted (edited)
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
Posted
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?

  • 4 weeks later...
  • 1 month later...
Posted

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 :)

 

  • 1 year later...
  • 3 months later...
  • 1 year later...
  • 4 weeks later...
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...