Results 1 to 4 of 4

Thread: [need action] attack player back

  1. #1
    iBot User 280201's Avatar
    Join Date
    Oct 2012
    Posts
    40
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    17
    Rep Power
    5

    [need action] attack player back

    hello! can somebody give me a functional action? I need a action that works, because it wont be tested (its rare somebody attacks me)


    action needed: attack back

    thanks

  2. #2
    iBot User 280201's Avatar
    Join Date
    Oct 2012
    Posts
    40
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    17
    Rep Power
    5
    bump

  3. #3
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7
    This action was made by @Nosekim

    Lua Code:
     
    --Script Made by Nosekim
    --Attack PK
     
    local SafeList = {"Uncle Barry", "Brabo", "Lord'Paulistinha"}
    local UseRune = true --set true or false
    local WhatRune = "sudden death rune"
     
     
    --do not change below
     
    local pgot = getcreatures("ps")
    local ptable = {}
    local pqtd = pgot.count 
    local msgs = getmessages("Server Log")
    local qtd = msgs.count-1
     
     
    for i=0,pqtd-1 do
       for k=3,5 do
            if msgs[qtd].text:find("You lose (%d+) hitpoints due to an attack by "..pgot[i].name..".") and pgot[i].skull == k then
               table.insert(ptable, pgot[i].name)
            end
       end
    end
     
    if #ptable > 0 and not table.find(SafeList, ptable[1]) then
       attack(ptable[1])
       settargeting("off")
       setcavebot("off")
         if UseRune == true and itemcount(WhatRune) > 0 then
            useitemontarget(WhatRune, ptable[1])
            wait(2000)
         end
    else
    settargeting("on")
    setcavebot("on")
    end

    EDIT

    You must have damage message enabled

  4. #4
    iBot User 280201's Avatar
    Join Date
    Oct 2012
    Posts
    40
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    17
    Rep Power
    5
    thanks
    Im not a professional scripter, I just make my own scripts for my chars (Mage and Knight) and then I release it after using.
    If you want an exclusive script you can talk to me, but its quite restrict because I'm just starting again (low level chars). If it's easy I can do it for you for free, if not, we can talk.

    All my scripts are based in other's actions. I didnt know how to sell items, then I looked into ppl scripts and learned. Thats my method.
    Untill now I owe thanks to: @Eli @Drakke @BlaBlaBla @Isaacbf for teaching me in direct and indirect ways.
    HUD's that I've used till now: @BlaBlaBla and @Eli


    Latest scripts / Últimos scripts


    † Scripts coming soon †

    [MS] Edron Earth Elemental 33+ (exp) = [100%- Just wait me to leave that spot]
    [EK] Svargrond Barbarians North Camp (profitable) = [100%- Just wait me to leave that spot]
    [EK] Svargrond Barbarians South Camp (profitable) = 0%
    • And more...

Posting Permissions

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