Antiguo 16-nov-2008, 15:50   #1 (permalink)
FORERO UASU
 
Avatar de fechh
 
Ingreso: noviembre-2008
Edad: 18
Mensajes: 75
Puntos: 1.103, Nivel: 2 Puntos: 1.103, Nivel: 2 Puntos: 1.103, Nivel: 2
Nivel máximo: 41% Nivel máximo: 41% Nivel máximo: 41%
Actividad: 3% Actividad: 3% Actividad: 3%
Poder: 12 fechh está en el buen camino
Predeterminado [Pedido] Código VB

Buenas.
Bueno simplemente quiero hacer una Form nueva donde clickees en un item (Picture) y ese item vaya a tu inventario.
Algo parecido al "sistema de canje" posteado por Kroto, solo que no se como hacerlo.

Gracias (:

fechh está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Sponsored Links
Antiguo 16-nov-2008, 16:22   #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

Por ejemplo vos agergaste el Case "KOTO1", bueno, vas a PROJECT, add form, y en el frm, al la izquierda busca el COMMANDBUTTON, le haces 2ble click y ahi adentro pones CALL SENDDATA("KOTO1") tonces dsp en el juego, clickeas ese boton y hace la funcion del KOTO1 y te da el item
Petin está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Antiguo 16-nov-2008, 16:33   #3 (permalink)
FORERO UASU
 
Avatar de Blade
 
Ingreso: noviembre-2007
Mensajes: 207
Agradecimientos realizados: 9
Le han agradecido 2 veces en 2 Posts
Reportes: 0
Reportado 1 Vez en 1 Post
Poder: 45 Blade llegará a ser famoso muy prontoBlade llegará a ser famoso muy pronto
Predeterminado

lee el reglamento y te ayudo
Blade está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Antiguo 16-nov-2008, 16:44   #4 (permalink)
FORERO UASU
 
Avatar de fechh
 
Ingreso: noviembre-2008
Edad: 18
Mensajes: 75
Puntos: 1.103, Nivel: 2 Puntos: 1.103, Nivel: 2 Puntos: 1.103, Nivel: 2
Nivel máximo: 41% Nivel máximo: 41% Nivel máximo: 41%
Actividad: 3% Actividad: 3% Actividad: 3%
Poder: 12 fechh está en el buen camino
Predeterminado

Cita:
Iniciado por Blade Ver Mensaje
lee el reglamento y te ayudo
si lo decis por el título, fue sory.. no sabia como describirlo.


Bueno, la cosa es que con el sistema de canje creado por Kotox, justo lo que yo quiero no me funciona. O sea, los puntos, el Form, todo funciona bien, menos el hecho de que cuando clickeo en la imagen me viene el item. Se entiende masomenos ?
Entonces .. cuál sería el código para que cuando clickee en la imagen me de el item sin necesidad de puntos, oro, frags, o lo que sea.

Gracias again (:
fechh está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Antiguo 16-nov-2008, 23:37   #5 (permalink)
EduCanDo a La Competencia
 
Avatar de agush
 
Ingreso: junio-2008
Ubicación: Con Tu Novia
Mensajes: 223
Puntos: 7.169, Nivel: 9 Puntos: 7.169, Nivel: 9 Puntos: 7.169, Nivel: 9
Nivel máximo: 61% Nivel máximo: 61% Nivel máximo: 61%
Actividad: 7% Actividad: 7% Actividad: 7%
Poder: 56 agush es como un diamante en brutoagush es como un diamante en brutoagush es como un diamante en bruto
Predeterminado

Aca te dejo uno bien completo :

Descarga el form :


[Solo Miembros registrados ven los enlaces. ]


empezamos :



Cliente:
Buscamos


Código:
Case "VAL" ' >>>>> Validar Cliente :: VAL 



Arriva ponemos :

Código:
'PUNTOS TORNEOS 
 Case "PTO" 
         Rdata = Right$(Rdata, Len(Rdata) - 3) 
           UserPuntos = Rdata 
       frmcanjes.Label10.Caption = "Tus puntos son: " & UserPuntos 
       frmcanjes.Show 
 Exit Sub
 

Server
Buscamos:



Código:

'Summon 
If UCase$(Left$(rData, 5)) = "/SUM " Then 
   rData = Right$(rData, Len(rData) - 5)
 



arriva colocamos :

Código:
'Puntos Torneo If UCase$(Left$(rData, 8)) = "/DARPUN " Then 
 
rData = Right(rData, Len(rData) - 8) 
tIndex = NameIndex(rData) 
 
If tIndex <= 0 Then 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||El Jugador no esta online." & FONTTYPE_INFO) 
Exit Sub 
End If 
 
UserList(tIndex).Stats.PuntosTorneo = GetVar(CharPath & tIndex & ".chr", "STATS", "PuntosTorneo") 
 
UserList(tIndex).Stats.PuntosTorneo = UserList(tIndex).Stats.PuntosTorneo + 5 
Call SendData(SendTarget.ToIndex, tIndex, 0, "||Has recibido 5 puntos de Torneo, en total tienes: " & UserList(tIndex).Stats.PuntosTorneo & FONTTYPE_INFO) 
Call WriteVar(CharPath & tIndex & ".chr", "STATS", "PuntosTorneo", UserList(tIndex).Stats.PuntosTorneo) 
Call LogGM(UserList(UserIndex).name, "/Darpun " & UserList(tIndex).name, False) 
Exit Sub 
End If 


Buscar :


Código:
Case "/MEDITAR" 


Arriva agregar :


Código:

Case "/CANJEAR" 
           UserList(UserIndex).Stats.PuntosTorneo = GetVar(CharPath & UserIndex & ".chr", "STATS", "PuntosTorneo") 
 Call SendData(SendTarget.ToIndex, UserIndex, 0, "PTO" & UserList(UserIndex).Stats.PuntosTorneo) 
 Exit Sub 




Buscamos :


Código:
Public Type UserStats 


Abajo agregamos

Código:
PuntosTorneo As Integer 



Buscamos, ahora si la parte donde otorgamos premios:


Código:
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||Has rechazado la oferta del otro usuario." & FONTTYPE_TALK) 
 Call FinComerciarUsu(UserIndex) 
 Exit Sub 
 '[/Alejo] 
 End Select
 



y abajo agregamos :


Código:
Select Case UCase$(Left$(rData, 6)) 
 
Case "CANJE1" 
Dim PremioObj As Obj 
PremioObj.Amount = 1 
PremioObj.ObjIndex = 855 
 
If UserList(UserIndex).Stats.PuntosTorneo < 45 Then 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||No tienes suficientes puntos de torneo!." & FONTTYPE_INFO) 
Else 
UserList(UserIndex).Stats.PuntosTorneo = UserList(UserIndex).Stats.PuntosTorneo - 45 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||Se te han descontado 45 Pts. de Torneo y ahora te pertenece una Tunica de Mitrhil!." & FONTTYPE_INFO) 
Call MeterItemEnInventario(UserIndex, PremioObj) 
End If 
Exit Sub 
 
Case "CANJE2" 
PremioObj.Amount = 1 
PremioObj.ObjIndex = 476 
 
If UserList(UserIndex).Stats.PuntosTorneo < 25 Then 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||No tienes suficientes puntos de torneo!." & FONTTYPE_INFO) 
Else 
UserList(UserIndex).Stats.PuntosTorneo = UserList(UserIndex).Stats.PuntosTorneo - 25 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||Se te han descontado 25 Pts. de Torneo y ahora te pertenece un Galeón!." & FONTTYPE_INFO) 
Call MeterItemEnInventario(UserIndex, PremioObj) 
End If 
Exit Sub 
 
Case "CANJE3" 
PremioObj.Amount = 1 
PremioObj.ObjIndex = 474 
 
If UserList(UserIndex).Stats.PuntosTorneo < 20 Then 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||No tienes suficientes puntos de torneo!." & FONTTYPE_INFO) 
Else 
UserList(UserIndex).Stats.PuntosTorneo = UserList(UserIndex).Stats.PuntosTorneo - 20 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||Se te han descontado 20 Pts. de Torneo y ahora te pertenece una Barca!." & FONTTYPE_INFO) 
Call MeterItemEnInventario(UserIndex, PremioObj) 
End If 
Exit Sub 
 
Case "CANJE4" 
PremioObj.Amount = 1 
PremioObj.ObjIndex = 476 
 
If UserList(UserIndex).Stats.PuntosTorneo < 25 Then 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||No tienes suficientes puntos de torneo!." & FONTTYPE_INFO) 
Else 
UserList(UserIndex).Stats.PuntosTorneo = UserList(UserIndex).Stats.PuntosTorneo - 25 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||Se te han descontado 25 Pts. de Torneo y ahora te pertenece un Galeón!." & FONTTYPE_INFO) 
Call MeterItemEnInventario(UserIndex, PremioObj) 
End If 
Exit Sub 
 
Case "CANJE5" 
PremioObj.Amount = 1 
PremioObj.ObjIndex = 857 
 
If UserList(UserIndex).Stats.PuntosTorneo < 45 Then 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||No tienes suficientes puntos de torneo!." & FONTTYPE_INFO) 
Else 
UserList(UserIndex).Stats.PuntosTorneo = UserList(UserIndex).Stats.PuntosTorneo - 45 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||Se te han descontado 45 Pts. de Torneo y ahora te pertenece un Casco de Mithril!." & FONTTYPE_INFO) 
Call MeterItemEnInventario(UserIndex, PremioObj) 
End If 
Exit Sub 
 
Case "CANJE6" 
PremioObj.Amount = 1 
PremioObj.ObjIndex = 855 
 
If UserList(UserIndex).Stats.PuntosTorneo < 45 Then 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||No tienes suficientes puntos de torneo!." & FONTTYPE_INFO) 
Else 
UserList(UserIndex).Stats.PuntosTorneo = UserList(UserIndex).Stats.PuntosTorneo - 45 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||Se te han descontado 45 Pts. de Torneo y ahora te pertenece una Tunica de Mitrhil!." & FONTTYPE_INFO) 
Call SendData(SendTarget.ToIndex, UserIndex, 0, "||Tus puntos actuales son " & UserList(UserIndex).Stats.PuntosTorneo & FONTTYPE_INFO) 
Call MeterItemEnInventario(UserIndex, PremioObj) 
End If 
Exit Sub 
 
End Select 
Dejo la manera de hacer que sea /darpun nick@cantidad para quienes quieran (reemplazar todo el /darpun pro este)



Código:
If UCase$(Left$(rData, 8)) = "/DARPUN " Then 
 
rData = Right$(rData, Len(rData) - 8) 
tIndex = NameIndex(ReadField(1, rData, 64)) 
Arg1 = ReadField(2, rData, 64) 
 
 If tIndex <= 0 Then 
 Call SendData(SendTarget.ToIndex, UserIndex, 0, "||El usuario no esta online." & FONTTYPE_INFO) 
 Exit Sub 
 End If 
 
 
If val(Arg1) < 0 Then 
 Call SendData(SendTarget.ToIndex, UserIndex, 0, "||No podes otorgar cantidades negativas" & FONTTYPE_WARNING) 
 Exit Sub 
End If 
 
UserList(tIndex).Stats.PuntosTorneo = GetVar(CharPath & tIndex & ".chr", "STATS", "PuntosTorneo") 
 
Userlist(tIndex).Stats.PuntosTorneo = UserList(tIndex).Stats.PuntosTorneo + val(Arg1) 
Call SendData(SendTarget.ToIndex, tIndex, 0, "||Has recibido " & val(Arg1) & " puntos de Torneo, en total tienes: " & UserList(tIndex).Stats.PuntosTorneo & FONTTYPE_INFO) 
Call WriteVar(CharPath & tIndex & ".chr", "STATS", "PuntosTorneo", UserList(tIndex).Stats.PuntosTorneo) 
Call LogGM(UserList(UserIndex).name, "/Darpun " & val(Arg1) & " " & UserList(tIndex).name, False) 
 
Call SendUserStatsBox(tIndex) 
Exit Sub 
End If 

Edit : Fuente : MICA - Gs Zone.
__________________
http://img146.imageshack.us/my.php?image=dibujazola5.jpg

"El año ya se va, porque no me aguanta más".
agush está desconectado  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Responder Citando
Sponsored links
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 19:03.



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.