Jump to content
Cydh

[Brainstorming] Rental & Bound Card

Recommended Posts

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 :P)

 

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

 

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?

  • Upvote 1

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I support this  /$

Share this post


Link to post
Share on other sites

I support this  /$

thank you, but I more appreciate comment with idea :)

Share this post


Link to post
Share on other sites

How about making Rental / Bound Cards can only be apply on Rental or Bound items too? 

Share this post


Link to post
Share on other sites

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 :P)

 

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

 

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.

  • Upvote 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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) /heh

 

yes, rental item need the duration and the bound item just need the type.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

ahh great, the problem now is, mmo_charstatus limit. /heh

I tried with add unsigned int 'cardval0 ~ cardval3' to store time limit or bound type

reduced MAX_STORAGE from 600 to 300 /swt

  • Upvote 1

Share this post


Link to post
Share on other sites

Any news about this?
its good feature i guess 😄

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
Reply to this topic...

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

Important Information

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