|
You last visited: Today at 17:12
Advertisement
.SQL Batch
Discussion on .SQL Batch within the WoW Private Server forum part of the World of Warcraft category.
05/15/2014, 17:47
|
#1
|
elite*gold: 0
Join Date: Mar 2013
Posts: 5
Received Thanks: 1
|
.SQL Batch
Guten Tag Community, ich habe ein kleines Problem. Ich habe mir über wow-v ein paar Rüstungen erstellt und wollte sie nun ihn die Datenbank einbatchen. Jedoch kommt bei mir folgender Error.
Server (Patch: 5.1.0
Core: Trinity
[Err] 1054 - Unknown column 'unk0' in 'field list'
[Err] INSERT INTO item_template (entry, class, subclass, unk0, name, displayid, Quality, Flags, BuyCount, BuyPrice, SellPrice, InventoryType, AllowableClass, AllowableRace, ItemLevel, RequiredLevel, RequiredSkill, RequiredSkillRank, requiredspell, requiredhonorrank, RequiredCityRank, RequiredReputationFaction, RequiredReputationRank, maxcount, stackable, ContainerSlots, stat_type1, stat_value1, stat_type2, stat_value2, stat_type3, stat_value3, stat_type4, stat_value4, stat_type5, stat_value5, stat_type6, stat_value6, stat_type7, stat_value7, stat_type8, stat_value8, stat_type9, stat_value9, stat_type10, stat_value10, dmg_min1, dmg_max1, dmg_type1, dmg_min2, dmg_max2, dmg_type2, armor, holy_res, fire_res, nature_res, frost_res, shadow_res, arcane_res, delay, ammo_type, RangedModRange, spellid_1, spelltrigger_1, spellcharges_1, spellcooldown_1, spellcategory_1, spellcategorycooldown_1, spellid_2, spelltrigger_2, spellcharges_2, spellcooldown_2, spellcategory_2, spellcategorycooldown_2, spellid_3, spelltrigger_3, spellcharges_3, spellcooldown_3, spellcategory_3, spellcategorycooldown_3, spellid_4, spelltrigger_4, spellcharges_4, spellcooldown_4, spellcategory_4, spellcategorycooldown_4, spellid_5, spelltrigger_5, spellcharges_5, spellcooldown_5, spellcategory_5, spellcategorycooldown_5, bonding, description, PageText, LanguageID, PageMaterial, startquest, lockid, Material, sheath, RandomProperty, RandomSuffix, block, itemset, MaxDurability, area, Map, BagFamily, TotemCategory, socketColor_1, socketContent_1, socketColor_2, socketContent_2, socketColor_3, socketContent_3, socketBonus, GemProperties, RequiredDisenchantSkill, ArmorDamageModifier, ScriptName, DisenchantID, StatsCount)
VALUES (60000, 2, 10, -1, "Stab der Ewigkeit", 64172, 5, 0, 1, 0, 0, 17, -1, -1, 90, 90, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 41, 50000, 5, 50000, 46, 50000, 7, 50000, 18, 50000, 21, 50000, 30, 50000, 43, 50000, 7, 50000, 5, 50000, 10000, 16200, 0, 0, 0, 0, 50000, 11, 11, 11, 11, 11, 11, 1000000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, "GameMaster", 0, 0, 0, 0, 0, -1, 2, 0, 0, 50000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'internalitemhanler', 0, 10);
[Msg] Finished - Unsuccessfully
--------------------------------------------------
Ich weiß nicht genau was ich tun soll, ich habe schon gegoogelt und nichts passendes gefunden.
|
|
|
05/15/2014, 17:54
|
#2
|
elite*gold: 808
Join Date: Jul 2010
Posts: 7,984
Received Thanks: 1,652
|
Die Query scheint nicht in Ordnung zu sein. Ist ja nicht so schwer, das herauszufinden.
Den Fehler schmeißt er auch raus, das unk0 nicht existiert und dadurch die Query zu lang wird.
|
|
|
05/15/2014, 18:00
|
#3
|
elite*gold: 0
Join Date: Apr 2011
Posts: 545
Received Thanks: 55
|
Der Fehler sagt das die Spalte unk0 nicht existiert. Einfach entweder die Spalte adden oder den eintrag aus der sql rausnehmen
|
|
|
05/15/2014, 18:01
|
#4
|
elite*gold: 0
Join Date: Mar 2013
Posts: 5
Received Thanks: 1
|
@Marcel32754 Ja, dies ist mir bewusst. Ich weiß aber nicht wie :P.
|
|
|
05/15/2014, 18:04
|
#5
|
elite*gold: 0
Join Date: Apr 2011
Posts: 545
Received Thanks: 55
|
auf deine Tabelle rechts klick > Design Table
da kannst du spalten einfügen etc.
|
|
|
05/15/2014, 18:07
|
#6
|
elite*gold: 808
Join Date: Jul 2010
Posts: 7,984
Received Thanks: 1,652
|
Mach es doch nicht so kompliziert. Was muss er auswählen? tinyint(3), bigint (32), varchar(255) oder doch CURRENT TIMESTAMP?
Bearbeite einfach deine Query, dass du damit alle Items erstellen kannst, die du brauchst. Lösche die "sinnlosen", eher überflüssigen, Spalten aus der Query, evtl. braucht die eine oder andere Spalte noch ein Rename in deiner Query. Damit ersparst du Dir viel Arbeit.
MfG
|
|
|
05/15/2014, 18:24
|
#7
|
elite*gold: 0
Join Date: Mar 2013
Posts: 5
Received Thanks: 1
|
@Crazy Aber wo genau ändere(wie) ich die Query. Ich mache sowas zum ersten mal, dass ich mir noch nie passiert das ich nicht Batchen konnte^^.
Danke ihm voraus.
|
|
|
05/15/2014, 18:57
|
#8
|
elite*gold: 808
Join Date: Jul 2010
Posts: 7,984
Received Thanks: 1,652
|
Batche mal die Datenbankstruktur raus, ich werd sie für Dich anpassen.
MfG
|
|
|
05/22/2014, 08:19
|
#9
|
elite*gold: 125
Join Date: Sep 2013
Posts: 145
Received Thanks: 12
|
PHP Code:
INSERT INTO item_template (entry, class, subclass, name, displayid, Quality, Flags, BuyCount, BuyPrice, SellPrice, InventoryType, AllowableClass, AllowableRace, ItemLevel, RequiredLevel, RequiredSkill, RequiredSkillRank, requiredspell, requiredhonorrank, RequiredCityRank, RequiredReputationFaction, RequiredReputationRank, maxcount, stackable, ContainerSlots, stat_type1, stat_value1, stat_type2, stat_value2, stat_type3, stat_value3, stat_type4, stat_value4, stat_type5, stat_value5, stat_type6, stat_value6, stat_type7, stat_value7, stat_type8, stat_value8, stat_type9, stat_value9, stat_type10, stat_value10, dmg_min1, dmg_max1, dmg_type1, dmg_min2, dmg_max2, dmg_type2, armor, holy_res, fire_res, nature_res, frost_res, shadow_res, arcane_res, delay, ammo_type, RangedModRange, spellid_1, spelltrigger_1, spellcharges_1, spellcooldown_1, spellcategory_1, spellcategorycooldown_1, spellid_2, spelltrigger_2, spellcharges_2, spellcooldown_2, spellcategory_2, spellcategorycooldown_2, spellid_3, spelltrigger_3, spellcharges_3, spellcooldown_3, spellcategory_3, spellcategorycooldown_3, spellid_4, spelltrigger_4, spellcharges_4, spellcooldown_4, spellcategory_4, spellcategorycooldown_4, spellid_5, spelltrigger_5, spellcharges_5, spellcooldown_5, spellcategory_5, spellcategorycooldown_5, bonding, description, PageText, LanguageID, PageMaterial, startquest, lockid, Material, sheath, RandomProperty, RandomSuffix, block, itemset, MaxDurability, area, Map, BagFamily, TotemCategory, socketColor_1, socketContent_1, socketColor_2, socketContent_2, socketColor_3, socketContent_3, socketBonus, GemProperties, RequiredDisenchantSkill, ArmorDamageModifier, ScriptName, DisenchantID, StatsCount)
VALUES (60000, 2, 10, "Stab der Ewigkeit", 64172, 5, 0, 1, 0, 0, 17, -1, -1, 90, 90, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 41, 50000, 5, 50000, 46, 50000, 7, 50000, 18, 50000, 21, 50000, 30, 50000, 43, 50000, 7, 50000, 5, 50000, 10000, 16200, 0, 0, 0, 0, 50000, 11, 11, 11, 11, 11, 11, 1000000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, "GameMaster", 0, 0, 0, 0, 0, -1, 2, 0, 0, 50000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'internalitemhanler', 0, 10);
Mach es mal so !!!
|
|
|
05/23/2014, 15:12
|
#10
|
elite*gold: 0
Join Date: Sep 2012
Posts: 16
Received Thanks: 1
|
ALTER TABLE item_template ADD unk0 tinyint(1); ist die eine Möglichkeit oder unk0, raus und -1, raus.
|
|
|
 |
Similar Threads
|
Batch Benutzereinstellung
10/18/2012 - General Coding - 0 Replies
ähh..
|
C & batch?
06/01/2012 - C/C++ - 5 Replies
Hallo Liebe 'Community!
ich hab da mal eine frage:
So, ich habe eine batch datei gescriptet, nun will ich wissen, ob ich mit C++
Etwas ändern kann, hier mal ein beispiel:
@echo off
start *
|
Frage zu Batch
04/17/2011 - General Coding - 4 Replies
Hallo liebe E*pvper,
ich habe gestern mit dem "Programieren" von Batch-dateien angefangen.
Und nun habe ich ein Problem.
Ich will Firefox via J/N Abfrage starten,nur irgendwie bekomme ich das nicht hin.
Ich schreib hier mal meinen Code hin.
@echo off
ECHO Wollen sie Firfox wirklick starten? (j / n)
SET /p wahl=
|
another batch of keys try??
03/12/2010 - Heroes of Newerth - 1 Replies
8274827xm9vl8t4
imhsxpyips2i7oa
e2kt0o49q3iwgku
iyywtzjp0opdi31
uuklhotsebqkoo1
mr0vvo7ynvsbwud
tg5rvq1drqngauw
1zuuiq8kavmpxuq
73z758sjom4x3kx
1fa4ddl94eh7i0h
|
last batch of key.....
03/11/2010 - Heroes of Newerth - 1 Replies
nvn1b9uh91ts2ek
lfm68cfd7aeb7fp
gaofzcw1rp3elrz
i8a1ldecmsh5w4c
38sj88r30nz5mic
gic78cd84ajbz4v
gfgrl2pas1jkhin
j6dn1aqft5ze2y6
7br9u7pvistm8hp
ezy6xr7lavkkl4v
|
All times are GMT +1. The time now is 17:19.
|
|