Quedada del ChatBox
Conectarse
Estadísticas
Tenemos 2161 miembros registrados.El último usuario registrado es EdénTheGame.
Nuestros miembros han publicado un total de 37838 mensajes en 4920 argumentos.
Últimos temas
» Galeria de Dibujospor Wecoc Hoy a las 15:32
» D.R.E.A.M.S [RPGXP] [DEMO 2.0!]
por ZeroTwilight Hoy a las 15:05
» CONCURSO DE TROFEOS (Nº2)
por Ribbu Hoy a las 14:44
» Ganar dinero con el maker
por gerrtunk Hoy a las 12:57
» Denme su opinión sobre este sprite
por EdénTheGame Hoy a las 12:37
» Saludos gente
por EdénTheGame Hoy a las 12:27
» script Titulo animado -Modificacion-
por orochii Hoy a las 10:36
» Quisiera información ANTES de descargar VX Ace
por orochii Hoy a las 10:29
» [RMVX] Behemoth Battle System.
por xpertox2000 Hoy a las 3:57
» Dragon Slayer Gaiden (DSG) [video opening nuevo ]
por Sebz Hoy a las 2:58
Temas importantes
----------------------------------------
Páginas con recursos RPG Maker
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
Topic de screens----------------------------------------
[RMXP] Antihack
[RMXP] Antihack
Hola, abro este tema para poner MI PRIMER APORTE.
Pulsando CONTROL el chara no estará en Modo Fantasma.
===========================================
===========================================
Créditos: TDS
Pulsando CONTROL el chara no estará en Modo Fantasma.
===========================================
- Código:
#================================================= =============================
# ** TDS Anti Hack
#------------------------------------------------------------------------------
# Defines a different variable for some testing purposes.
#================================================= =============================
# Variable Name
ANTI_HACK_VARIABLE = true
#================================================= =============================
# ** Scene_Map
#------------------------------------------------------------------------------
# This class performs map screen processing.
#================================================= =============================
class Scene_Map
#--------------------------------------------------------------------------
# * Debug Call
#--------------------------------------------------------------------------
def call_debug
# Clear debug call flag
$game_temp.debug_calling = false
if ANTI_HACK_VARIABLE == false
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Straighten player position
$game_player.straighten
# Switch to debug screen
$scene = Scene_Debug.new
end
end
end
#================================================= =============================
# ** Game_Player
#------------------------------------------------------------------------------
# This class handles the player. Its functions include event starting
# determinants and map scrolling. Refer to "$game_player" for the one
# instance of this class.
#================================================= =============================
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# * Passable Determinants
# x : x-coordinate
# y : y-coordinate
# d : direction (0,2,4,6,8)
# * 0 = Determines if all directions are impassable (for jumping)
#--------------------------------------------------------------------------
alias tds_anti_hack_passable? passable?
def passable?(x, y, d)
tds_anti_hack_passable?(x, y, d)
# Get new coordinates
new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
new_y = y + (d == 2 ? 1 : d == 8 ? -1 : 0)
# If coordinates are outside of map
unless $game_map.valid?(new_x, new_y)
# Impassable
return false
end
# If debug mode is ON and ctrl key was pressed
if $DEBUG and Input.press?(Input::CTRL)
# Passable
return true if ANTI_HACK_VARIABLE == false
end
super
end
end
===========================================
Créditos: TDS
Dropune- Iniciado

-

0
Re: [RMXP] Antihack
Un aporte estupendo!
Ya que últimamente cogen muchos recursos de otros proyectos ya creados,esto sería una ventaja para los creadores de un juego.
Salu2
Ya que últimamente cogen muchos recursos de otros proyectos ya creados,esto sería una ventaja para los creadores de un juego.
Salu2
_________________

Permiso de este foro:
No puedes responder a temas en este foro.
















