Jump to content
  • 0

VIP: No Item Consumption


Kouta

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.10
  • Content Count:  8
  • Reputation:   1
  • Joined:  02/25/25
  • Last Seen:  

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

3 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  776
  • Reputation:   239
  • Joined:  02/11/17
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   31
  • Joined:  11/08/15
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.10
  • Content Count:  8
  • Reputation:   1
  • Joined:  02/25/25
  • Last Seen:  

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