最新最全最权威的各类手游,端游,页游游戏信息开服信息,尽在游民之家. 订阅微信

烈焰VIP系统增加VIP11,12的方法

发表时间:2015-03-09 21:06点击人气:责任编辑:admin

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


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属性