Cydh Posted August 1, 2014 Posted August 1, 2014 We all know Card can be used as rental or bound item. But the issue is, when that card is compound to equip, the expire time as rental item or the bound status will erased. (so don't ever make rental/bound item for card ) When card is compound, it calls pc_insert_card(). there we will get that the card will be deleted pc_delitem(sd,idx_card,1,1,0,LOG_TYPE_OTHER). And, if card is removed from equip, script makes new item instead of "gives" back the old card data. See at BUILDIN_FUNC(successremovecards) And now, I think it will be cool if card is fully possible as rental & bound item, I bet many PS owner need something like this too. I need some idea, how to make this possible, must we make new sql table to stores the compound card data, give increment ID then use GetWord or such so we can look back while remove card from the equip? Any thoughts? 1 Quote
nanakiwurtz Posted August 1, 2014 Posted August 1, 2014 The table will grow rapidly when there are lots of people that has bound card. I guess the table is only for storing trace when the card is compounded into equipment, and will be erased when the card gets uncompounded, right? Quote
Cydh Posted August 1, 2014 Author Posted August 1, 2014 The table will grow rapidly when there are lots of people that has bound card. I guess the table is only for storing trace when the card is compounded into equipment, and will be erased when the card gets uncompounded, right? yes Quote
Cydh Posted August 1, 2014 Author Posted August 1, 2014 I support this thank you, but I more appreciate comment with idea Quote
Radian Posted August 1, 2014 Posted August 1, 2014 How about making Rental / Bound Cards can only be apply on Rental or Bound items too? Quote
Darkpurple Posted August 1, 2014 Posted August 1, 2014 We all know Card can be used as rental or bound item. But the issue is, when that card is compound to equip, the expire time as rental item or the bound status will erased. (so don't ever make rental/bound item for card ) When card is compound, it calls pc_insert_card(). there we will get that the card will be deleted pc_delitem(sd,idx_card,1,1,0,LOG_TYPE_OTHER). And, if card is removed from equip, script makes new item instead of "gives" back the old card data. See at BUILDIN_FUNC(successremovecards) And now, I think it will be cool if card is fully possible as rental & bound item, I bet many PS owner need something like this too. I need some idea, how to make this possible, must we make new sql table to stores the compound card data, give increment ID then use GetWord or such so we can look back while remove card from the equip? Any thoughts? Good idea!!! This thing which that I wanted before. 1 Quote
Skorm Posted August 2, 2014 Posted August 2, 2014 Would it be possible to use the items id? Like the first 16 bits would be used to store information about how long the item remains bound and the last 16 would be for the cards id? I'm not really sure how much space is needed for bound items... All your doing is checking the amount of time remaining right? x_x Quote
Cydh Posted August 2, 2014 Author Posted August 2, 2014 Would it be possible to use the items id? Like the first 16 bits would be used to store information about how long the item remains bound and the last 16 would be for the cards id? I'm not really sure how much space is needed for bound items... All your doing is checking the amount of time remaining right? x_x yes, I was thinking to make like that, but it needs to change all card0~card3 to int32, many to do (but seems this is the most effective way) yes, rental item need the duration and the bound item just need the type. Quote
Lighta Posted August 3, 2014 Posted August 3, 2014 so what is it will you increase card0-card3 to retain information in it with a mask or will you go for a new table ? if it's a new table what the struct will look like and how will you recognize the item ? struct item_componed { int aid; int itemid; //note this is note nameid but an unique itemid in card_bound[]; //array of wich card of the index was bounded with bounder number } now with this I suppose when we create an item we will give him an unique itemid, which could also be good for the uniqueid stuff. then if we do this all the function that destroy and create a new item need to be modified to retain the itemid. Quote
Cydh Posted September 1, 2014 Author Posted September 1, 2014 ahh great, the problem now is, mmo_charstatus limit. I tried with add unsigned int 'cardval0 ~ cardval3' to store time limit or bound type reduced MAX_STORAGE from 600 to 300 1 Quote
LearningRO Posted July 30, 2020 Posted July 30, 2020 Any news about this? its good feature i guess Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.