Jump to content
  • 0
Sign in to follow this  
Hadeszeus

Need someone to confirm this problem

Question

I have implemented a rentitem feature for new players to try out certain cards. My problem is, If they compound the Rental Card to an equipment, the card becomes permanent to them. Is there anyway to edit the rentitem script command to make rented cards stay rented and not become permanent. and also if the rental card is compounded in a equipment when it expires is it possible to delete the rental card while compunded?

 

 

 

IS THIS PROBLEM NORMAL AND THERE'S NO QUICK FIX RIGHT NOW? PLEASE CONFIRM.

 

 

 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Rental items are supposed to be standalone equipments, this is why you're experiencing these issues.

 

Just look at what your inventory table is (or another table that manages items, actually):

CREATE TABLE IF NOT EXISTS `inventory` (  `id` int(11) unsigned NOT NULL auto_increment,  `char_id` int(11) unsigned NOT NULL default '0',  `nameid` int(11) unsigned NOT NULL default '0',  `amount` int(11) unsigned NOT NULL default '0',  `equip` int(11) unsigned NOT NULL default '0',  `identify` smallint(6) NOT NULL default '0',  `refine` tinyint(3) unsigned NOT NULL default '0',  `attribute` tinyint(4) unsigned NOT NULL default '0',  `card0` smallint(11) NOT NULL default '0',  `card1` smallint(11) NOT NULL default '0',  `card2` smallint(11) NOT NULL default '0',  `card3` smallint(11) NOT NULL default '0',  `expire_time` int(11) unsigned NOT NULL default '0',  `favorite` tinyint(3) unsigned NOT NULL default '0',  `bound` tinyint(1) unsigned NOT NULL default '0',  `unique_id` bigint(20) unsigned NOT NULL default '0',  PRIMARY KEY (`id`),  KEY `char_id` (`char_id`)) ENGINE=MyISAM;

 

nameid is the item ID# of that particular item and expire_time is the time at which the item expires. So, if you compound a card onto an item, all the entry information for the card is deleted and the equipment info is updated with the card inserted on its correct slot, making the expire_time of the card nowhere to be found, thus rendering it permanent.

 

A polite guess (not sure) is that if you rent slotted equipment and insert permanent cards on it, they should be lost once the rental time expires :P.

 

P.S.: This is not a script concern, moving to General support section ;).

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.