[REQ] SQL File for quests

Results 1 to 4 of 4
  1. #1
    Sorcerer Supreme Bloodshed2007 is offline
    Member +Rank
    Jul 2007 Join Date
    Bloodshed Black LairLocation
    406Posts

    [REQ] SQL File for quests

    hi

    does anyone know how to make a SQL query so that it puts items into a vendor if they are a specific type of item like quest item..

    it would take a long time to get every item that is a quest item and put it into the vendor db..

    cheers

    -bloodshed-


  2. #2
    Elite Member waymirec is offline
    Member +Rank
    Jan 2008 Join Date
    121Posts

    Re: [REQ] SQL File for quests

    Well you can pull the list of quest items by doing

    Code:
    SELECT * FROM items WHERE `bonding` > 2
    So then I guess you could do something like

    Code:
    INSERT INTO vendors (entry,item,amount,max_amount) SELECT <vendor id>,entry,#,# FROM `items` WHERE `bonding` > 2
    Changing <vendor id> to the id of the vendor you want them dumped into, as well as putting in an amt and max_amount values in place of the hashes.

  3. #3
    Elite Member marcelo_20xx is offline
    Member +Rank
    Dec 2007 Join Date
    In my dark roomLocation
    143Posts

    Re: [REQ] SQL File for quests

    Also if you are interested I had stripped all the ID of quest Items for a mod in which every mob had a 100% chance of dropping the item you could use the id to insert into the vendor if you like...Ill post the link later though I am at work right now.

  4. #4
    Sorcerer Supreme Bloodshed2007 is offline
    Member +Rank
    Jul 2007 Join Date
    Bloodshed Black LairLocation
    406Posts

    Re: [REQ] SQL File for quests

    ok thanks for the help :)



Advertisement