Results 1 to 4 of 4

Thread: getcreatures issue

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    getcreatures issue

    is the function getcreatures actually working?
    I've tried to use it ...with no success, this is the code I've been testing:

    Code:
    local CHECK = getcreatures('ps')
    local NAME_NPC = 'Shanar'
    
    if CHECK.name == NAME_NPC then
        say('hi')
    else
        say('bye')
    end
    I'm wondering if there is anything wrong or it just doesnt work

  2. #2
    Normal User
    Join Date
    Feb 2012
    Location
    Ottawa, Canada.
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    PHP Code:
    local NPC "Shanar"

    if maround(3NPC) > 0 then
        say
    ("hi")
    else
        
    say("bye")
    end 
    Cheers,
    WedNesDay.

  3. #3
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    What are you trying to do with it?

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    local NAME_NPC 'Shanar'

    for CREATURE in getcreatures('ps') do
        if 
    CREATURE.name == NAME_NPC then
            say
    ('hi')

            break
        
    end
    end 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •