手游传奇私服发布站

 找回密码
 注册账号
查看: 254|回复: 0

VIP系统增加VIP11,12的方法

[复制链接]

133

主题

138

帖子

592

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
592
发表于 2015-10-14 20:25:33 | 显示全部楼层 |阅读模式
打开烈焰私服务端的脚本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页游论坛 欢迎您常来看看
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

手游传奇私服发布站

GMT+8, 2025-4-18 21:05 , Processed in 0.049350 second(s), 23 queries , Gzip On.

快速回复 返回顶部 返回列表