Autor Tema: [Script] Battle's Off [Player] By Allen  (Leído 1617 veces)

0 Usuarios y 1 Visitante están viendo este tema.

xBʟᴜᴇ

  • I feel blue~
  • Usuario de honor
  • Pokéxperto Omega
  • *
  • Mensajes: 11365
  • Karma: +29/-11
    • Ver Perfil

  • Total Badges: 44
    Badges: (View All)
    Décimo aniversario Noveno aniversario Nivel 7
[Script] Battle's Off [Player] By Allen
« en: 30 de Septiembre de 2009, 06:31:59 pm »
Este Script es una Versión mas Avanzada del script BattleOff general.
Creado por mi,

¿Para que sirve?
Es como si banearas a ese jugador de poder participar en batallas pero solamente a ese jugador los demas no se veran afectados.

~Script

Los Siguientes Codigos Van dentro del Event -ChatMessage O Event +ChatMessage
las partes con este signo //Son explicaciónes Y/O /Sets
Código: [Seleccionar]
//Event -ChatMessage

If $Left($Message, 12) = "!BattlesOff " AND #GetPlayerInfo(#Source, AUTH) > 0
/Set #T, #PNumber($Right($Message, #Len($Message) - 12))
If #T = 0
/SendPM #Source, $Bot & " Lo sentimos pero ese jugador no esta presente en el server Y/O no existe."
/Exit
Else
If #GetPlayerInfo(#Source, AUTH) <= #GetPlayerInfo(#T, AUTH)
/StopEvent
/SendPM #Source, $Bot & " Lo siento pero no Puedes completar esta operación puesto que el Jugador selecionado tiene una Authoridad mayor a la tuya."
/Exit
Else
If $GetValue($GetPlayerInfo(#T, PSID) & "/Battles") = "1"
/SendPM #Source, $Bot & " Este jugador Ya tiene deshabilidatas las batallas."
/Exit
Else
/SendAll $Bot & " " & $Name(#Source) & " Ha privado a" & $Name(#T) & "De porde luchar."
/SendPM #T, "*** " & $Name(#Source) & " Te acaba de Privar de volver a Pelear contra cualquier user Y tampoco podras ser retado."
/SaveValue $GetPlayerInfo(#T, PSID) & "/Battles", 1
/StopEvent
/Exit
EndIf
EndIf
EndIf
EndIf

If $Left($Message, 11) = "!BattlesOn " AND #GetPlayerInfo(#Source, AUTH) > 0
/Set #T, #PNumber($Right($Message, #Len($Message) - 11))
If #T = 0
/SendPM #Source, $Bot & " Lo sentimos pero ese jugador no esta presente en el server Y/O no existe."
/Exit
If #GetPlayerInfo(#Source, AUTH) <= #GetPlayerInfo(#T, AUTH)
/StopEvent
/SendPM #Source, $Bot & " Lo siento pero no Puedes completar esta operación puesto que el Jugador selecionado tiene una Authoridad mayor a la tuya."
/Exit
Else
If $GetValue($GetPlayerInfo(#T, PSID) & "/Battles") = "0"
/SendPM #Source, $Bot & " Este jugador no ha sido Privado de poder luchar.."
Else
/SaveValue $GetPlayerInfo(#T, PSID) & "/Battles", 0
/SendAll $Bot & " " & $Name(#Source) & " Ha habilitado las batallas a" & $Name(#T) & ", Ahora si podras luchar, Y ser retado."
/SendPM #T, "*** " & $Name(#Source) & " Te ha habilitado las batallas ahora podras retar y ser retado."
/StopEvent
/Exit
EndIf
EndIf
EndIf
EndIf


//EndEvent

//Nota: el $Bot & " Solo funciona si teneis el:
 /Set $Bot "Nombre de tu Bot"


Ahora el codigo para que cuando  te reten salga "Este jugador no esta habilitado para recibir retos" Y para que cuando el jugador con las batallas apagadas tampoco pueda retar.
Esto codigo va dentro del Event -ChallengeIssued
Código: [Seleccionar]
Event -ChallengeIssued

If $GetValue($GetPlayerInfo(#Source, PSID) & "/Battles") = "1"
/StopEvent
/SendPM #Source, $Bot & " Lo siento pero has sido Privado de luchar a tus anchas, Pidele a Un Mod/Admin/MegaAdmin Que te vuelva a habilitar las batallas si las Consecuencias de que te lo quitaran no eran graves."
EndIf

If $GetValue($GetPlayerInfo(#Target, PSID) & "/Battles") = "1"
/StopEvent
/SendPM #Source, $Bot & " " & $Name(#Target) & "No esta Habilitado para Recibir retos de Nadie."
EndIf

Si Utilizais el Codigo dad El Credito al Creador ¡Who's Me!
« Última modificación: 30 de Septiembre de 2009, 06:39:36 pm por ~/Kysei Secand »