Vendor SQL Scripting menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Karyuudo's Avatar Member
    Reputation
    31
    Join Date
    Jan 2008
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Vendor SQL Scripting

    Kay, ive been working on this all day, and It's getting to the point that I'm gonna scream... I keep getting the Error with Scyther's Blizzlike Repack V4.0 (( Awesome Coding btw, I have yet to find one bug )) of Error Code: 1136 - Column count doesn't match value count at row 1... and I just dont get it, even though Ive counted the columns numerous timed, and there is 50 Based on the Vendors.sql so... Anyone think you can find the problem with this vendor table?:
    Before I post it, here is the Column table for the hell of it...

    Code:
         TABLE `creature_proto` (
      `entry` int(30) unsigned NOT NULL default '0',
      `minlevel` int(30) unsigned NOT NULL,
      `maxlevel` int(30) unsigned NOT NULL,
      `faction` int(30) unsigned NOT NULL default '0',
      `minhealth` int(30) unsigned NOT NULL,
      `maxhealth` int(30) unsigned NOT NULL,
      `mana` int(30) unsigned NOT NULL default '0',
      `scale` float NOT NULL default '0',
      `npcflags` int(30) unsigned NOT NULL default '0',
      `attacktime` int(30) unsigned NOT NULL default '0',
      `attacktype` int(4) NOT NULL default '0',
      `mindamage` float NOT NULL default '0',
      `maxdamage` float NOT NULL default '0',
      `rangedattacktime` int(30) unsigned NOT NULL default '0',
      `rangedmindamage` float unsigned NOT NULL default '0',
      `rangedmaxdamage` float unsigned NOT NULL default '0',
      `mountdisplayid` int(30) unsigned NOT NULL default '0',
      `equipmodel1` int(30) unsigned NOT NULL default '0',
      `equipinfo1` int(30) unsigned NOT NULL default '0',
      `equipslot1` int(30) unsigned NOT NULL default '0',
      `equipmodel2` int(30) unsigned NOT NULL default '0',
      `equipinfo2` int(30) unsigned NOT NULL default '0',
      `equipslot2` int(30) unsigned NOT NULL default '0',
      `equipmodel3` int(30) unsigned NOT NULL default '0',
      `equipinfo3` int(30) unsigned NOT NULL default '0',
      `equipslot3` int(30) unsigned NOT NULL default '0',
      `respawntime` int(30) unsigned NOT NULL default '0',
      `armor` int(30) unsigned NOT NULL default '0',
      `resistance1` int(30) unsigned NOT NULL default '0',
      `resistance2` int(30) unsigned NOT NULL default '0',
      `resistance3` int(30) unsigned NOT NULL default '0',
      `resistance4` int(30) unsigned NOT NULL default '0',
      `resistance5` int(30) unsigned NOT NULL default '0',
      `resistance6` int(30) unsigned NOT NULL default '0',
      `combat_reach` float NOT NULL default '0',
      `bounding_radius` float NOT NULL default '0',
      `auras` longtext NOT NULL,
      `boss` int(11) unsigned NOT NULL default '0',
      `money` int(30) NOT NULL default '0',
      `invisibility_type` int(30) unsigned NOT NULL,
      `death_state` int(30) unsigned NOT NULL,
      `walk_speed` float NOT NULL default '2.5',
      `run_speed` float NOT NULL default '8',
      `fly_speed` float NOT NULL default '14',
      `extra_a9_flags` int(30) NOT NULL default '0',
      `spell1` int(30) NOT NULL default '0',
      `spell2` int(30) NOT NULL default '0',
      `spell3` int(30) NOT NULL default '0',
      `spell4` int(30) NOT NULL default '0',
      `spell_flags` int(30) NOT NULL default '0',
    Vendor in Question:
    Code:
    INSERT INTO `creature_proto` VALUES (646260, 255, 255, 35, 9999999, 9999999, 999999, 1, 128, 100, 0, 999999, 999999, 100, 999999, 999999, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36000, 400000, 0, 0, 0, 0, 0, 0, 1, 1, '0', 1, 0, 0, 0, 80, 120, 250, 0, 0, 0, 0, 0, 0);
    
    INSERT INTO `creature_names` VALUES (646260, "Example Vendor", "Example Vendor",'', 0, 7, 0, 0, 0, 0, 100, 0, 0, 0, 1, 1, 0, 0);

    Vendor SQL Scripting
  2. #2
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    INSERT INTO creature_names (entry, name, subname, info_str, Flags1, type, family, rank, male_displayid, female_displayid, male_displayid2, female_displayid2, civilian, leader) VALUES ('646260','Example Vendor','Example Vendor','','4224','7','0','0','128','0','0','0','0','0')
    
    INSERT INTO creature_proto (entry, minlevel, maxlevel, faction, minhealth, maxhealth, mana, scale, npcflags, attacktime, mindamage, maxdamage, rangedattacktime, rangedmindamage, rangedmaxdamage, mountdisplayid, equipmodel1, equipmodel2, equipmodel3, respawntime, armor, resistance1, resistance2, resistance3, resistance4, resistance5, resistance6, combat_reach, auras, boss, money, invisibility_type, death_state, walk_speed, run_speed, fly_speed) VALUES ('646260','255','255','35','99999','99999','999999','4224','1500','10000','1000','0','0','0','0','0','0','0','36000','0','0','0','0','0','0','0','1','0','0','0','0','0','2.5','8','14')
    Just made something, it's made in ADE 1.2.2 and it should work, your problem was that the tool you used, has a old structure, or your numbers were wrong.

  3. #3
    Karyuudo's Avatar Member
    Reputation
    31
    Join Date
    Jan 2008
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I Wrote that Script, Cant trust Programs/Wow-V cause it never seems to get it right, thanks, ill try Executing this File now.
    Nope Didnt Work, Same Error As Last time.
    Error occured at:2008-08-03 22:59:24
    Code:
    Line no.:1
    Error Code: 1136 - Column count doesn't match value count at row 1 Query:
    INSERT INTO creature_proto (entry, minlevel, maxlevel, faction, minhealth, maxhealth, mana, scale, npcflags, attacktime, mindamage, maxdamage, rangedattacktime, rangedmindamage, rangedmaxdamage, mountdisplayid, equipmodel1, equipmodel2, equipmodel3, respawntime, armor, resistance1, resistance2, resistance3, resistance4, resistance5, resistance6, combat_reach, auras, boss, money, invisibility_type, death_state, walk_speed, run_speed, fly_speed) VALUES ('646260','255','255','35','99999','99999','999999','4224','1500','10000','1000','0','0','0','0','0','0','0','36000','0','0','0','0','0','0','0','1','0','0','0','0','0','2.5','8','14')
    I'm getting so Frustrated, Can't you Help Scyther? lol Just for a reason im trying to enter a Vendor into this, im making a Raiding realm.
    Last edited by Karyuudo; 08-04-2008 at 01:06 AM.

  4. #4
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do the entire NPC from the database, I hope you know how =P Then add the correct flag only.

  5. #5
    Ickybad's Avatar Contributor
    Reputation
    214
    Join Date
    Apr 2008
    Posts
    904
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd be more then happy to remake this npc for you .

  6. #6
    Karyuudo's Avatar Member
    Reputation
    31
    Join Date
    Jan 2008
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you would I would love you so much, Im already loving your Repack...do you accept donations I'd so donate to you if I could lmao your awesome.


    Edit: Well after doing alot of Number Crunching I finally looked in my creature_proto and creature_names and I was shocked... the Vendors were already in the Database, the error Iv'e been getting was from the vendors tables, and it was because I was missing one value... I feel Extremely stupid now... anyway, for the Effort you guys put into helping me, I give Ye a +Rep Thanks!
    Last edited by Karyuudo; 08-05-2008 at 02:18 AM.

Similar Threads

  1. Vendors sql????
    By Royalaty in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 07-09-2008, 02:09 PM
  2. Basic SQL Scripting Guide
    By R0flz0r in forum WoW EMU Guides & Tutorials
    Replies: 7
    Last Post: 04-17-2008, 06:34 PM
  3. Need SQL script.
    By EmuX in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 03-17-2008, 07:43 AM
  4. 2 Mount SQL Scripts and a World Enlarger!
    By Festigio in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 01-26-2008, 09:08 PM
  5. Basic understanding of SQL Scripting.
    By Drop_Warcrack in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 12-28-2007, 09:15 AM
All times are GMT -5. The time now is 07:16 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search