Jump to content
  • 0

usable Item infinite


JeffShadow90

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

Hi.

I wanted to know how do I make an item (es.: Giant fly wing) unlimited to the use... I mean that you can use it but it do not dissapear.. you can use it infinite time

Thanks :)

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   169
  • Joined:  04/05/13
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

@Emistry Please, there's an update for this topic?

Now I can see in yml Type: Delayconsume

and I can't make it infinite

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   30
  • Joined:  10/21/12
  • Last Seen:  

On 4/17/2021 at 11:45 AM, Diana said:

@Emistry Please, there's an update for this topic?

Now I can see in yml Type: Delayconsume

and I can't make it infinite

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   169
  • Joined:  04/05/13
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   30
  • Joined:  10/21/12
  • Last Seen:  

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;

 

Link to comment
Share on other sites


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

try change the Item type to 11

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

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
Link to comment
Share on other sites


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

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

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

Link to comment
Share on other sites


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

11 = usable item with unlimited usage ? o.o

Currently....YES ^^

i have test this in my test server

Edited by Emistry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

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
Link to comment
Share on other sites


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

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~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  97
  • Reputation:   20
  • Joined:  11/13/11
  • Last Seen:  

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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  399
  • Reputation:   198
  • Joined:  11/09/11
  • Last Seen:  

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.

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