|
You last visited: Today at 00:28
Advertisement
Disappearing items from itemshop
Discussion on Disappearing items from itemshop within the Metin2 Private Server forum part of the Metin2 category.
12/19/2013, 00:14
|
#1
|
elite*gold: 0
Join Date: Jul 2010
Posts: 74
Received Thanks: 1
|
Disappearing items from itemshop
Hello everyone.
First at all i would to say "sorry" for my english language.
So, i have 2 servers, both based on game2089 and i have problem...
On first server several days in a row players complain about problem with item shop. The items which they bought suddenly disappear after relog / teleport. 3/4 days in month is good but sometimes as i say "several days in a row" the problem appear
On second server i have problem all time. Players lost items from item-shop after relog / teleport. Dont know how to fix this.
I have enabled logging all mysql queries, and i check in logs and those queries (which add items which later are lost exists).
I looked into item (in player database) and I wonder why id of items starts from
10000010
then suddenly jumps to
30017846
and
50009733
and
70002772
and again jumps to
90000310
?? Why they are not continously from 1....?
I found also in CONFIG of auth something like that
ITEM_ID_RANGE: 000000001 000000002
And something like that in conf.txt from db folder
ITEM_ID_RANGE = 2000000000 2100000000
What is this?
|
|
|
12/19/2013, 02:44
|
#2
|
elite*gold: 1000
Join Date: Mar 2009
Posts: 1,408
Received Thanks: 1,006
|
Hey, it's a problem of, how they get their Items!
I think your itemshop script inserts the item directly into the item table?
That's wrong, and is the reason, why items are disappearing!
You should better use the item_award for itemshop items!
|
|
|
12/19/2013, 03:03
|
#3
|
elite*gold: 44
Join Date: May 2010
Posts: 2,053
Received Thanks: 1,747
|
Just about your curiosity about the ID ranges:
Assume you have several cores and channels running, all having several players active at the same time.
Now an item is created (e.g. bought from NPC, assigned from quest, dropped etc.) on one of them (call that game core A) and it needs an ID.
The game uses a caching architecture which will only synchronise the database at certain intervals. Directly passing any single action to the database would cause massive performance drops.
So now on A you have an item which has not yet been saved to the database, but yet has a unique ID.
Now if the game wouldn't use separate ID ranges, cores would start using the same IDs for different items.
Let's say after some item has been created on A, another item is created on B.
B, however, doesn't know that A already created an item with the same ID.
Hence, A and B may not use the same pool of IDs to use for new items.
Now this also affects your itemshop for several reasons: - You need to care for IDs you use for items you (manually - e.g. shop script) add to your item table
- Items in the database will not be known by the game cores until they are explicitly loaded (which happens e.g. when logging in or opening the safebox or mall box)
You were better off to use the item_award table as already suggested, just have a look at the column names and you will understand how to use it.
However, on one server I used to work on, the item_award table handling was buggy, causing single items to be delayed seemingly randomly (from minutes to days).
|
|
|
12/19/2013, 16:55
|
#4
|
elite*gold: 0
Join Date: Jul 2010
Posts: 74
Received Thanks: 1
|
Quote:
Originally Posted by Coniesan
Hey, it's a problem of, how they get their Items!
I think your itemshop script inserts the item directly into the item table?
That's wrong, and is the reason, why items are disappearing!
You should better use the item_award for itemshop items! 
|
Ye ye bro, my query for adding items is:
Code:
$item_added = $players->query('INSERT INTO `item` (`owner_id`, `window`, `pos`, `count`, `vnum`, `socket0`, `socket1`, `socket2`) VALUES ('.$logged_account->getId().', \'MALL\', '.$free_stock.', '.$item['item_count'].', '.$item['item_id'].', \'1\', \'1\', (SELECT `value0` FROM `item_proto` WHERE `vnum` = '.$item['item_id'].'));');
@Mashkin
thanks for the info!
so, my actually settings of ITEM_ID_RANGE are corretly?
in CONFIG from auth directory
ITEM_ID_RANGE: 000000001 000000002
and in conf.txt from db directory
ITEM_ID_RANGE = 2000000000 2100000000
edit:
anyway i make new script for IS and so far all works !!
|
|
|
02/15/2014, 15:26
|
#5
|
elite*gold: 0
Join Date: Jul 2010
Posts: 74
Received Thanks: 1
|
Hello guys, maybe You will know how to fix disappearing items from itemshop which have time left to use? When i create these items (for example costumes) by GM via command all is ok, but when i bought it in IS (using item_award table) the item disappearing in few seconds.
|
|
|
 |
Similar Threads
|
Disappearing items from Item-Shop from web.
11/23/2013 - Metin2 Private Server - 0 Replies
Hello everyone.
First at all i would to say "sorry" for my english language.
So, i have 2 servers, both based on game2089 and i have problem...
On first server several days in a row players complain about problem with item shop. The items which they bought suddenly disappear after relog / teleport. 3/4 days in month is good but sometimes as i say "several days in a row" the problem appear
On second server i have problem all time. Players lost items from item-shop after relog /...
|
[Help]Disappearing Items
07/10/2012 - Shaiya - 17 Replies
Hello all, I have in recent weeks had a problem with items disappearing from players on my server. I have seen a post at some point covering this but I can't seem to find it. I'd like to be able to correct this without getting rid of the anti-dupe feature but I can't seem to come up with the answer no matter how much I look into it, and I don't ask for help until all resources are covered... (I love to learn it for myself & quickly usually:P )
Anyone have a clue how I can resolve this?
TY...
|
Metin Problem Items disappearing
07/16/2011 - Metin2 Private Server - 0 Replies
Hy guys!
I don't know what is happening to my server from a while.Everything worked perfectly but everytime i reboot the server,items from players disappear(like all of them).I tested myself and after reboot all my inventory is empty.
I hope i'll find some help here.:confused:
Thank you
|
[Question]Items disappearing
09/09/2010 - Shaiya Private Server - 3 Replies
has anyone ever heard of items just poofing out of existence? I mean literally just disappearing.
any answer would be helpful
|
Bugged ITEMS ! buff stacking & no disappearing
11/04/2009 - WoW PServer Exploits, Hacks & Tools - 5 Replies
For arcemu some of these may work on Hearthstone, mangos and trinity or some other core
talisman of ascendance-Talisman of Ascendance - Item - World of Warcraft
the item gives on the fifth stack 200 SP the buff is suppose to fade after 20 sec but on arcemu it stays until u die
Jom Gabbar-Jom Gabbar - Item - World of Warcraft
same bug as talisman of ascendance but here it just give 65 AP
Mind Quickening Gem-Mind Quickening Gem - Item - World of Warcraft
|
All times are GMT +1. The time now is 00:29.
|
|