Cant view things on NPC menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Ziddy1337's Avatar Contributor
    Reputation
    136
    Join Date
    Aug 2008
    Posts
    486
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cant view things on NPC

    I have tried making my own Warp npc, and i have compiled the dll and it works fine, however i cant correctly get the npc into the database.

    I can spawn the npc ingame but when i speak to it, it just says hello, and doesnt have any options.

    Here is the code im using:

    PHP Code:
    INSERT INTO `creature_namesVALUES ('99230''FlashWoW NPC''Teleporter''0''0''4''4''0''0''0''20306''20306''0''0''1''1''1''1');

    INSERT INTO `creature_protoVALUES ('99230''200''200''35''20000''20000''1''1''1''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''2. 
    Also, when i try and put the sql query into my database, i get this error@

    PHP Code:
    Error Code 1064
    You have an error in your SQL syntax
    check the manual that corresponds to your MySQL server version for the right syntax to use near ''2.' at line 1
    (0 ms taken) 
    Does anybody know how i can fix this, so the teleport option appear properly?

    +Rep and much love to all who reply (If its a decent reply)

    Cant view things on NPC
  2. #2
    zsolt333's Avatar Member
    Reputation
    8
    Join Date
    Jun 2008
    Posts
    72
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this one

    Code:
    INSERT INTO `creature_names` VALUES ('99230', 'FlashWoW NPC', 'Teleporter', '0', '0', '4', '4', '0', '0', '0', '20306', '20306', '0', '0', '1', '1', '1', '1');
    
    INSERT INTO `creature_proto` VALUES ('99230', '200', '200', '35', '20000', '20000', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '2');


    in your script your warp ID is 99230?

  3. #3
    Ziddy1337's Avatar Contributor
    Reputation
    136
    Join Date
    Aug 2008
    Posts
    486
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With that code im getting this error:

    Code:
    Error Code : 1136
    Column count doesn't match value count at row 1
    (0 ms taken)
    If it helps, im using ArcEmu, and SQLYog.

  4. #4
    zsolt333's Avatar Member
    Reputation
    8
    Join Date
    Jun 2008
    Posts
    72
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then modify The name and display ID for thosone

    on my arcemu ... whydb this works fine

    Code:
    INSERT INTO `creature_names` (`name`, `subname`, `info_str`, `type`, `family`, `rank`, `male_displayid`, `female_displayid`, `civilian`, `Leader`, `entry`) VALUES ('C4 WoW Teleporter', '', '', '0', '0', '3', '0', '21661', '0', NULL, '55555');
    INSERT INTO `creature_proto` (`minlevel`, `maxlevel`, `Faction`, `minhealth`, `maxhealth`, `mana`, `Scale`, `npcflags`, `attacktime`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `combat_reach`, `boss`, `equipmodel1`, `equipmodel2`, `equipmodel3`, `respawntime`, `auras`, `invisibility_type`, `death_state`, `entry`) VALUES ('100', '100', '35', '999999999', '999999999', '999999999', '1', '1', '1500', '0', '50000', '100000', '0', '0', '1', '0', '0', '0', '0', '60', '0', '0', '0', '55555');

  5. #5
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    make sure this is your query

    Code:
    INSERT INTO `creature_names` VALUES ('99230', 'FlashWoW NPC', 'Teleporter', '0', '0', '4', '4', '0', '0', '0', '20306', '20306', '0', '0', '1', '1', '1', '1'); 
    
    INSERT INTO `creature_proto` VALUES ('99230', '200', '200', '35', '20000', '20000', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 2.
    k now go into your warpNPC script
    now scroll to the bottom

    make sure its like this

    Code:
    void SetupGlobalNPC(ScriptMgr * mgr)
    {
            GossipScript * gs = (GossipScript*) new GlobalNPC();
        mgr->register_gossip_script(99230, gs);
    }
    if this doesn't work then post your warpNPC script and ill fix it
    Lunar Gaming - Reaching For The Stars

Similar Threads

  1. cant view my own thread
    By biervertrieb in forum Report Bugs
    Replies: 4
    Last Post: 09-19-2012, 03:47 PM
  2. Cant view Common.MPQ with MyWarcraftStudio
    By Keithh in forum WoW ME Questions and Requests
    Replies: 8
    Last Post: 08-12-2008, 03:55 AM
  3. + rep to finish things l cant get working
    By Fisherpwn in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 05-26-2007, 10:54 PM
All times are GMT -5. The time now is 09:39 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