[Help] Need someone to check LUA script menu

User Tag List

Results 1 to 6 of 6
  1. #1
    stealthpyro's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Need someone to check LUA script

    Code:
    function Mall_PlayerOnRange (pUnit, Event)
    	pUnit:SendChatMessage (0, 0, "TEXT HERE")
    end
    RegisterUnitEvent (100100, 10, "Mall_PlayerOnRange")
    Now it's simple, but something is wrong and I just can't see what.

    All I want is the NPC to say something when a player gets in range, which is what I should have there.

    Even if someone had to talk to the NPC first before it said anything would be fine.

    If this is correct then maybe my NPC's flags are wrong?

    Thanks in advance!

    [Help] Need someone to check LUA script
  2. #2
    Bapesy's Avatar Banned
    Reputation
    35
    Join Date
    May 2008
    Posts
    126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stealthpyro View Post
    Code:
    function Mall_PlayerOnRange (pUnit, Event)
        pUnit:SendChatMessage (0, 0, "TEXT HERE")
    end
    RegisterUnitEvent (100100, 10, "Mall_PlayerOnRange")
    Now it's simple, but something is wrong and I just can't see what.

    All I want is the NPC to say something when a player gets in range, which is what I should have there.

    Even if someone had to talk to the NPC first before it said anything would be fine.

    If this is correct then maybe my NPC's flags are wrong?

    Thanks in advance!

    Pretty sure this is the problem -


    Code:
    (0, 0,
    Five Gum!

  3. #3
    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)
    as FIve Gum said it should be

    function Mall_PlayerOnRange (pUnit, Event)
    pUnit:SendChatMessage (12, 0, "TEXT HERE")
    end
    RegisterUnitEvent (100100, 10, "Mall_PlayerOnRange")

    or something you had it set to have no chat type
    Lunar Gaming - Reaching For The Stars

  4. #4
    stealthpyro's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, that's how I originally had it set up, I thought I read somewhere that "0" was say for NPC's but yeah, I changed it and still nothing. The only thing I can think of is my NPC flags are off. What should they be?

    I've scripted bosses perfectly fine, it's just trying to get this NPC to say something by itself which is giving me trouble.

  5. #5
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On range isn't working

  6. #6
    stealthpyro's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TheSpidey View Post
    On range isn't working

    That would do it then...

    Thanks everyone for the help!

Similar Threads

  1. Matador needs someone to check 1000+ emails for accounts
    By Matador in forum Members Only Gold And Powerleveling Buy Sell
    Replies: 50
    Last Post: 08-13-2008, 08:16 AM
  2. [HELP] Need someone to help me step-by-step phising
    By mgscs in forum WoW Scams Help
    Replies: 6
    Last Post: 08-08-2008, 03:47 PM
  3. [Help] One part of my lua script doesn't work correctly
    By dude891 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 06-07-2008, 09:17 AM
  4. [Help] Need someone to test a lua code
    By dude891 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-12-2008, 09:59 PM
  5. Need someone to check a simple SQL code will +rep
    By dude891 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-28-2008, 08:04 PM
All times are GMT -5. The time now is 03:13 AM. 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