先把图标整上去:Interface\Schema\WoWLookSkin.scheme.xml
<Imageset Name="DecorateWeapon1" Filename="Icons/DecorateWeapon1.imageset.xml" />
武器信息加到装备文件里:\tlbb\Public\Config\EquipBase.txt
10315004 1 1 2 104 0 1229 3 -1 -1 红郁金香 1 -1 紫郁金香,永恒爱恋的象征。#r#c00FF00此幻饰武器的装饰等级已满级。 4 4 215 3 3 -1 -1 DecorateWeapon1_4 幻饰武器 -1 1 1 1050 1050 -1 -1 -1 -1 1 1 -1 -1 -1 -1 1 -1 -1 1 -1 -1 1 -1 -1 1 -1 -1 -1 1 -1 -1 -1 -1 -1 -1 1 -1 -1 -1 -1 -1 -1 -1 -1 1 -1 1 -1 -1 -1 -1 -1 -1 1 -1 1 -1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 8 3308 13 13 126 250 -1 0 0 1 -1 -1
接下来你会发现武器是白色的呢:其实是all.material文件没有定义。我们加入dds贴图即可!
接下来你发出现一个全屏红的bug,还有英文字母出现:就是all.effect文件没有定义,我们加入特效才能解决。举个栗子:
effect 武器鲤鱼刀_五级
{
element Particle
{
StartTime 0
LifeTime 0
Position 0 0 0
Orientation 1 0 0 0
ParticleSystem 武器鲤鱼刀_01
}
element Particle
{
StartTime 0
LifeTime 0
Position 0 20 0
Orientation 1 0 0 0
ParticleSystem 武器鲤鱼刀_02
}
element Particle
{
StartTime 0
LifeTime 0
Position 0 0 0
Orientation 1 0 0 0
ParticleSystem 武器鲤鱼刀_03
}
LifeTime 0
}
单纯加到这里,就会客户端报错,竟然连游戏都进不去啦,提示:
Cannot find required template '武器鲤鱼刀_01'.
找不到模板,其实还要改造一下all.particle文件
武器鲤鱼刀_01
{
quota 20
material 武器鲤鱼刀_01
particle_width 2
particle_height 2
cull_each false
renderer billboard
sorted false
local_space true
iteration_interval 0
nonvisible_update_timeout 0
billboard_type oriented_self
billboard_origin center
billboard_rotation_type texcoord
common_direction 0 1 0
common_up_vector 1 0 0
point_rendering false
accurate_facing false
speed_relatived_size_factor 0.01
emitter PolarEmitter
{
angle 0
colour 1 1 1 1
colour_range_start 1 1 1 1
colour_range_end 1 1 1 1
direction 0 1 0
emission_rate 5
position 0 0 0
velocity 60
velocity_min 60
velocity_max 60
time_to_live 2.5
time_to_live_min 2
time_to_live_max 2.5
duration 0
duration_min 0
duration_max 0
repeat_delay 0
repeat_delay_min 0
repeat_delay_max 0
radius_start 2
radius_step 0
radius_end 2
theta_start 10
theta_step 60
theta_end 0
phi_start 0
phi_step 0
phi_end 0
use_polar_step true
flip_yz_axis false
reset_radius_count 0
reset_radius false
}
affector ColourFading
{
colour0 0 0 0 1
time0 0
colour1 0.501961 0 0 1
time1 0.2
colour2 0.709804 0 0 1
time2 0.8
colour3 0 0 0 1
time3 1
colour4 0.411765 0.839216 0.47451 1
time4 1
colour5 0.5 0.5 0.5 0
time5 1
repeat_times 1
opacity 0.5
fade_in_time 0
fade_out_time 1
}
affector ScaleInterpolator
{
uniform_size true
width_range_start 50
width_range_end 50
height_range_start 50
height_range_end 50
use_constant_scale false
constant_scale 1 1 1
use_interpolated_scale true
scale0 5 10 10
time0 0
scale1 3 20 10
time1 0.3
scale2 5 30 10
time2 0.8
scale3 7 40 10
time3 1
scale4 1 1 1
time4 1
scale5 1 1 1
time5 1
repeat_times 1
}
affector Rotator
{
rotation_speed_range_start 60
rotation_speed_range_end -60
rotation_range_start -360
rotation_range_end 360
}
affector Movement
{
use_start_velocity true
start_velocity_min 0 60 3
start_velocity_max 0 70 3
acceleration 0 0 -5
velocity_loss_min 0 0 0
velocity_loss_max 0 0 0
randomness_min 0 0 0
randomness_max 0 0 0
}
}
|