Jump to content
  • 0

Custom Gift Box with expiration and guild bounded


Question

Posted

Good Day,

 Like from this thread

I'm trying to create a custom obb like item. The item being produced should have an expiry time and guild bounded. I was able to create the custom box and create an item from that. But the item being created doesn't have expiration and is not guild bounded.

I use this in item_group_db, in my understanding , that line should make the item be announced when the box is opened , have a duration of 300 ( for testing ) and is guild bounded(item will be deleted when the player left guild or has been kicked ).

GroupID,ItemID,Rate{,Amount,Random,isAnnounced,Duration,GUID,isBound,isNamed}

40520,Charm,1,1,0,1,300,,2,,

also tried

40520,Charm,1{,1,0,1,300,,2,,}

 The issue is the item I want is created but , it's not announced when obtained , do not have expiry and not guild bounded .

Please help on what i'm missing

Thanks

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

I think that's the problem
we have *rentitem and also *getitembound ... but we don't have *rentitembound ...

I just tested make a rentitem, then directly hijack the SQL `inventory` table and set the item bound as type 2
still cannot store the item into the guild storage like a normal getitembound with type 2
which means the rental item script takes priority

though, your suggestion might need source modification,
I search rentitembound on both hercules and rathena forum and no result return
nobody ever bring this up

Edited by AnnieRuru
  • Like 1
  • 0
Posted

Ah, so at the moment , it's either just a rentitem or  getitembound . If this is the case , I think I'll just shorten the duration of the rented item to control it. I was planning on making this custom box as a price for KoH WoE and prevent players from carrying it over when they leave the guild.

 

will this line in item_group_db do what I need or there is more appropriate way of doing it. 

the item :

  •  will be announced after opening the box
  •  is a rented item that will expire in 300 ( does this read it in seconds or in minutes )
  • also does the drop 1 will give it 1/6 rate? so it's like 16.6% chance? how can I lower it to like 1% or 5% for example

40520,Charm,1,1,0,1,300,,,,,

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