Results 1 to 9 of 9

Thread: Attack Player if him attacked me.

  1. #1
    Normal User pfminerete's Avatar
    Join Date
    Nov 2012
    Posts
    616
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    23
    Rep Power
    6

    Attack Player if him attacked me.

    Hey Guys i need a action to attack any player got skull on me!!
    smbdy can help me with this?
    thx

  2. #2
    Normal User
    Join Date
    Oct 2012
    Posts
    18
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Bump, Id like to know this as well.
    Preferablyone one that shoots SD at the attacking player!

  3. #3
    iBot User
    Join Date
    Oct 2012
    Posts
    44
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    bumpidybump

    I remember back in time searching for an action like this, it was said to be impossible to do. How about now?
    Last edited by Karzatin; 03-22-2013 at 08:53 AM.

  4. #4
    iBot User Dvlkob's Avatar
    Join Date
    Sep 2014
    Location
    Home at US and Brazil
    Posts
    26
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    10
    Rep Power
    3
    There should be a way. Elfbot could copy the name of the attackers and send it to some buddies on your VIP. We could use the same function to set the player's name to your targeting and attack with SD rune if hp 0 to 100% and mana 0 to 100% with chase and maybe UE too and keep hunting HAHAHA.. no no wait MUHAHAHAHA

  5. #5
    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
    Last edited by Furieri; 09-11-2014 at 09:47 AM.

  6. #6
    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

  7. #7
    iBot User Dvlkob's Avatar
    Join Date
    Sep 2014
    Location
    Home at US and Brazil
    Posts
    26
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    10
    Rep Power
    3
    REPs up for ya

  8. #8
    iBot User
    Join Date
    Jul 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    did it work?

  9. #9
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    Added new Monster type : PK. Will attack PK, just if PK attack you in less then 30s.

Tags for this Thread

Posting Permissions

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