A couple of questions with LUA, C++, and vendors menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Presto12's Avatar Member
    Reputation
    5
    Join Date
    Mar 2007
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A couple of questions with LUA, C++, and vendors

    Hey I was wondering if I could make a NPC that sells items but only some of the time and it can only carry 1 in stock, then you have to wait again for it to come back.

    Another thing is if I could make an achievement that requires you to kill two of my bosses 15seconds apart from each other. And make the reward a token or something

    Also I was wondering how you can script a boss to where if the one of the bosses dies the other one gets stronger.

    Finally is how can I get a boss to use a sound that other bosses use like "Ashes to ashes".


    Thanks in advance to whomever helps me!

    A couple of questions with LUA, C++, and vendors
  2. #2
    bigjohnson4's Avatar Member
    Reputation
    12
    Join Date
    Mar 2007
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. What do you mean, sometimes? A vendor either sells items or it doesn't. To set a max value on a vendor item, use '.npc vendoradditem <ID> 1', or set the max in your database. 1 sets it to sell 1 item max per person.

    2. You won't be able to make your own achievements.

    3. If you script your bosses, you can set a global variable when one of them dies, and allow the other to check for that variable, then go from there.

    4. You can search for sounds in SoundEntries.dbc, you will need a tool to read your DBC files.

  3. #3
    brodie1600's Avatar Member
    Reputation
    2
    Join Date
    Jul 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Go into your 'vendors' table in SQLyog, HeidiSQL, or Navicat (or whatever you may use). Create an entry (the entry # will be your NPC ID), add the item ID, put the amount as 1, the max amount as 1. Then edit the inctime column as the time you wish to have the item come back in the vendor table (this number is in seconds).

    As for the achievement part, you will need a DBC editor to edit the raw DBC files in your main server folder. This is a very difficult process considering the columns don't have names, only numbers. If you wish to create your own achievement, you will need to find a guide that tells you what each column represents.

    And for the LUA scripting and boss sounds, I won't be able to help you. All I can say is that you will need a program such as Notepad++ for LUA editing, and the boss sounds will probably be able to be configured in your database (e.g. SQLyog).


    Hope this helps!

  4. #4
    bigjohnson4's Avatar Member
    Reputation
    12
    Join Date
    Mar 2007
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by brodie1600 View Post
    Go into your 'vendors' table in SQLyog, HeidiSQL, or Navicat (or whatever you may use). Create an entry (the entry # will be your NPC ID), add the item ID, put the amount as 1, the max amount as 1. Then edit the inctime column as the time you wish to have the item come back in the vendor table (this number is in seconds).

    As for the achievement part, you will need a DBC editor to edit the raw DBC files in your main server folder. This is a very difficult process considering the columns don't have names, only numbers. If you wish to create your own achievement, you will need to find a guide that tells you what each column represents.

    And for the LUA scripting and boss sounds, I won't be able to help you. All I can say is that you will need a program such as Notepad++ for LUA editing, and the boss sounds will probably be able to be configured in your database (e.g. SQLyog).


    Hope this helps!
    Thanks for posting pretty much exactly what I posted earlier.


    You can create new achievements, but you would need to edit the client and create a patch to send to all of your players, as well as the DBC files.


    And no, boss sounds are not defined in the database unless you are using Trinity/MaNGOs that retrieves script information from the database directly.

Similar Threads

  1. couple of questions about servers connecting and update
    By viperguts in forum WoW EMU Questions & Requests
    Replies: 12
    Last Post: 12-13-2008, 04:26 AM
  2. Unbreakable WoW!! *NEED A COUPLE GM's* Custom instance with lua boss now up!
    By nickelo in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 06-19-2008, 01:03 PM
  3. Whats wrong with creature loot and my LUA Scripts
    By controlsx2 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 05-06-2008, 01:48 PM
  4. I'm having trouble with lua and cant same to fix it.
    By Bapes in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 04-06-2008, 05:29 PM
All times are GMT -5. The time now is 07:50 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