Can anyone help me in solving this problem??

03/28/2010 06:54 ~chicko~#1
I want to helpThe problem is
Repeat The Items When you exchange with other characters
When you say the exchange and not when +
Can anyone help me in solving this problem???

:(:(
03/28/2010 07:57 Arcо#2
Be a bit more specific.
I don't get what you mean by "dignitaries."
Btw, wrong section.
#request move.
03/28/2010 08:09 ~chicko~#3
Quote:
Originally Posted by .Arco View Post
Be a bit more specific.
I don't get what you mean by "dignitaries."
Btw, wrong section.
#request move.
dignitaries = characters

sorry:(
03/28/2010 08:52 Arcо#4
So you mean while trading other characters?
03/28/2010 09:26 ~chicko~#5
yas

The problem is the items are repeated when trading with any other characters
for 5165 source :)
03/28/2010 10:05 pro4never#6
Re-write the entire trade system would be my first instinct... I don't trust any base lotf system. They are usually bugged out the ass.


Basically you want to

A: Check that the client has the item when adding it to the trade window (so you can't edit it client side and basically dupe/create items)
B: Check that the target client has enough space in inventory
C: Delete the item from the starting character and update their client
D: Add the item to the target character and update their client

Ooh and of course do a trade dictionary to store the items inbetween the steps so you can trade more than 1 item at a time.

Should be fairly simple, you just gotta do server side checks and make sure you are deleting the item and adding it to the new client... and make sure when deleting it, if it fails to delete then you don't add it to the new char (cause if not they could drop it or whatever and again, dupe the item)
03/28/2010 10:42 ~chicko~#7
Quote:
Originally Posted by pro4never View Post
Re-write the entire trade system would be my first instinct... I don't trust any base lotf system. They are usually bugged out the ass.


Basically you want to

A: Check that the client has the item when adding it to the trade window (so you can't edit it client side and basically dupe/create items)
B: Check that the target client has enough space in inventory
C: Delete the item from the starting character and update their client
D: Add the item to the target character and update their client

Ooh and of course do a trade dictionary to store the items inbetween the steps so you can trade more than 1 item at a time.

Should be fairly simple, you just gotta do server side checks and make sure you are deleting the item and adding it to the new client... and make sure when deleting it, if it fails to delete then you don't add it to the new char (cause if not they could drop it or whatever and again, dupe the item)
Can you explain to me the order and detail steps to resolve this problem?
03/28/2010 11:53 Korvacs#8
Moved.
03/30/2010 08:49 ~chicko~#9
up