手游传奇私服发布站

 找回密码
 注册账号
查看: 802|回复: 1

请专家指导一下,烈焰私服里面改VIP11,和VIP12,的问题。

[复制链接]

2

主题

3

帖子

33

积分

新手上路

Rank: 1

积分
33
发表于 2015-12-3 12:27:49 | 显示全部楼层 |阅读模式
          我是新人,进这论坛的时候看到有改VIP11,和VIP12的教程。就跟着教程做了,可是游戏里面有了VIP11,VIP12.但是没有达到我想要的效果。希望通过这里得到帮助。谢谢!不知道自己哪里改的不对了,请帮忙指导一下,以下是我更改的过程:
         1.首先我想改的VIP是这样的,VIP1,充值10元,VIP2,充值15元,VIP3,充值20元,VIP4,充值25元,VIP5,充值30元,VIP6,充值300元,VIP7,充值600元,VIP8,充值900元,VIP9,充值1200元,VIP10,充值1500元,VIP11,充值2000元,VIP12,充值10元,VIP1,充值2500元.
         2.开始修改:
       2.1 首先打开烈焰私服服务端,找到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
内容如图1

111.jpg

2.2查找 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
如图2 222.jpg


2.3    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如图3 333.jpg

2.4数据库playerbuff里增加ID为892和893的2个BUFF属性
881        88        88        0        0        0        0        0        0        60        6        0        0
882        88        88        0        0        0        0        0        0        132        18        0        0
883        88        88        0        0        0        0        0        0        216        36        0        0
884        88        88        0        0        0        0        0        0        312        60        0        0
885        88        88        0        0        0        0        0        0        420        90        0        0
886        88        88        0        0        0        0        0        0        546        126        0        0
887        88        88        0        0        0        0        0        0        690        168        0        0
888        88        88        0        0        0        0        0        0        852        216        0        0
889        88        88        0        0        0        0        0        0        1032        273        0        0
890        88        88        0        0        0        0        0        0        1236        339        0        0
902        100        100        0        0        0        0        0        0        0        0        0        0
922        102        102        0        0        0        0        0        0        0        0        0        0
891        88        88        0        0        0        0        0        0        1380        450        0        0
892        88        88        0        0        0        0        0        0        20000        1000        0       


回复

使用道具 举报

133

主题

138

帖子

592

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
592
发表于 2015-12-3 23:36:20 | 显示全部楼层
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属性
回复 支持 反对

使用道具 举报

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

本版积分规则

手游传奇私服发布站

GMT+8, 2025-4-18 21:35 , Processed in 0.054241 second(s), 25 queries , Gzip On.

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