Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: unpack(nick)

  1. #1
    iBot User Yokos's Avatar
    Join Date
    Jul 2013
    Posts
    11
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    20
    Rep Power
    4

    unpack(nick)

    hello have problem
    i want to do safe list for script like:
    PHP Code:
    nick = {"im","you","they"}

    if 
    Tile.GetByPosition(xxxxx,yyyyy,z):TopCreature():Name() == unpack(nickthen
    say
    ("yes")
    else
    say("no")
    end 
    here if on pos xxx yyy z is creature "im" then he say yes but if there is nick "you" or "they" he say no how to solve it?

  2. #2
    iBot User
    Join Date
    Nov 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    15
    Rep Power
    5
    I would try to help you here but I have no real idea what you are saying. Maybe someone else will. Or try to clarify this.

  3. #3
    iBot User Yokos's Avatar
    Join Date
    Jul 2013
    Posts
    11
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    20
    Rep Power
    4
    where you from please give me your skype on private i will show you

  4. #4
    iBot User
    Join Date
    Nov 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    15
    Rep Power
    5
    i actually dont have a skype but Im from the USA.

  5. #5
    iBot User Yokos's Avatar
    Join Date
    Jul 2013
    Posts
    11
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    20
    Rep Power
    4
    can i get any faster contact to you ? bcs its not that what i want :P

  6. #6
    iBot User Yokos's Avatar
    Join Date
    Jul 2013
    Posts
    11
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    20
    Rep Power
    4
    PHP Code:
    if iscreatureontile(xxx,yyy,zzz) and Tile.GetByPosition(xxx,yyy,zz):TopCreature():Name() ~= unpack(nickthen
        gotolabel
    ("depo1p2")
    elseif
    iscreatureontile(xxx,yyy,zzz) and Tile.GetByPosition(xxx,yyy,zz):TopCreature():Name() ~= unpack(nickthen
        gotolabel
    ("depo2p2")
    elseif
    iscreatureontile(xxx,yyy,zzz) and Tile.GetByPosition(xxx,yyy,zz):TopCreature():Name() ~= unpack(nickthen
        gotolabel
    ("depo3p2")
    elseif
    iscreatureontile(xxx,yyy,zzz) and Tile.GetByPosition(xxx,yyy,zz):TopCreature():Name() ~= unpack(nickthen
        gotolabel
    ("depo4p2")
    elseif
    iscreatureontile(xxx,yyy,zzz) and Tile.GetByPosition(xxx,yyy,zz):TopCreature():Name() ~= unpack(nickthen
        gotolabel
    ("depo5p2")
    elseif
    iscreatureontile(xxx,yyy,zzz) and Tile.GetByPosition(xxx,yyy,zz):TopCreature():Name() ~= unpack(nickthen
        gotolabel
    ("depo6p2")
    elseif
    iscreatureontile(xxx,yyy,zzz) and Tile.GetByPosition(xxx,yyy,zz):TopCreature():Name() ~= unpack(nickthen
        gotolabel
    ("depo7p2")
    elseif
    iscreatureontile(xxx,yyy,zzz) and Tile.GetByPosition(xxx,yyy,zz):TopCreature():Name() ~= unpack(nickthen
        gotolabel
    ("depo8p2")
    else
        
    gotolabel("next")
    end 
    and if i stay next to the person which one is not in my "safe list"
    in next check of action he count me too bcs im stay in xxx,yyy,zzz do you understand ? its depot blocker

  7. #7
    iBot User Yokos's Avatar
    Join Date
    Jul 2013
    Posts
    11
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    20
    Rep Power
    4
    in setup its
    PHP Code:
    names = {"im","u","asd"
    and its look only at "im"

  8. #8
    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
    Quote Originally Posted by Yokos View Post
    in setup its
    PHP Code:
    names = {"im","u","asd"
    and its look only at "im"

    You're NOT listening.

    This is not how unpack works.

    Can you explain what you're trying to do? Becuase if its open a depo, the bot will know if the path is blocked or not and just find another by itself.

  9. #9
    iBot User Yokos's Avatar
    Join Date
    Jul 2013
    Posts
    11
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    20
    Rep Power
    4
    Its depot blocker for dicers if char see any dicer then he go to block him... but when i stay on spot 2 sqm left or right then actions count me too and try to block my char

  10. #10
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    and why do you wanna do that? cuz you've got a dicer?

Posting Permissions

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