Jump to content

Question

Posted (edited)

How can i made one list with unique items.
I want to make one armor "tradeable" but when one of players wearing can be trade again.

 

 

 

 


You got the item in your inventory, not equipped yet - you may trade it
You got the item in your inventory and you equipped it once - you can't trade it

It's like, it's gonna be your own 'unique' item which can't be traded if item has been used previously. Correct?


Interlude
L2JFrozen

Rev: 1117

Edited by StinkyMadness

Recommended Posts

  • 0
Posted

I want to make one armor "tradeable" but when one of players wearing can be trade again.

Which one is it?

Just play the game as it is, don't try to make it wow-like.

  • 0
Posted

Which one is it?

Just play the game as it is, don't try to make it wow-like.

Thx for your info but i ask something else not what looks i want ;)

 

If you or something else can help me about that i will be happy...

 

  • 0
Posted

What exactly you want?

I can't get that "I want to make one armor "tradeable" but when one of players wearing can be trade again."..

  • 0
Posted

I want to make when you buy a Dark Crystal Robe armor from show you can trade it
But if you have wearing this then you are the only one how can to wearing this armor ( You cant trade this armor again )

  • 0
Posted (edited)

God's that broken english.. You mean that the armor can be equipped only by ONE person..?

 

You got the item in your inventory, not equipped yet - you may trade it

You got the item in your inventory and you equipped it once - you can't trade it

 

It's like, it's gonna be your own 'unique' item which can't be traded if item has been used previously. Correct?

 

 

Greeks..

 

If that's what you mean, then.. It's not gonna be easy and so, no one will give you the code. Marketplace, your only chance.

Edited by SweeTs
  • 0
Posted

God's that broken english.. You mean that the armor can be equipped only by ONE person..?

 

You got the item in your inventory, not equipped yet - you may trade it

You got the item in your inventory and you equipped it once - you can't trade it

 

It's like, it's gonna be your own 'unique' item which can't be traded if item has been used previously. Correct?

 

 

Greeks..

 

If that's what you mean, then.. It's not gonna be easy and so, no one will give you the code. Marketplace, your only chance.

Eexactly - And yes sorry for my english.

  • 0
Posted

God's that broken english.. You mean that the armor can be equipped only by ONE person..?

 

You got the item in your inventory, not equipped yet - you may trade it

You got the item in your inventory and you equipped it once - you can't trade it

 

It's like, it's gonna be your own 'unique' item which can't be traded if item has been used previously. Correct?

 

 

Greeks..

 

If that's what you mean, then.. It's not gonna be easy and so, no one will give you the code. Marketplace, your only chance.

Acctualy its can be done very easy using Shadow item module, but only thing is need to be done is reverse it  a bit!

  • 0
Posted

Shadow module? I don't think so, shadow weapons are be default not tradeable and they only use the "timer" to disappear. So, I don't get your point how shadow module could be useful ;)

  • 0
Posted

Acctualy its can be done very easy using Shadow item module, but only thing is need to be done is reverse it  a bit!

Shadow items approach is very different... this one should include database con, that inserts every armor that has been equipped into an table.

  • 0
Posted (edited)

Shadow items approach is very different... this one should include database con, that inserts every armor that has been equipped into an table.

He is a client mod guy, don't busy to explain.. :troll:

 

Like I said, it's not gonna be easy as you think. So, if you want you can try your lucky @ marketplace. There is (even) no point to keep this topic open..

Edited by SweeTs
  • 0
Posted (edited)

Bunch of naaps, he wants a bound system.

 

Simply create a new boolean on L2ItemInstance, set it true on the wear method, and add a check in the wear method about the boolean.

 

About save/restore, it's part of regular L2ItemInstance so check how it is saved/loaded and add your crap line whereever you need.

 

Total amount of code lines, less than 20 : one variable + getter/setter on L2ItemInstance, the check + variable = true on the wear method, and finally the save and the restore wherever it's done on L2JFrozen.

Edited by Tryskell
  • 0
Posted

Bunch of naaps, he wants a bound system.

 

Simply create a new boolean on L2ItemInstance, set it true on the wear method, and add a check in the wear method about the boolean.

 

About save/restore, it's part of regular L2ItemInstance so check how it is saved/loaded and add your crap line whereever you need.

 

Total amount of code lines, less than 20 : one variable + getter/setter on L2ItemInstance, the check + variable = true on the wear method, and finally the save and the restore wherever it's done on L2JFrozen.

Cool... can you write then that "Less than 20 lines" cuz i not so skilled to make my Code :S

  • 0
Posted (edited)

Bunch of naaps, he wants a bound system.

 

Simply create a new boolean on L2ItemInstance, set it true on the wear method, and add a check in the wear method about the boolean.

 

About save/restore, it's part of regular L2ItemInstance so check how it is saved/loaded and add your crap line whereever you need.

 

Total amount of code lines, less than 20 : one variable + getter/setter on L2ItemInstance, the check + variable = true on the wear method, and finally the save and the restore wherever it's done on L2JFrozen.

I thought he wants the armor to be tradeable on purchasing, and then becomes non-tradeable once the player equip it.. :lol:

Edited by Tessa
Guest
This topic is now closed to further replies.


×
×
  • Create New...