SkillNPC [LUA] menu

Shout-Out

User Tag List

Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 48
  1. #31
    baptizein's Avatar Member
    Reputation
    16
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope. Still doesn't work... Is there anything, besides not running a LUA engine, that would cause it not to work? (ie. Emu, database, etc.)

    All other LUA scripts work for me in my scripts folder, and I have a basic understanding of LUA and have looked over this script many times, but the answer hasn't jumped out at me yet. Any thoughts?

    SkillNPC [LUA]
  2. #32
    bras's Avatar Member
    Reputation
    2
    Join Date
    Jun 2008
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Beautiful! I have it working now! Thank you very much. This will prevent a ton of tickets!

  3. #33
    bessy's Avatar Member
    Reputation
    1
    Join Date
    Feb 2007
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by baptizein View Post
    Nope. Still doesn't work... Is there anything, besides not running a LUA engine, that would cause it not to work? (ie. Emu, database, etc.)

    All other LUA scripts work for me in my scripts folder, and I have a basic understanding of LUA and have looked over this script many times, but the answer hasn't jumped out at me yet. Any thoughts?
    That script works great with Blua try using that

  4. #34
    baptizein's Avatar Member
    Reputation
    16
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bessy View Post
    That script works great with Blua try using that
    I am using Blua with ArcEmu r921 and WhyDB. I have an NPC thats flagged 1 and I have its spawn ID in the registerunit part of the script. When I talk to the NPC nothing pops up and I'm not getting any errors in my console either...

    Would it make a difference or not if I am using both Blua and Sun++? I really would love to get this to work, but I'm out of ideas now.

  5. #35
    bessy's Avatar Member
    Reputation
    1
    Join Date
    Feb 2007
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well you can't use the Sun++ and Blua scripting engines at once

  6. #36
    baptizein's Avatar Member
    Reputation
    16
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bessy View Post
    Well you can't use the Sun++ and Blua scripting engines at once
    I'm using Fantomass' compile. So, I'm not 100% sure if his compile includes Blua, but according to the thread title, its listed there. Well, when I compiled my own Blua engine it generated LUAScripting.dll, right? And when Sun++ is compiled you get SunGossipScripts.dll, SunInstanceScripts.dll, SunMiscScripts.dll, SunQuestScripts.dll, and SunSpellHandlers.dll, which I don't see any way that would interfere with Blua... Maybe its just me. Anyways, I removed the Sun++ files from my server folder and I am still getting the same thing, no gossipmenu. So, it leads me to believe that its hopeless for me to keep trying to get this script to work...

  7. #37
    bessy's Avatar Member
    Reputation
    1
    Join Date
    Feb 2007
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sun++ generates it's own LUAScripting.dll as well, I'm using Arcemu trunk 965, blua revision 322. Set the log mode to 3 in your arcemu-world.config and write down the error that occours when you speak to the NPC

  8. #38
    chaoticd35's Avatar Site Donator
    Reputation
    44
    Join Date
    Jun 2007
    Posts
    337
    Thanks G/R
    5/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This looks great!! By the way, what or where is the NPCs ID# located?? Is it at the bottom only?" I guess I'm not looking in the right spot in the lua.

    Thanks and 2 +Rep
    Last edited by chaoticd35; 09-07-2008 at 12:52 AM.

  9. #39
    kaothic's Avatar Member
    Reputation
    7
    Join Date
    Oct 2007
    Posts
    167
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use the script with Blua and dont works, all time says: error unit:GossipCreateMenu

    How i can solve :S

    All other luas works

    Only simple things make me feel alive...

  10. #40
    baptizein's Avatar Member
    Reputation
    16
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is what I get after the encounter with the NPC...

    Code:
    WORLD: Received CMSG_QUESTGIVER_STATUS_QUERY.
    Cell [109,364] on map 530 (instance 7) is now active.
    Loading objects for Cell [109][364] on map 530 (instance 7)...
    Cell [109,365] on map 530 (instance 7) is now active.
    Loading objects for Cell [109][365] on map 530 (instance 7)...
    Cell [109,366] on map 530 (instance 7) is now active.
    Loading objects for Cell [109][366] on map 530 (instance 7)...
    Cell [112,364] on map 530 (instance 7) is now idle.
    Cell [112,365] on map 530 (instance 7) is now idle.
    Cell [112,366] on map 530 (instance 7) is now idle.
    Cell [109,363] on map 530 (instance 7) is now active.
    Loading objects for Cell [109][363] on map 530 (instance 7)...
    Cell [109,366] on map 530 (instance 7) is now idle.
    Cell [110,363] on map 530 (instance 7) is now active.
    Loading objects for Cell [110][363] on map 530 (instance 7)...
    Cell [110,366] on map 530 (instance 7) is now idle.
    Cell [111,363] on map 530 (instance 7) is now active.
    Loading objects for Cell [111][363] on map 530 (instance 7)...
    Cell [111,366] on map 530 (instance 7) is now idle.
    WORLD: CMSG_GAMEOBJECT_QUERY '182756'
    WORLD: CMSG_CREATURE_QUERY 'Rathin'
    Cell [109,362] on map 530 (instance 7) is now active.
    Loading objects for Cell [109][362] on map 530 (instance 7)...
    Cell [109,365] on map 530 (instance 7) is now idle.
    Cell [110,362] on map 530 (instance 7) is now active.
    Loading objects for Cell [110][362] on map 530 (instance 7)...
    Cell [110,365] on map 530 (instance 7) is now idle.
    Cell [111,362] on map 530 (instance 7) is now active.
    Loading objects for Cell [111][362] on map 530 (instance 7)...
    Cell [111,365] on map 530 (instance 7) is now idle.
    Cell [109,362] on map 530 (instance 7) is now idle.
    Cell [109,363] on map 530 (instance 7) is now idle.
    Any ideas? Maybe I should just try to compile ArcEmu myself with Blua and give it a try and see if that works.

  11. #41
    FinnZor's Avatar Member
    Reputation
    50
    Join Date
    May 2008
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks nice i´ll try it out
    FinnZor
    LUA Scripter
    Compiler

  12. #42
    dRACE's Avatar Active Member
    Reputation
    21
    Join Date
    May 2008
    Posts
    80
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is 100 working, good job! Just that i needed, since some spells was missed, that now are not because this SkillNPC +rep!

  13. #43
    silentghost's Avatar Member
    Reputation
    3
    Join Date
    May 2008
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when i put it in my scripts folder, when i go to the NPC its just blank - no menus etc

  14. #44
    Simox's Avatar Member
    Reputation
    6
    Join Date
    Dec 2007
    Posts
    56
    Thanks G/R
    1/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Gonna try it, would also be nice if you can find the reset talent thing. I'll rep you.

  15. #45
    MuffinVendor's Avatar Active Member
    Reputation
    47
    Join Date
    Jun 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    --[[ SkillNPC.lua
    
    This script was written and is protected
    by the GPL v2. This script was released
    by Performer/Performa of the Blua Scripting
    Project. Please give proper accredidations
    when re-releasing or sharing this script
    with others in the emulation community.
    
    Credits to Nebels for the C++ Version.
    Thanks to Soundead for fixing an error.
    
    ~~End of License Agreement
    -- Performa, August 25th, 2008. ]]
    
    local npcid = EntryID
    
    function Skill_Menu (pUnit, event, player, pMisc)
        pUnit:GossipCreateMenu(100, player, 0, 0)
        if player:GetPlayerClass() == 1  then
        pUnit:GossipMenuAddItem(0, "What Spells Can Warriors Learn?", 50, 0)
        pUnit:GossipSendMenu(player)
        elseif player:GetPlayerClass() == 2  then
        pUnit:GossipMenuAddItem(0, "What Spells Can Paladins Learn?", 51, 0)
        pUnit:GossipSendMenu(player)
        elseif player:GetPlayerClass() == 3  then
        pUnit:GossipMenuAddItem(0, "What Spells Can Hunters Learn?", 52, 0)
        pUnit:GossipSendMenu(player)
        elseif player:GetPlayerClass() == 4  then
        pUnit:GossipMenuAddItem(0, "What Spells Can Rogues Learn?", 53, 0)
        pUnit:GossipSendMenu(player)
        elseif player:GetPlayerClass() == 5  then
        pUnit:GossipMenuAddItem(0, "What Spells Can Priests Learn?", 54, 0)
        pUnit:GossipSendMenu(player)
        elseif player:GetPlayerClass() == 7  then
        pUnit:GossipMenuAddItem(0, "What Spells Can Shamans Learn?", 55, 0)
        pUnit:GossipSendMenu(player)
        elseif player:GetPlayerClass() == 8  then
        pUnit:GossipMenuAddItem(0, "What Spells Can Mages Learn?", 56, 0)
        pUnit:GossipSendMenu(player)
        elseif player:GetPlayerClass() == 9  then
        pUnit:GossipMenuAddItem(0, "What Spells Can Warlocks Learn?", 57, 0)
        pUnit:GossipSendMenu(player)
        elseif player:GetPlayerClass() == 11  then
        pUnit:GossipMenuAddItem(0, "What Spells Can Druids Learn?", 58, 0)
        pUnit:GossipSendMenu(player)
        end
    end
    
    function Skill_OnSelect (pUnit, event, player, id, intid, code, pMisc)
        if(intid == 50) then
        pUnit:GossipCreateMenu(99, player, 0, 0)
        pUnit:GossipMenuAddItem(5, "Taunt", 3, 0)
        pUnit:GossipMenuAddItem(5, "Intercept", 4, 0)
        pUnit:GossipMenuAddItem(5, "Mortal Strike", 5, 0)
        pUnit:GossipMenuAddItem(5, "Defensive Stance", 6, 0)
        pUnit:GossipMenuAddItem(5, "Berserker Stance", 7, 0)
        pUnit:GossipMenuAddItem(0, "[Back]", 0, 0)
        pUnit:GossipSendMenu(player)
    end
        if(intid == 51) then
        pUnit:GossipCreateMenu(98, player, 0)
        pUnit:GossipMenuAddItem(5, "Redemption", 8, 0)
        pUnit:GossipMenuAddItem(5, "Summon Warhorse", 9, 0)
        pUnit:GossipMenuAddItem(5, "Summon Charger", 10, 0)
        pUnit:GossipMenuAddItem(0, "[Back]", 0, 0)
        pUnit:GossipSendMenu(player)
    end
        if(intid == 52) then
        pUnit:GossipCreateMenu(97, player, 0)
        pUnit:GossipMenuAddItem(5, "Pet Spells", 11, 0)
        pUnit:GossipMenuAddItem(0, "[Back]", 0, 0)
        pUnit:GossipSendMenu(player)
    end
        if(intid == 53) then
        pUnit:GossipCreateMenu(96, player, 0)
        pUnit:GossipMenuAddItem(0, "[Back]", 0, 0)
        pUnit:GossipSendMenu(player)
    end
        if(intid == 54) then
        pUnit:GossipCreateMenu(95, player, 0)
        pUnit:GossipMenuAddItem(0, "[Back]", 0, 0)
        pUnit:GossipSendMenu(player)
    end
        if(intid == 55) then
        pUnit:GossipCreateMenu(94, player, 0)
        pUnit:GossipMenuAddItem(0, "[Back]", 0, 0)
        pUnit:GossipSendMenu(player)
    end
        if(intid == 56) then
        pUnit:GossipCreateMenu(93, player, 0)
        pUnit:GossipMenuAddItem(5, "Ice Block", 22, 0)
        pUnit:GossipMenuAddItem(0, "[Back]", 0, 0)
        pUnit:GossipSendMenu(player)
    end
        if(intid == 57) then
        pUnit:GossipCreateMenu(92, player, 0)
        pUnit:GossipMenuAddItem(5, "Pet Spells", 12, 0)
        pUnit:GossipMenuAddItem(5, "Summon Felsteed", 13, 0)
        pUnit:GossipMenuAddItem(5, "Summon Dreadsteed", 14, 0)
        pUnit:GossipMenuAddItem(0, "[Back]", 0, 0)
        pUnit:GossipSendMenu(player)
    end
        if(intid == 58) then
        pUnit:GossipCreateMenu(91, player, 0)
        pUnit:GossipMenuAddItem(5, "Growl", 15, 0)
        pUnit:GossipMenuAddItem(5, "Maul", 16, 0)
        pUnit:GossipMenuAddItem(5, "Bear Form", 17, 0)
        pUnit:GossipMenuAddItem(5, "Dire Bear Form", 18, 0)
        pUnit:GossipMenuAddItem(5, "Aquatic Form", 19, 0)
        pUnit:GossipMenuAddItem(5, "Normal Flight Form", 20, 0)
        pUnit:GossipMenuAddItem(5, "Epic Flight Form", 21, 0)
        pUnit:GossipMenuAddItem(0, "[Back]", 0, 0)
        pUnit:GossipSendMenu(player)
    end
        if(intid == 2) then
        pUnit:ResetTalent()
    end
        if(intid == 3) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(355)
    end
        if(intid == 4) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(25275)
    end
        if(intid == 5) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(30330)
    end
        if(intid == 6) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(71)
    end
        if(intid == 7) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(2458)
    end
        if(intid == 8) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(20773)
    end
        if(intid == 9) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(13819)
    end
        if(intid == 10) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(34767)
    end
        if(intid == 11) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(1515)
        plr:LearnSpell(883)
        plr:LearnSpell(5149)
        plr:LearnSpell(982)
        plr:LearnSpell(6991)
    end
        if(intid == 12) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(688)
        plr:LearnSpell(697)
        plr:LearnSpell(712)
        plr:LearnSpell(691)
    end
        if(intid == 13) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(5784)
    end
        if(intid == 14) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(23161)
    end
        if(intid == 15) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(6795)
    end
        if(intid == 16) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(26996)
    end
        if(intid == 17) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(5487)
    end
        if(intid == 18) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(9634)
    end
        if(intid == 19) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(1066)
    end
        if(intid == 20) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(33943)
    end
        if(intid == 21) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(40120)
    end
        if(intid == 22) then
        local plr = pUnit:GetClosestPlayer()
        plr:LearnSpell(45438)
    end
        if(intid == 99) then
        
    end
        intid = 0
    end
    
    RegisterUnitGossipEvent(ENTRYID, 1, "Skill_Menu")
    RegisterUnitGossipEvent(ENTRYID, 2, "Skill_OnSelect")
    
    
    Reset talents does not work atm. Because i do not know of a function to do it.
    It seems to be missing local npcid = EntryID or is it just me ?
    Last edited by MuffinVendor; 09-29-2008 at 09:31 AM.

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
  3. Lua Ascent Script Documentation
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-26-2007, 12:42 PM
  4. LUA Refrences
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 11-22-2007, 08:09 PM
All times are GMT -5. The time now is 05:53 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