Register for your free account! | Forgot your password?

Go Back   elitepvpers > Metin2 > Metin2 PServer - Discussions / Questions
You last visited: Today at 12:18

  • Please register to post and access all features, it's quick, easy and FREE!


Disappearing items from itemshop

Reply
 
Old   #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?



kombajnik is offline  
Old 12/19/2013, 02:44   #2
 
elite*gold: 1000
Join Date: Mar 2009
Posts: 1,405
Received Thanks: 1,005
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!


Coniesan is offline  
Thanks
1 User
Old 12/19/2013, 03:03   #3

 
elite*gold: 44
Join Date: May 2010
Posts: 2,053
Received Thanks: 1,744
Just about your curiosity about the ID ranges:


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).
Mashkin is offline  
Thanks
1 User
Old 12/19/2013, 16:55   #4
 
elite*gold: 0
Join Date: Jul 2010
Posts: 74
Received Thanks: 1
Quote:
Originally Posted by Coniesan View Post
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 !!


kombajnik is offline  
Old 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.


kombajnik is offline  
Reply



« Fragen | Vote4Coins Hilfe »

Similar Threads
Disappearing items from Item-Shop from web.
11/23/2013 - Metin2 PServer - Discussions / Questions - 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 PServer - Discussions / Questions - 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 12:18.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.