Signup Now
Results 1 to 10 of 10
  1. #1
    Free User Przemo's Avatar
    Join Date
    May 2014
    Location
    POLSKA
    Posts
    6
    Reputation
    10
    Rep Power
    0

    Post <<<PVP SKILL>>> If player on screen then walk left and logout

    Hello!
    I need a script which walks 2 sqm west when a player appears on a screen (not included on a friend list) and logout.

    I have something like this, but its not working at all:
    -- config
    init start
    local SAFELIST = {"Player Name"}
    init end

    -- code
    table.lower(SAFELIST)
    local count = 0

    auto(100)

    if paround(10) >= 1 then
    gotolabel('West','Logout')
    end
    Last edited by Przemo; 05-16-2014 at 04:39 PM.

  2. #2
    Free User
    Join Date
    May 2014
    Posts
    3
    Reputation
    10
    Rep Power
    0
    help we need this when player on screen movew and logout just this + safe list. SHow u skills

  3. #3
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    @Przemo @kowalszef
    init start
    local SAFELIST = {"Przemo", "Imba", "kowalszef"}
    init end

    table.lower(SAFELIST)

    auto(500)

    local posx, posy, posz = $posx, $posy, $posz

    if (paroundignore(10, table.unpack(SAFELIST)) == 0) then
    return
    else
    while (($posx ~= posx-2) or ($posy ~= posy) or ($posz ~= posz)) do
    moveto(posx-2, posy, posz)
    wait(500)
    end
    while $connected do
    xlog()
    wait(500)
    end
    end
    Last edited by Imba; 05-18-2014 at 11:40 AM.

  4. #4
    Free User Przemo's Avatar
    Join Date
    May 2014
    Location
    POLSKA
    Posts
    6
    Reputation
    10
    Rep Power
    0
    Thanks for your respond, but its doesn't work in this specific case. I mean the main character must go 1 sqm left upstairs to the PZ. It works good on the flat ground.

    ____________

    Chodzi o to, żeby postać po zauważeniu playera spoza safelisty robiła 1 krok w lewo na schody (po wejsciu na nie pojawia się w PZ) i odrazu się wylogował. Skrypt działa prawidłowo na pustej powierzchni, więc problem może leżeć gdzieś w $pozz.

  5. #5
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    W takim razie zamien
    	while (($posx ~= posx-2) or ($posy ~= posy) or ($posz ~= posz)) do

    na
    	while (($posx == posx) and ($posy == posy) and ($posz == posz)) do

  6. #6
    Free User Przemo's Avatar
    Join Date
    May 2014
    Location
    POLSKA
    Posts
    6
    Reputation
    10
    Rep Power
    0
    Zmieniłem ale niestety nadal nie chce wchodzić po schodach.
    Znalazłem coś takiego, tylko nie wiem jak to wkomponować w skrypt z safelistą.

    {
    "name": "move",
    "invocations": [
    {
    "rettype": null,
    "args": [
    {
    "type": "string",
    "name": "direction"
    }
    ],
    "description": "Moves your character in the specified direction. <i>direction</i> can be: 'n', 'e', 's', 'w', 'ne', 'se', 'sw' or 'nw'.",
    "ex": "auto(100)\nif not $inpz and paround(9) > 0 then\n\tmove('s') wait(300,500)\nend",
    "exDescription": "Each 100 milliseconds, it will check if there's a player on screen and you are not inside a protection zone yet. If so, it will move to the south."
    }
    ]
    }

    A może zrobić to jeszcze prościej, bez spełniania warunku $pos tylko samą komendę na ruch w lewo?

    init start
    local SAFELIST = {"Przemo", "Imba", "kowalszef"}
    local count = 0
    init end

    table.lower(SAFELIST)

    auto(500)

    if (paroundignore(10, table.unpack(SAFELIST)) == 0) then
    return

    else

    """TUTAJ KROK W LEWO"""

    wait(500)
    end
    while $connected do
    xlog()
    wait(500)
    end
    end
    Last edited by Przemo; 05-18-2014 at 11:27 AM.

  7. #7
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    @Przemo Dziwne, sprawdzalem i mi dziala. Nautralnie, mozesz zrobic bez sprawdzenia czy poprawnie sie ruszyl, ale wtedy jak cos sie zjebie to samo sie nie naprawi. Ponizej bez sprawdzania czy sie poprawnie ruszyl
    init start
    local SAFELIST = {"Przemo", "Imba", "kowalszef"}
    init end

    table.lower(SAFELIST)

    auto(500)

    local posx, posy, posz = $posx, $posy, $posz

    if (paroundignore(10, table.unpack(SAFELIST)) == 0) then
    return
    else
    moveto(posx-2, posy, posz)
    wait(500)
    while $connected do
    xlog()
    wait(500)
    end
    end


    Mozna to zrobic jeszcze prosciej, ale to jest cofanie sie w rozwoju...

    init start
    local SAFELIST = {"Przemo", "Imba", "kowalszef"}
    init end

    table.lower(SAFELIST)

    auto(500)

    if (paroundignore(10, table.unpack(SAFELIST)) > 0) then
    move('w')
    wait(500,1000)
    move('w')
    wait(500,1000)
    xlog()
    end


    Jakbys mi powiedzial gdzie jest to super tajne miejsce, to zrobilbym konkretnie pod to miejsce i napewno by dzialalo.

  8. #8
    Free User Przemo's Avatar
    Join Date
    May 2014
    Location
    POLSKA
    Posts
    6
    Reputation
    10
    Rep Power
    0
    Wysłałem Ci PM ale z tego co widzę ta prostsza wersja działa bez zarzutu
    Dzięki wielkie, propsy się sypią.

  9. #9
    Free User
    Join Date
    May 2014
    Posts
    3
    Reputation
    10
    Rep Power
    0
    Thanks bro

  10. #10
    Free User
    Join Date
    Jan 2015
    Posts
    1
    Reputation
    10
    Rep Power
    0
    Temat bardzo dla mnie przydatny, ale nie rozwiązuje mojego problemu. Używam bota tylko do skillowania, niestety jestem bardzo popularny i wszyscy chcą mnie zabić dlatego wszystkie tajne i ukryte miejscówki na nic się zdały. Bota nie ogarniam, a problemy których do teraz nie rozwiązałem to: TARGETING - odznaczanie monka na low hp, oraz skrypt który wchodziłby do domku gdy zobaczy gracza na ekranie i po okresie 30 sekund gdy teren jest czysty wychodzi zaznacza monka i trenuje dalej. Nigdy nie jestem full afk, ale na noce w sam raz. Czekam na pw, lub odpowiedzi tutaj. Proszę o pomoc :]

 

 

Posting Permissions

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