Jump to content
  • 0

How to script unlimited box?


Question

Posted (edited)

I saw some servers I played have unlimited box (for pots) with a limited period (ex.30 days). I want to know how to make its script and and put expiration dates...its kinda new to me THX

Edited by hyuna

2 answers to this question

Recommended Posts

Posted (edited)

A rental item which give unlimit box ? I hope you will understand my example :

*rentitem <item id>,<time>;

*rentitem "<item name>",<time>;

Creates a rental item in the attached character's inventory. The item will expire

in <time> seconds and be automatically deleted. When receiving a rental item,

the character will receive a message in their chat window. The character will

also receive warning messages in their chat window before the item disappears.

This command can not be used to rent stackable items. Rental items cannot be

dropped, traded, sold to NPCs, or placed in guild storage. (i.e. trade mask 75)

Note: 'delitem' in an NPC script can still remove rental items.

prontera,155,168,5	script	yuio	456,{

rentitem 13531, 86400 * 30;	// 30 days
end;
}

A NPC give a rental item.

// ID,AegisName,Name,Type,Buy,Sell,Weight,ATK,DEF,Range,Slots,Job,Upper,Gender,Loc,wLV,eLV,Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script }
13531,Light_Red_Pot_Box,Light Red Potion Box,11,0,,0,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem 603,1; },{},{}

An item (not consumed - type 11) give unlimit item.

Edited by Capuche
  • Upvote 1

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