Jump to content
  • 0

How to script unlimited box?


hyuna

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

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

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

oic...THX Capuche...something new I learned today!!!

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