llllll 发表于 2015-11-7 19:10:31

增加VIP的方法

这里举例增加到VIP12的方法
首先打开烈焰私服服务端,找到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
查找 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


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属性
此脚本为疯狂烈焰私服www.ly878.com独家创作,转帖请注明,谢谢!
520页游论坛www.ye520.com 欢迎您的到来
页: [1]
查看完整版本: 增加VIP的方法