[FRAGE]ITEM_ID_RANGES

01/09/2011 19:08 .Resistance#1
Hi
ich hätte eine Frage:
Was genau sind die ITEM_ID_RANGES in den CONFIG's, und was bewirken die?
01/09/2011 19:09 BaTushi16#2
Ichg laube wie wit die Waffe angreifen kann , z.B. von 1 Meter entfernung.
01/09/2011 19:57 .Resistance#3
ich mein die ITEM_ID_RANGES, die in den CONFIG's stehen
habs auch obren noch mla reingeschrieben
01/26/2011 08:01 gkilah#4
ITEM_ID_RANGES - are numbers of id in item table, if you drop a item in that map will start from 300000 and they count to xxxxxx.

but if you have noticed you got some number free.

If you wanna rearange your items in table "item" use this command :
Code:
ALTER TABLE `item` DROP `id`;
ALTER TABLE `item` AUTO_INCREMENT = 1;
ALTER TABLE `item` ADD `id` int UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
01/26/2011 10:11 <Custom>#5
Quote:
Originally Posted by gkilah View Post
ITEM_ID_RANGES - are numbers of id in item table, if you drop a item in that map will start from 300000 and they count to xxxxxx.

but if you have noticed you got some number free.

If you wanna rearange your items in table "item" use this command :
Code:
ALTER TABLE `item` DROP `id`;
ALTER TABLE `item` AUTO_INCREMENT = 1;
ALTER TABLE `item` ADD `id` int UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
With this command, the players are able to pickup the Items without any button?
Or i'm wrong?
01/26/2011 16:17 gkilah#6
With that command in navicat, u rearange all items ID in table 'item' start from ID 1.
02/13/2011 20:02 .SeVeN.#7
Wenn man die ITEM_ID_RANGES in der Config nicht verändert hat, kann man z.B. neue Waffen/Rüssis, die man einfügt, nicht sehen, wenn Sie zu lange IDs haben!
Das ganze geht ab xxxxxxxx los, glaub ich!

MfG
02/13/2011 20:27 .Resistance#8
Das sind ja ewig viele: 100000001 150000000
Das wären schon ca 50 Mio verschiedene mögliche Waffen un das steht in einem Core!
Ich glabe, dass die für etwas anderes da sind
02/13/2011 20:43 IgorGlock#9
Nein... ach egal. Müsst nicht wissen. Ihr bekommt Probleme wenn ihr mehr als 5 Mio Items in der Datenbank habt. Nur so... lernt einfach nur Englisch.
02/13/2011 21:38 .Resistance#10
Könntest du es vll ein bisschen genauer erklären?
03/27/2012 06:03 Benhero#11
Ja sry das ich es Pushe aber da es anscheinend einige immernoch nicht begriffen...
Es legt fest wie Neue Items die egal unter welchen Umständen enstehen (drop, befehl, etc) eingetragen werden. Bzw mit welcher ID. Angefangen wird bei dem ersten wert und hört bei dem letzen wert auf. Die Items werden also wie folgt erstellt.
Code:
ITEM_ID_RANGES 100 1000
Spieler X drop ein Item.
Da es das erste ist hat es die Id [U]100[/U]!
Sofort im anschluss erstellt GM Y sich ein item. Da es das 2te ist
bekommt es die ID [U]101[/U]
und so geht es weiter bis das Limit von 1000 erreicht ist.

Was danach geschieht weis ich nicht