Jump to content

[Brainstorming] Rental & Bound Card


Cydh

Recommended Posts


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

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


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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?

Link to comment
Share on other sites


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

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

I support this  /$

Link to comment
Share on other sites


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

I support this  /$

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

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

Link to comment
Share on other sites


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

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 5 weeks later...

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

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

  • 5 years later...

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

Any news about this?
its good feature i guess ?

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