Results 1 to 5 of 5

Thread: reachcreature not working for sigurd

  1. #1
    Normal User
    Join Date
    Feb 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    reachcreature not working for sigurd

    Hey,

    I am making my first script and I need to buy potions from Sigurd in Kazordoon. I was wondering if anyone could tell me why my reach creature was not working.

    wait(1000,2000)
    reachcreature("Sigurd")
    wait(1000,2000)



    npcsay("hi")
    wait(300,450)
    npcsay("trade")
    wait(900,1350)

    while (itemcount(285)+itemcount(284)+itemcount(283)) > 9 do
    npcsay("vials")
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    end

    buyitemsupto(nameMp,maxMp,itemcount(nameMp))
    wait(900,1350)
    buyitemsupto(nameHp,maxHp,itemcount(nameHp))
    wait(900,1350)

    end


    Thanks for anyone that can help me!

  2. #2
    Normal User mistgun's Avatar
    Join Date
    Nov 2012
    Location
    LDZ
    Posts
    333
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    41
    Rep Power
    5
    have u set nameMp, nameHp in setup?
    LATEST FREE AND PAID SCRIPTS

    Ghostland: EK Coryms Cave: EK
    Peninsula Tomb: EK, MS/ED Mount Sternum: EK
    Dwarf City: EK Nightstalkers Mountain: ED, MS

  3. #3
    Normal User
    Join Date
    Feb 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Yes, that all works. The part that doesn't work is he never goes and reaches Sigurd. I can't get him to go close enough to Sigurd and say hi.

  4. #4
    Banned
    Join Date
    Jun 2012
    Location
    Ceará
    Posts
    2,114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    81
    Rep Power
    0
    try now:
    reachcreature("Sigurd")
    wait(400, 600)
    say("hi")
    wait(1000, 2000)
    npcsay("trade")
    wait(700, 900)
    while (itemcount(285)+itemcount(284)+itemcount(283)) > 9 do
    npcsay("vials")
    wait(700, 900)
    npcsay("yes")
    wait(700, 900)
    end
    wait(900, 1100)
    buyitemsupto(nameMp,maxMp,itemcount(nameMp))
    wait(900, 1100)
    buyitemsupto(nameHp,maxHp,itemcount(nameHp))

  5. #5
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    You have an extra 'end'. Thats why.


    If something doesn't work, always open the help->debug to see the error!

Posting Permissions

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