I need help with this plis

Discussion in 'Skript help' started by Mich, Apr 14, 2017.

  1. Mich

    Mich New Member

    Joined:
    Apr 14, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Gender:
    Male
    my problem is inside the first code
    Whend I have op I recive the poits but Whend I have the permission enderite, enderman and enderdragon this not give me the points. help
    Code:
    on death of player:
        if attacker is in "teampvp":
            add 1 to {puntos.%attacker%}
            send "{@logo}&9&lTu as recivido 1 punto." to attacker   
    on death of a player:
        if attacker is in "teampvp":
            if player has permission "endermite":
                add 2 to {puntos.%attacker%}
                send "{@logo}&9 2 Puntos por ser endermite o mas gracias por el rango" to attacker
    on death of a player:
        if attacker is in "teampvp":
            if player has permission "enderman":
                add 1 to {puntos.%attacker%}
                send "{@logo}&9 1 Punto por ser enderman o mas gracias por el rango" to attacker
    on death of a player:
        if attacker is in "teampvp":
            if player has permission "enderdragon":
                add 1 to {puntos.%attacker%}
                send "{@logo}&9 1 punto por ser enderdragon gracias por el rango" to attacker
    This second code is the hole script

    Code:
    options:
        logo: &9[&bEnder&aTheth&9]
    
    command /affa <text> [<text>] [<text>]:
        permission: admin
        permission message: {@logo} &cEste plugin es original de nosotros no lo consegiras y no tienes permisos para este comando
        trigger:
            if arg-1 is "set":
                if arg-2 is "minas":
                    set {minas} to the player's location
                    send "{@logo}&9Minas puestas"
                if arg-2 is "fabricas":
                    set {fabricas} to the player's location
                    send "{@logo}&9Fabricas puestas"
                if arg-2 is "lobby":
                    set {ffa.lobby} to the player's location
                    send "{@logo}&9Lobby puesto"
                if arg-2 is "lobby1":
                    set {ffa.lobby1} to the player's location
                    send "{@logo}&9Lobby1 puesto"
            if arg-1 is "terminada":
                loop all players in world "teampvp":
                    if {ffa.dentro.%player%} is "si":
                        teleport the player to {ffa.lobby}
                        delete {ffa.dentro.%player%}
            if arg-1 is "test":
                broadcast "{@logo}&aLa arena FFA estara abierta en 2 minutos!!"
                wait 1 second
                broadcast "{@logo}&l&9Corran!! Al spawn"
                wait 2 minutes
                broadcast "{@logo}&l&aLa arena FFA esta abierta ya !!"
                set {ffa.abierta} to "si"
                wait 2 minutes
                set {ffa.abierta} to "no"
                broadcast "{@logo}&cFFA cerrada"
                wait 5 minutes
                broadcast "{@logo}&aFFA &cTermina en 15 minutos"
                wait 15 minutes
                broadcast "{@logo}&aFFA &cTerminada"
                execute console command "/affa terminada"           
    #
    on death of player:
        if attacker is in "teampvp":
            add 1 to {puntos.%attacker%}
            send "{@logo}&9&lTu as recivido 1 punto." to attacker   
    on death of a player:
        if attacker is in "teampvp":
            if player has permission "endermite":
                add 2 to {puntos.%attacker%}
                send "{@logo}&9 2 Puntos por ser endermite o mas gracias por el rango" to attacker
    on death of a player:
        if attacker is in "teampvp":
            if player has permission "enderman":
                add 1 to {puntos.%attacker%}
                send "{@logo}&9 1 Punto por ser enderman o mas gracias por el rango" to attacker
    on death of a player:
        if attacker is in "teampvp":
            if player has permission "enderdragon":
                add 1 to {puntos.%attacker%}
                send "{@logo}&9 1 punto por ser enderdragon gracias por el rango" to attacker
    on walking on blue carpet:
        player is in "teampvp"
        teleport the player to {fabricas}
    on walking on green carpet:
        player is in "teampvp"
        teleport the player to {minas}
    on rightclick on a sign:
        if line 1 is "&aFFA":
            if {ffa.abierta} is "si":
                set line 2 of event-block to "&eAbierta"
                teleport the player to {ffa.lobby1}
                equip the player with all leather armor
                set {ffa.dentro.%player%} to "si"
                give a stone sword to the player
                give 2 golden apple to the player
                dye player's helmet lime
                dye player's chestplate lime
                dye player's leggings lime
                dye player's boots lime
                send "{@logo}&9&lBienvenidos a la &aFFA &e%player%"
            else:
                if {ffa.abierta} is "no":
                    send "{@logo}&l&cPerdona aun no esta abierta la &aFFA &e%player%"
                    set line 2 of event-block to "&cCerrada"
    #
    every 60 minutes:
        broadcast "{@logo}&aLa arena FFA estara abierta en 2 minutos!!"
        wait 1 second
        broadcast "{@logo}&l&9Corran!! Al spawn"
        wait 2 minutes
        broadcast "{@logo}&l&aLa arena FFA esta abierta ya !!"
        set {ffa.abierta} to "si"
        wait 2 minutes
        set {ffa.abierta} to "no"
        broadcast "{@logo}&cFFA cerrada"
        wait 5 minutes
        broadcast "{@logo}&aFFA &cTermina en 15 minutos"
        wait 15 minutes
        broadcast "{@logo}&aFFA &cTerminada"
        execute console command "/affa terminada"
    #
    on respawn:
        if {ffa.dentro.%player%} is "si":
            teleport the player to {ffa.lobby1}
            give a stone sword to the player
            give 2 golden apple to the player
            equip the player with all leather armor
            dye player's helmet lime
            dye player's chestplate lime
            dye player's leggings lime
            dye player's boots lime
    on respawn:
        if {ffa.dentro.%player%} is "si":
            wait 1 second
            player has permission "endermite"
            execute console command "/clear %player%"
            wait a tick
            give a stone sword to the player
            give 2 golden apple to the player
            equip the player with all leather armor of protection 1
            give a stone sword to the player
            dye player's helmet lime
            dye player's chestplate lime
            dye player's leggings lime
            dye player's boots lime       
    on respawn:
        if {ffa.dentro.%player%} is "si":
            wait 2 second
            player has permission "enderman"
            execute console command "/clear %player%"
            wait a tick
            give a stone sword of sharpness 1 to the player
            give 4 golden apple to the player
            equip the player with all leather armor of protection 1
            dye player's helmet lime
            dye player's chestplate lime
            dye player's leggings lime
            dye player's boots lime               
        if {ffa.dentro.%player%} is "si":
            wait 3 second
            player has permission "enderdragon"
            execute console command "/clear %player%"
            give a stone sword of sharpness 1 to the player
            give 6 golden apple to the player
            equip the player with all leather armor of protection 2
            dye player's helmet lime
            dye player's chestplate lime
            dye player's leggings lime
            dye player's boots lime             
    on join:
        if {ffa.dentro.%player%} is "si":
            teleport the player to {ffa.lobby}
            delete {ffa.dentro.%player%}
    Thanks for the help.
    hey can u add a forum to upload scripts? and we use aour spigot link
     
  2. diamondpumpkin

    diamondpumpkin PSL Owner/Administrator Staff Member

    Joined:
    May 1, 2016
    Messages:
    671
    Likes Received:
    46
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    PSL
    Location:
    Places, Ukraine
    Home Page:
    Hello,
    I'm not exactly sure what your goal is here, but I think I see the problem. If you could, send me the error log when you reload the script.

    Code:
    on death of player:
        if attacker is in "teampvp": #<----- This line, and lines like it I believe are wrong. What is your intention with this line?
            add 1 to {puntos.%attacker%}
            send "{@logo}&9&lTu as recivido 1 punto." to attacker  
    on death of a player:
        if attacker is in "teampvp":
            if player has permission "endermite":
                add 2 to {puntos.%attacker%}
                send "{@logo}&9 2 Puntos por ser endermite o mas gracias por el rango" to attacker
    on death of a player:
        if attacker is in "teampvp":
            if player has permission "enderman":
                add 1 to {puntos.%attacker%}
                send "{@logo}&9 1 Punto por ser enderman o mas gracias por el rango" to attacker
    on death of a player:
        if attacker is in "teampvp":
            if player has permission "enderdragon":
                add 1 to {puntos.%attacker%}
                send "{@logo}&9 1 punto por ser enderdragon gracias por el rango" to attacker
    
    Edit: I have made the website able to accept Skripts. Go ahead and upload them if you'd like.

    Thanks,
    diamondpumpkin. (PSL Owner/Administrator)
     
  3. Mich2

    Mich2 New Member

    Joined:
    Apr 14, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    does not give me and error its just Im on the world give me 1 ponts but I have permission endermite and does not give me 3 points and if I have op give me 6 points.

    and how I can upgrate thath like if player has permission enderman just give him 2 points not 3 and if player has permission enderman give him 3 points not 4 and if player has permission enderdragon give him 4 not 6.

    hey pumpking I making a 1 vs 1 skript and may be you can help me bia skype I don'd know
     
  4. diamondpumpkin

    diamondpumpkin PSL Owner/Administrator Staff Member

    Joined:
    May 1, 2016
    Messages:
    671
    Likes Received:
    46
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    PSL
    Location:
    Places, Ukraine
    Home Page:
    Hello,
    I see, try this:

    Code:
    on death of player:
        if attacker is in world "teampvp":
            add 1 to {puntos.%attacker%}
            send "{@logo}&9&lTu as recivido 1 punto." to attacker
            if player has permission "endermite":
                add 2 to {puntos.%attacker%}
                send "{@logo}&9 2 Puntos por ser endermite o mas gracias por el rango" to attacker
                stop trigger
            if player has permission "enderman":
                add 1 to {puntos.%attacker%}
                send "{@logo}&9 1 Punto por ser enderman o mas gracias por el rango" to attacker
                stop trigger
            if player has permission "enderdragon":
                add 1 to {puntos.%attacker%}
                send "{@logo}&9 1 punto por ser enderdragon gracias por el rango" to attacker
                stop trigger
    
    I made the code a little more compact and edited the offending line. Assuming I got what your goal is correct, this should work. If this isn't exactly what you need, reply here.

    Thanks,
    diamondpumpkin. (PSL Owner/Administrator)
     
    • Like Like x 1
  5. Mich2

    Mich2 New Member

    Joined:
    Apr 14, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Nice thanks alot
     
  6. Mich2

    Mich2 New Member

    Joined:
    Apr 14, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    I need help with my duel 1 vs 1 skript no error its just some times the player leave the duel and the arena still open and no one can duel how I do like If someone of the duel leave drop the inventory wait like 30 second and the enemy can have time to take the stuff of the guy wh leave and close the arena and teleport the player to {ffa.lobby}. here is the code. Thanks


    Code:
    options:
        logo: &9[&bEnder&aTheth&9]
    command /duelo <player> [<text>] [<text>] [<text>] [<text>]:
        usage: /duelo (jugador) lo que quieras decirle breve y es opcional
        trigger:
            if {duelo.%player%} is "si":
                send "{@logo}Ya as retado a alguien espera"
                stop
            else:
                if {duelo.%player%} is not set:
                    send "{@logo}&aEsperando por %arg-1%" to the player
                    send "{@logo}&aTiene 30 segundos para aceptar" to the player
                    send "{@logo}&a%player% quiere retarte a un duelo" to the arg-1
                    send "{@logo}&aTiene 30 segundos para aceptar" to the arg-1
                    send "{@logo}&a/dueloaceptar %player%" to the arg-1
                    set {duelo.%player%} to "si"
                    wait 30 second
                    if {duelo.%player%} is not set:
                        stop
                    else:
                        send "{@logo}&cDuelo cancelado"
                        delete {duelo.%player%}
                else:
                    stop
    command /dueloaceptar <player>:
        trigger:
            if {duelo.%player%} is "si":
                send "{@logo}No te puedes retar a ti mismo"
            else:
                if {duelo} is "si":
                    send "{@logo}la arena esta en uso"
                    stop
                else:
                    set {duelo} to "si"
                    teleport the player to {duelo.arena.spawn2}
                    teleport the arg-1 to {duelo.arena.spawn1}
    on death of player:
        {duelo.%attacker%} is "si"
        {duelo.%victim%} is "si"
        teleport the attacker to {ffa.lobby}
        set {duelo} to "no"
        delete {duelo.%victim%}
        delete {duelo.%attacker%}
    on join:
        delete {duelo.%player%}
    command /aduelo <text> <text>:
        permission: admin
        permission message: {@logo} Este plugin es original de nosotros y no tienes acceso a este comando
        trigger:
            if arg-1 is "spawn":
                if arg-2 is "1":
                    set {duelo.arena.spawn1} to the player's location
                    send "{@logo}Spawn 1"
                if arg-2 is "2":
                    set {duelo.arena.spawn2} to the player's location
                    send "{@logo}spawn 2"
                if arg-2 is "reset":
                    set {duelo} to "no"