|
打开烈焰私服务端的脚本SCRIPTS文件夹下的player.lua文件
查找 player:get_player_type() == 10 then
在上面加
if player:get_player_type() == 12 then ---VIP状态及称号
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
查找 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
scripts/Panel文件夹内的
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
数据库playerbuff里增加ID为892和893的2个BUFF属性
依照此方法可以无限增加VIP等级! 520页游论坛 欢迎您常来看看
|
|