Crear Personaje Segun Clase Obtiene Distinta Arma

Estado
Cerrado para nuevas respuestas.

Shura

Dragón Ancestral Lvl 2
[SERVIDOR] Crear Personaje Segun Clase Obtine Distinta Arma

Codigo Para El Servidor

GS > Esta corregido el 19/04/06

En TCP.bas En ConnectNewUser Buscan:
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1">UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Invent</span>.<span style="color: #66cc66;">Object</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">ObjIndex</span> = <span style="color: #cc66cc;">460</span></li><li style="" class="li1">UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Invent</span>.<span style="color: #66cc66;">Object</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Amount</span> = <span style="color: #cc66cc;">1</span></li><li style="" class="li2">UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Invent</span>.<span style="color: #66cc66;">Object</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Equipped</span> = <span style="color: #cc66cc;">1</span></li></ol></div>[/vb]
Y Lo Reemplazan Por:
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1">Select <span style="color: #b1b100;">Case</span> UserClase</li><li style="" class="li1">    <span style="color: #b1b100;">Case</span> <span style="color: #ffffff;">"Paladin"</span></li><li style="" class="li2">        UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Invent</span>.<span style="color: #66cc66;">Object</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">ObjIndex</span> = <span style="color: #cc66cc;">707</span></li><li style="" class="li1">    <span style="color: #b1b100;">Case</span> <span style="color: #ffffff;">"Mago"</span></li><li style="" class="li1">        UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Invent</span>.<span style="color: #66cc66;">Object</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">ObjIndex</span> = <span style="color: #cc66cc;">709</span></li><li style="" class="li2">    <span style="color: #b1b100;">Case</span> <span style="color: #ffffff;">"Asesino"</span></li><li style="" class="li1">        UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Invent</span>.<span style="color: #66cc66;">Object</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">ObjIndex</span> = <span style="color: #cc66cc;">708</span></li><li style="" class="li1">    <span style="color: #b1b100;">Case</span> <span style="color: #ffffff;">"Guerrero"</span></li><li style="" class="li2">        UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Invent</span>.<span style="color: #66cc66;">Object</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">ObjIndex</span> = <span style="color: #cc66cc;">710</span></li><li style="" class="li1"><span style="color: #b1b100;">End</span> Select</li><li style="" class="li1">UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Invent</span>.<span style="color: #66cc66;">Object</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Amount</span> = <span style="color: #cc66cc;">1</span></li><li style="" class="li2">UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Invent</span>.<span style="color: #66cc66;">Object</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Equipped</span> = <span style="color: #cc66cc;">1</span></li></ol></div>[/vb]

En OBJ.dat necesitaran:

[OBJ707]
Name=Espada Dos Manos (Newbie)
GrhIndex=504
Objtype=2
MinHIT=4
MaxHIT=12
DosManos=1
Valor=550
Anim=1
CP1=MAGO
CP2=DRUIDA
CP3=LADRON
CP4=BARDO
CP5=SASTRE
CP6=PIRATA
CP7=CLERIGO
CP8=ASESINO
CP9=PESCADOR
CP10=MINERO
CP11=LEÑADOR
newbie=1

[OBJ708]
Name=Espada corta (Newbie)
GrhIndex=588
Objtype=2
MinHIT=1
MaxHIT=6
Valor=2000
Anim=14
Crucial=1
LingH=12
SkHerreria=12
Apuñala=1
newbie=1

[OBJ709]
Name=Vara de Mago (Newbie)
GrhIndex=715
Objtype=2
MinHIT=10
MaxHIT=20
Valor=25350
Anim=6
CP1=GUERRERO
CP2=DRUIDA
CP3=LADRON
CP4=BARDO
CP5=PIRATA
CP6=CARPINTERO
CP7=CAZADOR
CP8=HERRERO
CP9=MINERO
CP10=LEÑADOR
CP11=PESCADOR
newbie=1

[OBJ710]
Name=Martillo de Guerra (Newbie)
GrhIndex=708
Objtype=2
MinHIT=4
MaxHIT=8
Valor=1350
Anim=2
CP1=MAGO
CP2=DRUIDA
CP3=LADRON
CP4=BARDO
CP5=PIRATA
newbie=1
 
Estado
Cerrado para nuevas respuestas.
Arriba