Jump to content
  • 0

Please Guide Me " How To Create Custom Box " and Rental item


devcloud

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   1
  • Joined:  09/07/16
  • Last Seen:  

Please Guide How To Create Custom Box i.e. " OBB / Bag = Acid Bottle / Fire Bottle / Slim Potion "
i.e.
WOE Supply Box
Acid Bottle Box

Fire Bottle Box

Poison Bottle Box

 

I would like to generate custom box.

How To add rental script to item.
i.e. I Love China

5423,Lovecap_China,I Love China,4,20,,250,,5,,0,0xFFFFFFFF,7,2,256,,0,0,424,{ bonus bDex,3; bonus2 bSubRace,RC_DemiHuman,10; bonus2 bSubRace,RC_Player,10; },{},{}
( Keep This Alive )

Add another as rental item like 7 Days

Please help.

Thanks in Advance

 

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

u just need more effort to learn from doc/item_group.txt

 

 

db/import/item_db.txt

32000,WOE_Super_Box,Woe Super Box,18,20,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ getgroupitem(IG_WOE_Super_Box); },{},{}

 

db/const.txt (make sure no duplicate name)

IG_WOE_Super_Box 1000

 

db/import/item_package.txt

// GroupID,ItemID,Rate{,Amount,Random,isAnnounced,Duration,GUID,isBound,isNamed}
// Always obtained
IG_WOE_Super_Box,7135,1,50,0 // 50x Fire_Bottle
IG_WOE_Super_Box,7136,1,50,0 // 50x Acid_Bottle
// Random group 1
IG_WOE_Super_Box,11500,400,10,1 // 10x Light_Yellow_Pot
IG_WOE_Super_Box,11501,300,10,1 // 10x Light_White_Pot
IG_WOE_Super_Box,11502,200,10,1 // 10x Light_Blue_Pot
IG_WOE_Super_Box,11503,150,5,1 // 5x Siege_White_Potion
IG_WOE_Super_Box,11504,150,5,1 // 5x Siege_Blue_Potion
// Random group 2 with rental
IG_WOE_Super_Box,658,80,1,2 // 10x Union_Of_Tribe
IG_WOE_Super_Box,1293,10,1,2,120 // 10x Velum_Jamadhar
IG_WOE_Super_Box,1294,10,1,2,120 // 10x Velum_Scare
  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   0
  • Joined:  11/21/13
  • Last Seen:  

bump for this! i want to know too how can i add custom box with custom item inside :D

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  928
  • Reputation:   170
  • Joined:  04/05/13
  • Last Seen:  

Just make a function like this ( This is simply code not good enough )

function	script	L_GIFTBOX	{
	set @randOBB,rand(4);
	if(@randOBB==0){
		getitem 501,10;
	}
	if(@randOBB==1){
		getitem 501,1;
	}
	if(@randOBB==2){
		getitem 501,1;
	}
	if(@randOBB==3){
		atcommand "@zeny -10000";
	}
	end;
}

Then use callfunc "L_GIFTBOX"; on item scripts.

 

//

 

Rental item, You can do it easy from reading documentation.

 

 

*rentitem <item id>,<time>{,<account_id>};

*rentitem "<item name>",<time>{,<account_id>};
 
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.
 
When rentals expire it will call the OnUnequip Script of the item. This can be used
for special cases such as removing a status change or resetting a variable or state
of the player.
 
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.
Edited by TARTs
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

Const.txt doesnt have IG_* unlike the oldest rathena

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

yes. same on me. it doest have IG_ 

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