Jump to content
  • 0

Question

14 answers to this question

Recommended Posts

  • 0
Posted
  - Id: 504
    AegisName: White_Potion
    Name: White Potion
    Type: Delayconsume
    Buy: 1200
    Weight: 150
    Script: |
      percentheal 20,0;

If still not working

  - Id: 504
    AegisName: White_Potion
    Name: White Potion
    Type: Delayconsume
    Flags:
      NoConsume: true
    Buy: 1200
    Weight: 150
    Script: |
      percentheal 20,0;

 

  • 0
Posted
28 minutes ago, qtdan said:

@Emistry how to do it on latest item db? bump for this comment

If your item had 'itemskill' that will consume otherwise it will infinite.

  • 0
Posted
14 minutes ago, Start_ said:

If your item had 'itemskill' that will consume otherwise it will infinite.

can you give me example?

  - Id: 504
    AegisName: White_Potion
    Name: White Potion
    Type: Healing
    Buy: 1200
    Weight: 150
    Script: |
      percentheal 20,0;

 

Posted (edited)

As far I know you should use function.

at the item's effect put callfunc "itemfunc";

then put this script on /script/custom/

make new files -> itemfunc.txt

The Script

function<tab>script<tab>itemfunc<tab>{

//item effect goes here

getitem itemID,1;

//red = Change to your Item ID's

//blue = Change to your previous item's effect

}

add script_custom.conf

npc: npc/custom/itemfunc.txt

Correct me if I wrong :)

Edited by 2essy2killu
Posted (edited)

As far I know you should use function.

at the item's effect put callfunc "itemfunc";

then put this script on /script/custom/

make new files -> itemfunc.txt

The Script

function<tab>script<tab>itemfunc<tab>{

//item effect goes here

getitem itemID,1;

//red = Change to your Item ID's

//blue = Change to your previous item's effect

}

Correct me if I wrong :)

rather than using 1 more function...

you can just basically add in getitem command at the item_db.txt


Anyway..just follow the guide i give in the second post...

change the Item Type to 11...

Example :

Original Red Potion ( 1 Time Usage )

501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(105,145),0; },{},{}

Edited Red Potion ( Unlimit Usage )

501,Red_Potion,Red Potion,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(105,145),0; },{},{}

Edited by Emistry
Posted

As far I know you should use function.

at the item's effect put callfunc "itemfunc";

then put this script on /script/custom/

make new files -> itemfunc.txt

The Script

function<tab>script<tab>itemfunc<tab>{

//item effect goes here

getitem itemID,1;

//red = Change to your Item ID's

//blue = Change to your previous item's effect

}

Correct me if I wrong :)

rather than using 1 more function...

you can just basically add in getitem command at the item_db.txt


Anyway..just follow the guide i give in the second post...

change the Item Type to 11...

Example :

Original Red Potion ( 1 Time Usage )

501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(105,145),0; },{},{}

Edited Red Potion ( Unlimit Usage )

501,Red_Potion,Red Potion,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(105,145),0; },{},{}

Oh yeah never think of that xD

11 = usable item with unlimited usage ? o.o

Posted (edited)

really?

type 11 = unlimited?

601,Wing_Of_Fly,Fly Wing,11,60,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ itemskill "AL_TELEPORT",1; },{},{}

type 0

501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(45,65),0; },{},{}

EDIT:

type 11 when use with pots go unlimited

but there is a restriction

not all type 11 = unlimited

i guess db needs to be updated more~

Edited by KeiKun
Posted

really?

type 11 = unlimited?

601,Wing_Of_Fly,Fly Wing,11,60,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ itemskill "AL_TELEPORT",1; },{},{}

type 0

501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(45,65),0; },{},{}

Aw...i didnt wonder about this...>.<

seem like this "way" only work for certain type...

then use the getitem command to get 1 items again upon used haha~

Posted

Type 11 is used for Scrolls and any item that requires you to click a target.

Without a target the item doesn't get deleted thus giving the appearance of unlimited.

(Best not to use type 11 with targeted skill or 'itemskill' commands)

Posted

Type 11 is used for Scrolls and any item that requires you to click a target.

Without a target the item doesn't get deleted thus giving the appearance of unlimited.

(Best not to use type 11 with targeted skill or 'itemskill' commands)

+1

Glad someone already covered this.

Item type 11 is as Angst has noted: It requires a target to be clicked (originally item type 11 was used for pet tames). Without a target, the item does not get consumed.Confirmed.

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.

  • Recently Browsing   0 members

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