Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Free User sylomex's Avatar
    Join Date
    Dec 2013
    Location
    France
    Posts
    369
    Reputation
    39
    Rep Power
    21

    Check if a creature is reachable

    Hi everybody !

    I got a little probleme with .isreachable because it return me a boolean value and I would like to use it on this way.

    Stand
    Action : reachcreature then check if the creature is reachable (if not reachable gotolabel tryagain)
    Buypots
    Tryagain
    backtodp

    Thanks !

    Sincerely.

  2. #2
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    I believe this is for Chuckles?

  3. #3
    Free User sylomex's Avatar
    Join Date
    Dec 2013
    Location
    France
    Posts
    369
    Reputation
    39
    Rep Power
    21
    its for Sigurd the kazz npc to buy potions.

  4. #4
    Moderator SuNe's Avatar
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    2,880
    Reputation
    186
    Rep Power
    27
    Quote Originally Posted by sylomex View Post
    its for Sigurd the kazz npc to buy potions.
    That one is a pain in the ass Wanted to kill that damn NPC when i did kazz script..

    Ended up with making a action to reach it and just made wp's all over the place and open all doors etc that it can be trapped behind.
    กิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิ ิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิ ิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิ ิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิ ิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิ ิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิ ิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิ ิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิก ิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิ ิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิ ิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิ ิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิ ิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิ ิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิ ิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิ ิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิ ิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิ ิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิ ิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิ ิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิ ิิิิิิิิ

  5. #5
    Free User sylomex's Avatar
    Join Date
    Dec 2013
    Location
    France
    Posts
    369
    Reputation
    39
    Rep Power
    21
    ye I did that too but sometimes its bugging as hell so I wouldl ike to improve it into my script

  6. #6
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,914
    Reputation
    109
    Rep Power
    31
    Use findcreature() for that =)



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  7. #7
    Free User sylomex's Avatar
    Join Date
    Dec 2013
    Location
    France
    Posts
    369
    Reputation
    39
    Rep Power
    21
    findcreature isnt the best option for this NPC I tryed it and it didnt gave me a good way to talk to him.
    So after brainstorming 2 hours here is the way im using to talk to him.


    auto(100)
    if $lastnpcmsg.sender == 'Sigurd' then
    gotolabel('buypot')
    end


  8. #8
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,914
    Reputation
    109
    Rep Power
    31
    Well, I don't recommend using Sigurd at all, it's too easy to trap him, but with findcreature you can do basically everything and use a cavebot script to use doors if you're standing for x seconds and the doors are closed.



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  9. #9
    Free User sylomex's Avatar
    Join Date
    Dec 2013
    Location
    France
    Posts
    369
    Reputation
    39
    Rep Power
    21
    Thanks for you advises dude.
    Ill imrpove it again then with findcreature I missed probably something the first time i tryed to use this function.

    Sincerely.

  10. #10
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Use this to find him, it'll return his position coordinates, then you know exactly where is him.

    foreach creature c 'n' do
    if c.name == 'Sigurd' then
    return print(c.posx, c.posy, c.posz)
    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
  •