Quedada del ChatBox
Conectarse

Recuperar mi contraseña

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.
Afiliados
Temas importantes
----------------------------------------
Páginas con recursos RPG Maker
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
Topic de screens
----------------------------------------
Navega con Firefox
[DESCARGA]

[RMXP] Antihack

 :: RPG Maker :: Scripts

Ver el tema anterior Ver el tema siguiente Ir abajo

[RMXP] Antihack

Mensaje por Dropune el Dom 1 Mar 2009 - 22:19

Hola, abro este tema para poner MI PRIMER APORTE.

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
Iniciado

0/3

Créditos 0


Volver arriba Ir abajo

Re: [RMXP] Antihack

Mensaje por Ribbu el Dom 1 Mar 2009 - 22:23

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

_________________

Ribbu
Administrador
Administrador



Créditos 9630


http://www.mundo-maker.com

Volver arriba Ir abajo

Ver el tema anterior Ver el tema siguiente Volver arriba


 :: RPG Maker :: Scripts

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