Adding things do the database menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    barinar's Avatar
    barinar
    Guest

    Adding things do the database

    I want to make every hunter trainer able to teach tame beast. I have every trainer ID and I have the spell ID.

    What is the code for a sql file to make a certain trainer able to do this?

    Its something like "insert into trainer_spells......Values...."

    Im not exactly sure what to do, but I want to copy and paste it 31 times(# of trainers) and just change the ID of each one.

    Adding things do the database
  2. #2
    metha's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you are just going to change the id of each hunter trainer then why not just delete them and add a custom trainer there are many site that makes it easy to make

  3. #3
    barinar's Avatar
    barinar
    Guest
    No, im keeping all IDs the same, I just want to add the spell you can learn from it

  4. #4
    pcrew's Avatar Member
    Reputation
    54
    Join Date
    Jun 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it would be easier to use DB software such as navicat. just google 'navicat'.

  5. #5
    barinar's Avatar
    barinar
    Guest
    I have Navicat, I just don't want to create an entry for all 32 hunter trainers three times(Giving them three spells). I just want a code I can copy and paste 32 times and just change the entry to each of the hunter trainers ids

  6. #6
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Going to be something along the lines of
    INSERT INTO trainer_spells(trainer, spell, ...) SELECT entry, [Tame Beast spell id], ... FROM creature_names WHERE subname = "Hunter Trainer";

Similar Threads

  1. [Database] Need help adding gear to the database.
    By amii01 in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 05-23-2011, 07:40 AM
  2. [Problem] Connecting the database
    By Gorge in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 02-25-2008, 11:23 AM
  3. [Guide]How to give permission to remote acces the database [Navicat]
    By Knife in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 01-26-2008, 02:28 AM
  4. Funniest thing in the world
    By HavinFun in forum Screenshot & Video Showoff
    Replies: 13
    Last Post: 11-17-2007, 09:06 AM
All times are GMT -5. The time now is 05:04 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search