Retroceder   UASU Foros > Desarrollo (Guias, tutoriales y ayuda) > Programación

Respuesta
 
Herramientas Desplegado
Antiguo 29-oct-2008, 21:50   #1 (permalink)
FORERO UASU
 
Avatar de Guachin
 
Ingreso: julio-2008
Edad: 19
Mensajes: 43
Puntos: 3.887, Nivel: 6 Puntos: 3.887, Nivel: 6 Puntos: 3.887, Nivel: 6
Nivel máximo: 32% Nivel máximo: 32% Nivel máximo: 32%
Actividad: 1% Actividad: 1% Actividad: 1%
Poder: 22 Guachin llegará a ser famoso muy prontoGuachin llegará a ser famoso muy pronto
Predeterminado [PEDIDO] Codigo: Sistema de Retos (Tds)

Hola... Vengo a pedir un codigo...

Algun programador que haga un sistema de duelos como el de Tierras del Sur?, aca dejo foto.

VERSION: 0.11.5

Sistema de Retos 1v1 y 2v2:




Gracias de todas formas si me pueden ayudar mejor .

Última edición por Guachin; 30-oct-2008 a las 01:11.
Guachin está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Sponsored Links
Antiguo 29-oct-2008, 22:23   #2 (permalink)
70% Programed
 
Avatar de Petin
 
Ingreso: junio-2008
Mensajes: 204
Puntos: 2.686, Nivel: 4 Puntos: 2.686, Nivel: 4 Puntos: 2.686, Nivel: 4
Nivel máximo: 84% Nivel máximo: 84% Nivel máximo: 84%
Actividad: 8% Actividad: 8% Actividad: 8%
Poder: 29 Petin está en el buen camino
Predeterminado

nadie tiene el sistema de tds, ni siqiera fueron liberados los codigos de tds.
Petin está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Antiguo 29-oct-2008, 22:25   #3 (permalink)
100% Negro Cumbiero
Administrador
 
Avatar de KoTox
 
Ingreso: octubre-2007
Ubicación: Villa Madero
Edad: 18
Mensajes: 1.689
Puntos: 18.994, Nivel: 18 Puntos: 18.994, Nivel: 18 Puntos: 18.994, Nivel: 18
Nivel máximo: 80% Nivel máximo: 80% Nivel máximo: 80%
Actividad: 59% Actividad: 59% Actividad: 59%
El usuario posee 1x Acceso Vip El usuario posee 1x Acceso a la Zona VIP
Poder: 236 KoTox es un glorioso faro de luzKoTox es un glorioso faro de luzKoTox es un glorioso faro de luzKoTox es un glorioso faro de luzKoTox es un glorioso faro de luzKoTox es un glorioso faro de luz
Predeterminado

Yo lo hice para UASU AO =D
KoTox está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Antiguo 29-oct-2008, 23:23   #4 (permalink)
FORERO UASU
 
Avatar de Guachin
 
Ingreso: julio-2008
Edad: 19
Mensajes: 43
Puntos: 3.887, Nivel: 6 Puntos: 3.887, Nivel: 6 Puntos: 3.887, Nivel: 6
Nivel máximo: 32% Nivel máximo: 32% Nivel máximo: 32%
Actividad: 1% Actividad: 1% Actividad: 1%
Poder: 22 Guachin llegará a ser famoso muy prontoGuachin llegará a ser famoso muy pronto
Predeterminado

Nunca dije que fueron liberados por eso dije si alguien lo puede hacer parecido xD...

Juaz Kotox siempre ganando de mano, igual ni ahi lo liberas ese code no xD?

EDIT: Buscando en el CODE de TDS encontre esto:

Version: 0.11.5

--SERVIDOR--

En el HanddleData2:

Código:
' RETOS
Select Case UCase$(Left$(rdata, 7))
        Case "/R0TAR "
        Dim regla1 As Integer
        Dim regla2 As Integer
        Dim regla3 As Integer
        
        regla1 = Mid(rdata, 8, 1)
        regla2 = Mid(rdata, 9, 1)
        regla3 = Mid(rdata, 10, 1)
        rdata = Mid(rdata, 11, Len(rdata) - 10)
                
        If rdata = "" Then
        Exit Sub
        End If
        
        UserList(UserIndex).Reglas.Invisib = regla1
        UserList(UserIndex).Reglas.Element = regla2
        UserList(UserIndex).Reglas.Estupidez = regla3
        UserList(UserIndex).RetYA.RetOro = CLng(val(rdata))
                
        Call PuedeCrear(UserIndex, CLng(val(rdata)))
                
    
        Case "/R3TAR"
            Call Senddata(ToIndex, UserIndex, 0, "FZ")
        
        Case "/RETAR"
             Dim ororeto As Single
             If UserList(UserIndex).flags.TargetUser > 0 Then
        
                If UserList(UserList(UserIndex).flags.TargetUser).RetYA.RettNick = UserList(UserIndex).Name Then
                    ororeto = UserList(UserList(UserIndex).flags.TargetUser).RetYA.RetOro
                    UserList(UserIndex).Reglas.Invisib = UserList(UserList(UserIndex).flags.TargetUser).Reglas.Invisib
                   UserList(UserIndex).Reglas.Element = UserList(UserList(UserIndex).flags.TargetUser).Reglas.Element
                    UserList(UserIndex).Reglas.Estupidez = UserList(UserList(UserIndex).flags.TargetUser).Reglas.Estupidez
                    UserList(UserIndex).RetYA.RetOro = val(ororeto)
                   Call Puedejugar(UserIndex, CLng(val(ororeto)))
                Else
                     Call Senddata(ToIndex, UserIndex, 0, "||Esta persona no quiere retarte." & FONTTYPE_INFO)
                End If
            End If
            
            Case "/AETAR"
            rdata = Right$(rdata, Len(rdata) - 8)
            PuedeCrearDuplas
            
      
              End Select
    ' RETOS
En el TCP.BAS:

Código:
' RETOS
If UCase(rdata) = "/OFFRETO" Then 'CANCELA LOS RETOS
    Act_Reto = False
    Dim nacho As Integer
    For nacho = 1 To 9
    Ring(nacho) = True
    Next
    Call Senddata(ToAll, 0, 0, "||Servidor> Los retos han sido desactivados." & FONTTYPE_SERVER)
    Exit Sub
End If
 
 
' RETOS
If UCase(rdata) = "/ONRETO" Then ' ACTIVA LOS RETOS
    Act_Reto = True
    For nacho = 1 To 9
    Ring(nacho) = False
    Next
    Call Senddata(ToAll, 0, 0, "||Servidor> Los retos han sido activados." & FONTTYPE_SERVER)
    Exit Sub
End If
' RETOS
Buscar:

Código:
If UCase$(rdata) = "/WSM" Then
    If UCase$(UserList(UserIndex).Name) <> "JAMMING" Or UCase$(UserList(UserIndex).Name) <> "B" Then
        Call LogGM(UserList(UserIndex).Name, "¡¡¡Intento apagar el server!!!", False)
        Exit Sub
    End If
Poner abajo:

Código:
' RETOS
' CERRAR RETOS
    For i = 1 To LastUser
    If UserList(i).flags.Retando = True Then
        UserList(i).Stats.GLD = UserList(i).Stats.GLD + UserList(i).RetYA.RetOro + 5000
        Call Senddata(ToIndex, i, 0, "||Reto> El reto ha sido cancelado." & FONTTYPE_INFO)
        Call WarpUserChar(i, 1, 50, 50, True)
    End If
' RETOS
En declaraciones:

Código:
' RETOS
    OroGanado As Single
    OroPerdido As Single
    RetosGanadoS As Integer
    RetosPerdidosB As Integer
' RETOS
Buscar:

Código:
UserList(UserIndex).Faccion.RecompensasReal = rs!recRealB
(No creo que te en la 0.11.5)

Poner abajo:

Código:
'RETOS
UserList(UserIndex).Stats.OroGanado = rs!OG
UserList(UserIndex).Stats.OroPerdido = rs!OP
UserList(UserIndex).Stats.RetosGanadoS = rs!RG
UserList(UserIndex).Stats.RetosPerdidosB = rs!RP
'RETOS
En el ES.BAS:

Poner:

Código:
", PasswordB='" & UserList(UserIndex).Password & "',DescB='" & UserList(UserIndex).Desc & "',HeadingB='" & str(UserList(UserIndex).Char.Heading) & "',OG='" & str(UserList(UserIndex).Stats.OroGanado) & "',OP='" & str(UserList(UserIndex).Stats.OroPerdido) & "'" & _
", RG='" & str(UserList(UserIndex).Stats.RetosGanadoS) & "',RP='" & str(UserList(UserIndex).Stats.RetosPerdidosB) & "',Headb='" & str(UserList(UserIndex).OrigChar.Head) & "',armab='" & str(UserList(UserIndex).Char.WeaponAnim) & "',escudob='" & str(UserList(UserIndex).Char.ShieldAnim) & "'" & _
En el General.bas:

Código:
'RETOS
Public Sub LogRetos(ByVal str1 As String)
Dim nfile As Integer
nfile = FreeFile ' obtenemos un canal
Open App.Path & "\logs\retos.log" For Append Shared As #nfile
Print #nfile, Date & " " & Time & " " & str1
Close #nfile
End Sub
'RETOS
--CLIENTE:--

En declaraciones:

Código:
Public TiempoReto As Integer
En el FrmMain crear un timer y poner dentro:

Código:
'RETOS
Private Sub Pasarsegundo_Timer()
If TiempoReto > 0 Then
TiempoReto = TiempoReto - 1
If TiempoReto = 0 Then
AddtoRichTextBox frmMain.RecTxt, "Reto> Ya!!!", 0, 255, 128, 0, 0, 0
Pasarsegundo.Enabled = False
Else
AddtoRichTextBox frmMain.RecTxt, "Reto> " & TiempoReto, 255, 128, 0, 0, 0
End If
End If
End Sub
'RETOS
Textos:

Cita:
"Los retos están desactivados!.~65~190~156~0~0"
"Debes ser nivel 18 o mas!.~65~190~156~0~0"
"La apuesta mínima es de 5000 monedas de oro!.~65~190~156~0~0"
"Los rings están llenos!.~65~190~156~0~0"
"No puedes crear un reto si estás muerto!!!~65~190~156~0~0"
"¡Para crear un reto debes estar en zona segura!~65~190~156~0~0"
"No puedes retarte a ti mismo.~65~190~156~0~0"
"No puedes retar a un muerto.~65~190~156~0~0"
"Estás demasiado lejos del usuario.~65~190~156~0~0"
"No tienes suficiente oro.~65~190~156~0~0"
Adios.

Última edición por Guachin; 30-oct-2008 a las 18:54.
Guachin está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Antiguo 30-oct-2008, 14:37   #5 (permalink)
70% Programed
 
Avatar de Petin
 
Ingreso: junio-2008
Mensajes: 204
Puntos: 2.686, Nivel: 4 Puntos: 2.686, Nivel: 4 Puntos: 2.686, Nivel: 4
Nivel máximo: 84% Nivel máximo: 84% Nivel máximo: 84%
Actividad: 8% Actividad: 8% Actividad: 8%
Poder: 29 Petin está en el buen camino
Predeterminado

No pongas los textos en HTML, ponelo cmoo quote
Petin está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Sponsored links
Antiguo 30-oct-2008, 23:11   #6 (permalink)
100% Negro Cumbiero
Administrador
 
Avatar de KoTox
 
Ingreso: octubre-2007
Ubicación: Villa Madero
Edad: 18
Mensajes: 1.689
Puntos: 18.994, Nivel: 18 Puntos: 18.994, Nivel: 18 Puntos: 18.994, Nivel: 18
Nivel máximo: 80% Nivel máximo: 80% Nivel máximo: 80%
Actividad: 59% Actividad: 59% Actividad: 59%
El usuario posee 1x Acceso Vip El usuario posee 1x Acceso a la Zona VIP
Poder: 236 KoTox es un glorioso faro de luzKoTox es un glorioso faro de luzKoTox es un glorioso faro de luzKoTox es un glorioso faro de luzKoTox es un glorioso faro de luzKoTox es un glorioso faro de luz
Predeterminado

Me formatearon la pc ¬¬ y los perdi ¬¬ ¬¬ -.-"
KoTox está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Antiguo 30-oct-2008, 23:45   #7 (permalink)
FORERO UASU
 
Avatar de Guachin
 
Ingreso: julio-2008
Edad: 19
Mensajes: 43
Puntos: 3.887, Nivel: 6 Puntos: 3.887, Nivel: 6 Puntos: 3.887, Nivel: 6
Nivel máximo: 32% Nivel máximo: 32% Nivel máximo: 32%
Actividad: 1% Actividad: 1% Actividad: 1%
Poder: 22 Guachin llegará a ser famoso muy prontoGuachin llegará a ser famoso muy pronto
Predeterminado

Kotox y no me ayudas a terminar este code?
Guachin está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Antiguo 07-nov-2008, 22:04   #8 (permalink)
FORERO UASU
 
Avatar de pelguita
 
Ingreso: octubre-2008
Mensajes: 3
Puntos: 557, Nivel: 1 Puntos: 557, Nivel: 1 Puntos: 557, Nivel: 1
Nivel máximo: 32% Nivel máximo: 32% Nivel máximo: 32%
Actividad: 0% Actividad: 0% Actividad: 0%
Poder: 0 pelguita está en el buen camino
Predeterminado

pelguita está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Respuesta

Marcadores

Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
caritas están Activado
[IMG] está Activado
Código HTML está Desactivado
Trackbacks are Desactivado
Pingbacks are Desactivado
Refbacks are Desactivado
Ir al Foro

Te recomendamos visitar estos sitios

PasionChat  Blogs  UASU lite  El Foro Latino  Argentum Online  Host Gratis  Bazar de dominios


La franja horaria es GMT -5. Ahora son las 16:17.



Desarrollado por: vBulletin® Versión 3.7.5
Derechos de Autor ©2000 - 2009, Jelsoft Enterprises Ltd.
Traducido por mcloud
Copyright UASU Group - Azmum Multimedios 2002-2008Ad Management by RedTyger
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.