手游传奇私服发布站

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

增加VIP的方法

[复制链接]

133

主题

138

帖子

592

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
592
发表于 2015-11-7 19:10:31 | 显示全部楼层 |阅读模式
这里举例增加到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 欢迎您的到来
回复

使用道具 举报

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

本版积分规则

手游传奇私服发布站

GMT+8, 2025-4-18 21:34 , Processed in 0.052870 second(s), 22 queries , Gzip On.

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