Results 1 to 5 of 5

Thread: useitemontarget

  1. #1
    Normal User
    Join Date
    Sep 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    5

    useitemontarget

    Hello,

    i come here because i've a problem with my action i need to use guardcatcher on Adventurer so
    in first try i test
    Code:
    useitemontarget(17669, "Adventurer")

    work but spamming item can't walk or other spaming item every second without Adventurer
    so i try

    if maround(7, false, "Adventurer") >=1
    then
    useitemontarget(17669, "Adventurer")
    end

    but now when i attack Adventurer no use item i don't know how i can repair it :'(
    if you can help me
    Last edited by kilirt@yahoo.fr; 07-27-2014 at 02:47 PM.

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    Instead of having it attack try follow it instead

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    5
    still don't work :/

    and the problem with follow is i need to capture 3 of them but if i've capture 3 of them i will follow other forever cause the guardcatcher break


    Sorry for my bad english, i'm french




    edit: now only
    Code:
    useitemontarget(17669,"Adventurer")
    don't work anymore






    EDIT AGAIN: i just load an other script file i've save before and now work ? on other action still not work why ?
    Last edited by kilirt@yahoo.fr; 07-27-2014 at 07:35 AM.

  4. #4
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Probably you made mistake somewhere, post here your action

  5. #5
    Normal User
    Join Date
    Sep 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    5
    now i use

    Code:
    if maround(7, false, "Adventurer") >=1
    then
    useitemontarget(17669, "Adventurer")
    end
    and it work but i've a new problem i try a script for use item "trunkhammer" on junk trunk i try it:

    Code:
    local DoorX = 33075 -- Door X position
    local DoorY = 33074 -- Door Y position
    local KeyId = 17676 -- If you dont need key, simply left "0" here
    
    useitemon(KeyId, DoorX,DoorY,posz)
    wait(1000)
    end
    but not work do you want a make a newt post for this problem or i can just ask here ?
    Last edited by kilirt@yahoo.fr; 07-27-2014 at 09:32 AM.

Posting Permissions

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