Enviar respuesta 
 
Calificación:
  • 0 votos - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5
Script
10-11-2011, 09:30 PM
Mensaje: #1
Script

Hola amigos, despues de hablar con 6Dragon6 y con un par mas decidi postear esto.No me funca un script que hice BUAAAAAA, entonces con mi cara asi:
[Imagen: bebe-llorando.jpg]
Decidi a ver si la comunidad me ayudaba.Se trata de un script que lo que hace es que le quita el 15% de EXP a cambio de 1000 mana y que la vida me quee en 1:
Código PHP:
Case 6
    Valores 
Rand(1,3)
    If 
Valores 1 Then
        expmio 
GetPlayerExp(Index)
        
exptuyo GetPlayerExp(GetPlayerTarget(Index))
        
nombreobjetivo GetPlayerName(GetPlayerTarget(Index))
        
mana GetPlayerMP(Index)
        
vida GetPlayerHP(Index)
        
nombretuyo GetPlayerName(Index)
        
nivelotro GetPlayerLevel(GetPlayerTarget(Index))
        If 
GetPlayerMP(Index) > 1000 Then
            Call BattleMsg
(Index,"Le has quitado el 15% de puntos de EXP a " nombreobjetivo " para agregartelos a ti a cambio has perdido 1000 puntos de Mana y se te ah bajado la Vida a 1",0,0)
            
Call BattleMsg(GetPlayerTarget(Index),"" nombretuyo " te ah quitado el 15% de puntos de EXP pero a perdido casi toda su vida, aprovecha y matalo",0,0)
            
Call SetPlayerExp(index, ((getplayerExp(index)*80)/100))
            
Call SendPlayerData(Index)
            
Call SendStats(Index)
            
Call SetPlayerExp(GetPlayerTarget(Index),exptuyo*80)/100))
            
Call SendPlayerData(Index)
            
Call SendStats(Index)
            
Call SetPlayerHP(Index,vida=1)
            
Call SendHP(Index)
            
Call SendPlayerData(Index)
            
Call SendStats(Index)
            
Call SetPlayerMP(Index,mana-1000)
            
Call SendMP(Index)
            
Call SendPlayerData(Index)
            
Call SendStats(Index)
    
End If
      ElseIf 
Valores 2 Then
            expmio 
GetPlayerExp(Index)
            
exptuyo GetPlayerExp(GetPlayerTarget(Index))
            
nombreobjetivo GetPlayerName(GetPlayerTarget(Index))
            
mana GetPlayerMP(Index)
            
vida GetPlayerHP(Index)
            
nombretuyo GetPlayerName(Index)
            
nivelotro GetPlayerLevel(GetPlayerTarget(Index))
            If 
GetPlayerMP(Index) > 1000 Then
                Call BattleMsg
(Index,"Le has quitado el 15% de puntos de EXP a " nombreobjetivo " para agregartelos a ti a cambio has perdido 1000 puntos de Mana y se te ah bajado la Vida a 1",0,0)
                
Call SetPlayerExp(index, ((getplayerExp(index)*80)/100))
                
Call SendPlayerData(Index)
                
Call SendStats(Index)
                
Call SetPlayerExp(GetPlayerTarget(Index),exptuyo*80)/100))
                
Call SendPlayerData(Index)
                
Call SendStats(Index)
                
Call SetPlayerHP(Index,vida=1)
                
Call SendHP(Index)
                
Call SendPlayerData(Index)
                
Call SendStats(Index)
                
Call SetPlayerMP(Index,mana-1000)
                
Call SendMP(Index)
                
Call SendPlayerData(Index)
                
Call SendStats(Index)
            
End If
    ElseIf 
Valores 3 Then
        nombreobjetivo 
GetPlayerName(GetPlayerTarget(Index))
        
Call BattleMsg(Index"Tu hechizo le hizo efecto a " nombreobjetivo " &)
    End If 
Aver si alguien me ayuda para que pueda volver a estar:
[Imagen: nino_riendo.jpg]

Asle Click y ganate un viaje a el centro del Universo
Los invitados no pueden ver los enlaces. Por favor registrate AQUI para ver los enlaces.

Decide RAPIDO o Muere DESPACIO
Planeare solo en silencio,como sera tu final!!!!
Visita su sitio web Encuentra todos sus mensajes
Cita este mensaje en tu respuesta
11-11-2011, 02:48 AM
Mensaje: #2
RE: Script

Creo haber visto 2 cosas, primero en el valores=1 despues de quitarle la xp pusiste Call SendPlayerData(Index) en vez del Call SendPlayerData(GetPlayerTarget(Index)) y ademas primero pusiste expmio como el el jugador y tuyo como el del otro, y con el nombre nombretuyo como el del jugador y nombreotro como el del otr, asegurate si esta bien.

Call SetPlayerHP(Index,vida=1) cambia esto por Call SetPlayerHP(Index, 1). Cambialo en el valores =1 y =2.

Creo que el calculo de exp esta mal aunque no estoy seguro.

Avisa si anda despues de estos cambios, ahora lo pruebo yo, pero seria muy util que actives script errors desde el servidor y que me digas que errores te da.

Salu2, Nickitolas.

[Imagen: itachi1.png]
[Imagen: ichigoqvq.png]
--- Te gustan mis firmas?? pasate por mi post: Los invitados no pueden ver los enlaces. Por favor registrate AQUI para ver los enlaces. ---
Encuentra todos sus mensajes
Cita este mensaje en tu respuesta
12-11-2011, 01:28 AM
Mensaje: #3
RE: Script

*Muevo a dudas sobre scripts.
Encuentra todos sus mensajes
Cita este mensaje en tu respuesta
Enviar respuesta 


Posibles temas similares...
Tema: Autor Respuestas: Vistas: Último mensaje
  algien me arregla este script Suin 6 122 24-03-2012 09:07 PM
Último mensaje: nickitolas
  Ayuda con un script que hice Alaann_vpc 6 154 29-01-2012 11:48 PM
Último mensaje: judoka
  Ayuda con un script de transformación. Drake 4 151 25-01-2012 07:46 PM
Último mensaje: Mr. Jeshuem
  Script de Soporte no funciona Rodo 10 244 18-01-2012 12:26 PM
Último mensaje: Ellesar
  [Duda] Es posible que se haga un script que agrege peso al inventario? jepeto 1 80 18-01-2012 12:25 PM
Último mensaje: Ellesar

Salto de foro:


Usuario(s) navegando en este tema: 3 invitado(s)
ContáctanosAlterEngineVolver arribaVolver al contenidoArchivo (Modo simple)Sindicación RSS