Jump to content

Question

Posted (edited)

Hey, guys!

Is there anyway to do this condition? Something like.. (Ignore the code itself, just sampling)

if(vip_status(VIP_STATUS_ACTIVE)) { <No Consume Item X>; }

I tried to do straight in item_db_usable.yml using the Flags step and testing on Yggdrasil, but nothing done.

I did it in item_db_usable.yml using the Scripts step with getitem, but I really don't wanna have the item popping up on the screen every time it's used.

 

I really appreciate the help! Ty in advance!

Edited by Kouta

3 answers to this question

Recommended Posts

  • 0
Posted
- Id: 607
    AegisName: Yggdrasilberry
    Name: Yggdrasil Berry
    Type: Healing
    Buy: 5000
    Weight: 300
    Flags:
      BuyingStore: true
      NoConsume: true
    Delay:
      Duration: 5000
      Status: Reuse_Limit_F
    Script: |
      percentheal 100,100;
      if( !vip_status(VIP_STATUS_ACTIVE) ) {
            delitem 607, 1;
      }

 

  • Love 1
  • 0
Posted

I have an idea.

- Id: 607
    AegisName: Yggdrasilberry
    Name: Yggdrasil Berry
    Type: Healing
    Buy: 5000
    Weight: 300
    Flags:
      BuyingStore: true
      NoConsume: true
    Delay:
      Duration: 5000
      Status: Reuse_Limit_F
    Script: |
      percentheal 100,100;

 

Flags: Noconsume: true

 

Now in script, put 

if(vip_status(VIP_STATUS_ACTIVE)) { percentheal 100,100; }


This item only gonna work if you're vip. in other case, i don't know how to do it. GL

  • 0
Posted (edited)
36 minutes ago, crazyarashi said:
- Id: 607
    AegisName: Yggdrasilberry
    Name: Yggdrasil Berry
    Type: Healing
    Buy: 5000
    Weight: 300
    Flags:
      BuyingStore: true
      NoConsume: true
    Delay:
      Duration: 5000
      Status: Reuse_Limit_F
    Script: |
      percentheal 100,100;
      if( !vip_status(VIP_STATUS_ACTIVE) ) {
            delitem 607, 1;
      }

 

LMFAO

I simply forgot to do the "false return" on vip and delete item. 🤣🤣🤣

You're pretty right, @crazyarashi! Thank you so much. ❤️

 

And thank you anyway, @Scanty!

 

-- Solved.

Edited by Kouta

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