Results 1 to 5 of 5

Thread: Hello, would need some help to make this "script"

  1. #1
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5

    Hello, would need some help to make this "script"

    local spell = "exevo con"

    if itemcount("arrow") >= 100 and cancast(spell) then
    cast(spell)
    end

    Please answere me as soon as possible !

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    Im bumping this to get faster response.

  3. #3
    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
    but what do you want? Explain what your action should do.

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    Quote Originally Posted by RafiXWPT View Post
    but what do you want? Explain what your action should do.
    So i want my to action to create arrows when i got for example 200 arrows left, so it keeps creating them but not spamming them so i get out of cap

  5. #5
    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
    Lua Code:
    local spell_to_create = "exevo con" 
    local cap_to_create = 50 -- minimum cap to start
    local arrows_to_create = 200 -- how many arrows left to start
     
    if (itemcount("arrow") + ammoamount) < arrows_to_create and cancast(spell_to_create) and cap >= cap_to_create then 
    cast(spell_to_create) 
    end


    u mean that?
    Last edited by RafiXWPT; 11-22-2013 at 09:59 PM.

Posting Permissions

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