Results 1 to 4 of 4

Thread: If player attack attack back w/ ASSASSIN STAR

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

    If player attack attack back w/ ASSASSIN STAR

    If player attack attack back with ASSASSIN STAR, actually changing from royal spear to assassin star. Can someone help me with that?!

    found this

    Code:
    local players = getcreatures("ps")
    local count = players.count - 1
     
    for i = 0, count do
        if players[i].isplayerattack and target.name ~= players[i].name then
            attack(players[i].name)
        end
    end
    maybe we could do something with this but... we need to change from royal spear to assassin star first how?!

    Code:
    local ammoName = "Assassin Star"
     
    if target.isattackme and target.isplayer and cancast(ammoName) then
    	useitemontarget(ammoName, target)
    end
    tnx

  2. #2
    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
    Quote Originally Posted by Dvlkob View Post
    If player attack attack back with ASSASSIN STAR, actually changing from royal spear to assassin star. Can someone help me with that?!

    found this

    Code:
    local players = getcreatures("ps")
    local count = players.count - 1
     
    for i = 0, count do
        if players[i].isplayerattack and target.name ~= players[i].name then
            attack(players[i].name)
        end
    end
    maybe we could do something with this but... we need to change from royal spear to assassin star first how?!

    Code:
    local ammoName = "Assassin Star"
     
    if target.isattackme and target.isplayer and cancast(ammoName) then
    	useitemontarget(ammoName, target)
    end
    tnx
    You can't "cast" weapon on target, you can change it.
    Lua Code:
    local players = getcreatures("ps")
    local count = players.count - 1
     
    for i = 0, count do
        if players[i].isplayerattack and target.name ~= players[i].name then
            attack(players[i].name)
            moveitems("Assassin Star", "weapon", 100)
            wait(2000)
        end
    end

  3. #3
    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
    Thank you!
    I'm using this auto refiller, is it going to make my rspears go back to weapon? Do u have any better refiller that works with that action above and would put rspears back after pk leaves?
    Lua Code:
    ---Name: Auto Refiller by Kleyner WT----
    ---------------------------------------
     
    --Power Bolt
    if (nameAmmo == ("power bolt"))
    then
        setsettings("Settings\\Refiller\\Rules\\Power Bolt\\Enabled", "yes")
        wait(200)
    elseif (nameAmmo == ("royal spear")) or (nameAmmo == ("assassin star"))
    then
        setsettings("Settings\\Refiller\\Rules\\Power Bolt\\Enabled", "no")
        wait(200)
     
    end
     
    --Royal Spear
    if (nameAmmo == ("royal spear"))
    then
        setsettings("Settings\\Refiller\\Rules\\royal Spear\\Enabled", "yes")
        wait(200)
    elseif (nameAmmo == ("power bolt")) or (nameAmmo == ("assassin star"))
    then
        setsettings("Settings\\Refiller\\Rules\\royal spear\\Enabled", "no")
        wait(200)
     
    end
     
    ---Assassin Star
    if (nameAmmo == ("assassin star"))
    then
        setsettings("Settings\\Refiller\\Rules\\Assassin Star\\Enabled", "yes")
        wait(200)
        elseif (nameAmmo == ("power bolt")) or (nameAmmo == ("royal spear"))
    then
        setsettings("Settings\\Refiller\\Rules\\Assassin Star\\Enabled", "no")
        wait(200)
    end

  4. #4
    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
    Quote Originally Posted by Dvlkob View Post
    Thank you!
    I'm using this auto refiller, is it going to make my rspears go back to weapon? Do u have any better refiller that works with that action above and would put rspears back after pk leaves?
    Lua Code:
    ---Name: Auto Refiller by Kleyner WT----
    ---------------------------------------
     
    --Power Bolt
    if (nameAmmo == ("power bolt"))
    then
        setsettings("Settings\\Refiller\\Rules\\Power Bolt\\Enabled", "yes")
        wait(200)
    elseif (nameAmmo == ("royal spear")) or (nameAmmo == ("assassin star"))
    then
        setsettings("Settings\\Refiller\\Rules\\Power Bolt\\Enabled", "no")
        wait(200)
     
    end
     
    --Royal Spear
    if (nameAmmo == ("royal spear"))
    then
        setsettings("Settings\\Refiller\\Rules\\royal Spear\\Enabled", "yes")
        wait(200)
    elseif (nameAmmo == ("power bolt")) or (nameAmmo == ("assassin star"))
    then
        setsettings("Settings\\Refiller\\Rules\\royal spear\\Enabled", "no")
        wait(200)
     
    end
     
    ---Assassin Star
    if (nameAmmo == ("assassin star"))
    then
        setsettings("Settings\\Refiller\\Rules\\Assassin Star\\Enabled", "yes")
        wait(200)
        elseif (nameAmmo == ("power bolt")) or (nameAmmo == ("royal spear"))
    then
        setsettings("Settings\\Refiller\\Rules\\Assassin Star\\Enabled", "no")
        wait(200)
    end
    Thats difficult. If you want to change weapon for Ass only if there is PK, you must disable refiller or both action will be debugging each other, only one action can work at one time.

Posting Permissions

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