我是新人,进这论坛的时候看到有改VIP11,和VIP12的教程。就跟着教程做了,可是游戏里面有了VIP11,VIP12.但是没有达到我想要的效果。希望通过这里得到帮助。谢谢!不知道自己哪里改的不对了,请帮忙指导一下,以下是我更改的过程:
1.首先我想改的VIP是这样的,VIP1,充值10元,VIP2,充值15元,VIP3,充值20元,VIP4,充值25元,VIP5,充值30元,VIP6,充值300元,VIP7,充值600元,VIP8,充值900元,VIP9,充值1200元,VIP10,充值1500元,VIP11,充值2000元,VIP12,充值10元,VIP1,充值2500元.
2.开始修改:
2.1 首先打开烈焰私服服务端,找到player.lua文件然后查找 player:get_player_type() == 10 then这行
接着依样画葫芦,在上面加如下下代码: if player:get_player_type() == 12 then player:set_name_pre(9,"VIP12");
player:set_status(892,0,100,5);
player:set_situ_revive_num(16);
end
if player:get_player_type() == 11 then
player:set_name_pre(9,"VIP11");
player:set_status(891,0,100,5);
player:set_situ_revive_num(14);
end 内容如图1
2.2查找 if player:get_vcoin_worth() >= 10000000 and player_type <= 9 then再上面加
if player:get_vcoin_worth() >= 30000000 and player_type <= 12 then
player:set_vip_status(12,0,5);
player:set_status(892,0,100,5);
player:set_situ_revive_num(16);
g_alert("恭喜["..player:GetName().."]成为本服VIP12,成为VIP更多惊喜等着你",2,1000,0,1);
return;
end
if player:get_vcoin_worth() >= 15000000 and player_type <= 10 then
player:set_vip_status(11,0,5);
player:set_status(893,0,100,5);
player:set_situ_revive_num(14);
g_alert("恭喜["..player:GetName().."]成为本服VIP11,成为VIP更多惊喜等着你",2,1000,0,1);
return;
end
如图2
2.3 Panel.lua里查找
if funid == 8009 then
ontalkvip_8009(player);
return;
end
在下面增加
if funid == 8010 then
ontalkvip_8010(player);
return;
end
if funid == 8011 then
ontalkvip_8011(player);
return;
end如图3
2.4数据库playerbuff里增加ID为892和893的2个BUFF属性
881 88 88 0 0 0 0 0 0 60 6 0 0
882 88 88 0 0 0 0 0 0 132 18 0 0
883 88 88 0 0 0 0 0 0 216 36 0 0
884 88 88 0 0 0 0 0 0 312 60 0 0
885 88 88 0 0 0 0 0 0 420 90 0 0
886 88 88 0 0 0 0 0 0 546 126 0 0
887 88 88 0 0 0 0 0 0 690 168 0 0
888 88 88 0 0 0 0 0 0 852 216 0 0
889 88 88 0 0 0 0 0 0 1032 273 0 0
890 88 88 0 0 0 0 0 0 1236 339 0 0
902 100 100 0 0 0 0 0 0 0 0 0 0
922 102 102 0 0 0 0 0 0 0 0 0 0
891 88 88 0 0 0 0 0 0 1380 450 0 0
892 88 88 0 0 0 0 0 0 20000 1000 0
|