Jump to content
  • 0

VIP Pass with expiration period.


lgatoniolo

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  04/03/16
  • Last Seen:  

Hello all,

I really need help, I'm looking for 3 days and all the ways that I found did not solve my problem.

I want to create a "VIP Pass" on my server and puts it in a Donation Shop.

By clicking the " VIP Pass" the player must be sent to the VIP room ( sec_in01 ) in this room are the VIPs NPCs.

This "VIP Pass" will last 30 days , after this period should be removed ( deleted ) of player account.

NOTE : I found various threads here in the forum but none solved my problem.

Could help me with the script and step by step to add it on server?

 

NOTE: I'm using MySQL database.

Thank you!!!

Edited by lgatoniolo
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  588
  • Reputation:   438
  • Joined:  01/26/16
  • Last Seen:  

Add these item db entry to your db/import/item_db.txt

50000,Secret_VIP_Pass_Box,Secret VIP Pass Box,2,20,,0,,,,,0xFFFFFFFF,63,2,,,,,,{ rentitem "Secret_VIP_Pass",2592000; },{},{}
50001,Secret_VIP_Pass,Secret VIP Pass,11,20,,0,,,,,0xFFFFFFFF,63,2,,,,,,{ warp "sec_in01",0,0; },{},{}

Use @item 50000 in your server. If you get an "Unknown Item" apple, double click the apple. Now you'll get another "Unknown Item" apple. Double click that, it'll warp you to "sec_in01" map.

If you can repeat these steps, you have added these items server-side. You can now add the item id 50000 into your donation shop.

 

To add these items client-side to make it display as actual items (not apple) please follow this guideline on the wiki.

https://rathena.org/wiki/Custom_Items

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  04/03/16
  • Last Seen:  

Perfect secretdataz!

 

I added the above lines in my item_db.txt , as you said appears the first apple "unknown item" (VIP BOX) and when I select it the second apple appears "unknown item" (VIP PASS) . When I select the second apple (VIP PASS) does not take me to the VIP room ( sec_in01 ).

You know why?

 

Thank you!!!

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