[Release]Instant 70 Npc Lua menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Noobcraft's Avatar Member
    Reputation
    141
    Join Date
    Aug 2007
    Posts
    598
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release]Instant 70 Npc Lua

    This lua will make a npc have the ability to give a player level 70 when they talk to it.

    Code:
     
    local npcid = 123456---change to the npcs ids
    
    function NPC_main_menu(pUnit, player)
       pUnit:GossipCreateMenu(3543, player, 0)
       pUnit:GossipMenuAddItem(0, "Make me level 70", 1, 0)           
       pUnit:GossipSendMenu(player)
    end
    function NPC_on_gossip_talk(pUnit, event, player)
       NPC_main_menu(pUnit, player)
    end
     function NPC_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
     if(intid == 1) then 
     pUnit:SendChatMessage(12, 0, "Happy raiding")
     player:SetPlayerLevel(70) ----can change to whatever level 
     player:GossipComplete()
     end
    end
    RegisterUnitGossipEvent(npcid, 1, "NPC_on_gossip_talk") 
    RegisterUnitGossipEvent(npcid, 2, "NPC_on_gossip_select")



    [Release]Instant 70 Npc Lua
  2. #2
    treeko11's Avatar Member
    Reputation
    11
    Join Date
    Jan 2008
    Posts
    275
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sweet, Im using this for my server for sure! +rep!

    Umm, i can't get this to work =(
    The NPCs dont talk or anything
    Last edited by treeko11; 08-14-2008 at 02:25 AM.

  3. #3
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks good man,
    I'll try it when I'm done with my work,

  4. #4
    azeon's Avatar Banned
    Reputation
    29
    Join Date
    Sep 2007
    Posts
    163
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sounds good

    edite:
    need to spread, i'll +rep you later

  5. #5
    Emuchild's Avatar Member
    Reputation
    56
    Join Date
    Oct 2007
    Posts
    311
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by treeko11 View Post
    Sweet, Im using this for my server for sure! +rep!

    Umm, i can't get this to work =(
    The NPCs dont talk or anything
    1. What NPC are you using?

    2. You have to change the npcid to what yours is.

    3. Set the flags of the NPC to 1.
    Tired of proxies not working or timing out?
    TEST THEM BEFORE YOU USE THEM!
    https://www.mmowned.com/forums/general-programs/246775-testmyproxies.html :wave:

  6. #6
    treeko11's Avatar Member
    Reputation
    11
    Join Date
    Jan 2008
    Posts
    275
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, i didn't know the flags has to be 1, thanks heaps!

  7. #7
    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)
    Nice release will try it out later

  8. #8
    superguf's Avatar Member
    Reputation
    1
    Join Date
    Aug 2007
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what is the spawn id?

  9. #9
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by superguf View Post
    what is the spawn id?
    The one that you made.
    You have to make the npc. And edit the code for your npc.
    >.<

  10. #10
    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)
    Really nice lua!! +Rep 2.

    Here is a pic of my npc...

  11. #11
    Robz!'s Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When I talk to the NPC it just responds "What can I do for you?". There is no option to level up, I have updated the NPCID in the Lua script to correspond with the NPC in the DB so that isn't the problem. What are the settings for the NPC in creature_names and creature_proto?
    Thanks.
    Last edited by Robz!; 08-31-2008 at 12:00 AM.

  12. #12
    marcicompita's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    52
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi everyone i Need a great help.
    I am trying to make this script do 2 thing:
    1. Make me level 20 if i'm <= 20
    2. Teleport to a custom place

    But only half works.
    This is my code

    local npcid = 2000022---change to the npcs ids

    function NPC_main_menu(pUnit, player)
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(0, "Make me level 20", 1, 0)
    pUnit:GossipMenuAddItem(0, "Teleport me to the Player's Village", 2, 0)
    pUnit:GossipSendMenu(player)
    end
    function NPC_on_gossip_talk(pUnit, event, player)
    NPC_main_menu(pUnit, player)
    end
    function NPC_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
    if getPlayerLevel(cid) <= 20 then
    pUnit:SendChatMessage(12, 0, "Happy leveling in Stralink WoW!")
    player:SetPlayerLevel(20) ----can change to whatever level
    else
    pUnit:SendChatMessage(12, 0, "You can do it only when you are level 20 or lower.")
    player:GossipComplete()
    end
    end

    if(intid == 2) then
    pUnit:SendChatMessage(12, 0, "Now teleporting you to Players Village!")
    player:Teleport(1, -11777.4, -4719.13, 1.9359)
    end
    end
    RegisterUnitGossipEvent(2000022, 1, "NPC_on_gossip_talk")
    RegisterUnitGossipEvent(2000022, 2, "NPC_on_gossip_select")
    Teleport works, the level thing doesn't. It says: scripts\leveler.lua:14: attempt to compare nil with number

    can some one help me please? i will rep if i can.. thanks

  13. #13
    marcicompita's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    52
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump !!

  14. #14
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if getPlayerLevel(cid) <= 20 then

    Wut?
    Remove that one..
    lulz..

  15. #15
    Appled's Avatar Contributor
    Reputation
    105
    Join Date
    Apr 2007
    Posts
    568
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay i can speak with him but...There is no option for level 70 (

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] Code Box Npc (Lua)
    By stoneharry in forum WoW EMU General Releases
    Replies: 29
    Last Post: 06-10-2009, 04:59 PM
  2. [Release] Fun Teleporter npc [Lua++]
    By stoneharry in forum WoW EMU General Releases
    Replies: 24
    Last Post: 02-23-2009, 06:48 PM
  3. [Release]Buffer npc lua
    By Noobcraft in forum WoW EMU General Releases
    Replies: 8
    Last Post: 10-04-2008, 07:20 AM
  4. [Release] Healing / Buffing NPC (LUA++)
    By Vaudville in forum WoW EMU General Releases
    Replies: 0
    Last Post: 09-21-2008, 07:46 AM
  5. [Release] Info NPC -- LUA
    By Babbaa in forum WoW EMU General Releases
    Replies: 6
    Last Post: 08-17-2008, 02:29 PM
All times are GMT -5. The time now is 02:32 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search