Need help with npc_trainer sql query menu

User Tag List

Results 1 to 5 of 5
  1. #1
    bergis1337's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with npc_trainer sql query

    Hello!, im trying to make a sql query that sets the spellcost to 0 of the npc with entry 26332 between the reqlevel 1-59 but i dont get it to work.. i tought it would be like:

    Code:
    UPDATE `npc_trainer` SET `Spellcost` = '0' WHERE `entry` = 26332 `reqlevel` between `1` and `59`
    someone help me please!

    Need help with npc_trainer sql query
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Try:
    Code:
    UPDATE `npc_trainer` SET `Spellcost` = '0' WHERE `entry` = 26332 AND `reqlevel` BETWEEN 1 AND 59;
    Last edited by stoneharry; 03-08-2011 at 05:18 PM.

  3. #3
    bergis1337's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it worked fine to execute but the spells from level 1-59 in that trainer still costs money :/

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Did you restart the server and has the data in the table been updated?

    SELECT * FROM `npc_trainer` WHERE `entry` = '26332' AND `reqlevel` BETWEEN 1 AND 59;

  5. #5
    bergis1337's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah i got it working now had to change it to between 0 and 59 since there was some spells that didnt req any level hehe i didnt notice that ^^, anyway thanks alot stoneharry!

Similar Threads

  1. Need help with one Query
    By Boiko7530bg in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 07-16-2009, 10:41 AM
  2. Need help with a query
    By TheZaronz in forum Programming
    Replies: 5
    Last Post: 06-29-2009, 06:17 PM
  3. Need Help With Navicat Query
    By imjustbackup in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 04-01-2009, 03:27 PM
  4. Need Help With two SQL Queries
    By BoP in forum Programming
    Replies: 3
    Last Post: 06-12-2008, 09:15 PM
  5. Need help with orginal sql file!
    By Ollox in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 03-28-2008, 08:30 PM
All times are GMT -5. The time now is 05:16 PM. 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