Results 1 to 9 of 9

Thread: problem with check supply action

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

    problem with check supply action

    Well idk whats wrong with it, it always go to leavehunt


    PHP Code:
    if itemcount(nameMp) < minMp or cap minCap) or itemcount(nameRune) < minRune then gotolabel("leavehunt") if not gotolabel("starthunt"end 
    PHP Code:
    nameMp "Strong Mana Potion" 
    maxMp 100 
    minMp 
    50 
    priceMp 
    80 

    nameRune 
    3155 
    maxRune 
    150 
    minRune 
    30 
    priceRune 
    108 

  2. #2
    Normal User
    Join Date
    Aug 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    anyone help? bump

  3. #3
    Normal User
    Join Date
    Aug 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Can anyone help me?

  4. #4
    Normal User dragonicevo's Avatar
    Join Date
    May 2012
    Location
    canada
    Posts
    1,600
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    65
    Rep Power
    8
    add your script for full view of this thanks. could be debug info and other things you didnt post.
    http://www.tibiaibot.com/forum/showt...2925#post42925 for basic setup for knight

    If i helped or you liked my scripts rep + me

    trusted free scripts by pink_panther and 3173654 and acid alchamy and marlhex and spens13

  5. #5

    Join Date
    Oct 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Hello tiomin,

    Try this,
    PHP Code:
    if itemcount(nameMp) < minMp or cap minCap) or itemcount(nameRune) < minRune then gotolabel("leavehunt") else gotolabel("starthunt"end 
    It should work now. If you make 'if' and you want something to happen when 1st thing is not true use 'else' or 'else if'.

    Greetz,

  6. #6
    Normal User
    Join Date
    Aug 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    ok thanks for replying i will test it later on when i get home from work

    EDIT: just test it but still the same is ignoring the action and going directly to leavehunt, and the cap rune and pots are ok
    Last edited by tiomin; 11-02-2012 at 10:32 PM.

  7. #7
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    use this:
    PHP Code:
    if itemcount(nameMp) < minMp
    or cap minCap
    or itemcount(nameRune) < minRune
    then gotolabel
    ("leavehunt")
    else 
    gotolabel("starthunt")
    end 

  8. #8
    Normal User
    Join Date
    Aug 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Well i used yours rafix but still wasnt working, so i added an if not islocation action before supplycheck and now its working fine, thanks to all that answered

  9. #9
    Normal User dragonicevo's Avatar
    Join Date
    May 2012
    Location
    canada
    Posts
    1,600
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    65
    Rep Power
    8
    Quote Originally Posted by RafiXWPT View Post
    use this:
    PHP Code:
    if itemcount(nameMp) < minMp
    or cap minCap
    or itemcount(nameRune) < minRune
    then gotolabel
    ("leavehunt")
    else 
    gotolabel("starthunt")
    end 
    id trust this for sure cheers
    http://www.tibiaibot.com/forum/showt...2925#post42925 for basic setup for knight

    If i helped or you liked my scripts rep + me

    trusted free scripts by pink_panther and 3173654 and acid alchamy and marlhex and spens13

Posting Permissions

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