烈焰脚本大放送--返利使者 LUA脚本

admin 2019年01月10日 16:59:36 145

这个就是返利使者在烈焰私服里面的写法 有需要的朋友来拿走吧

function ontalk2046(npc,event,player)
       
       player:echo(0,npc:GetLowGUID(),[[
每日首充均可领取以下奖励  充值比例 1:20W
您今日已充值:]]..player:get_param(333)..[[.
充值50W元宝:[烈焰·神剑]
充值200W元宝:[锻造石x1]+神秘宝箱x3
充值500W元宝:[锻造石x2]+神秘宝箱x5
充值1000W元宝:[上古锻造石x1]+神器结晶x1
充值1500W元宝:[上古锻造石x2]+神器结晶x3
充值2000W元宝:[女娲石x1]+神器结晶x5
充值3000W元宝:[女娲石x2]+神兵斩仙x1
#&talk_line#&
<font color='#ff0000'>注:领取元宝返利时,请确认包袱空格足够!
注:500W-2000W返利能领取到注灵石13-15
注:3000W以上每1000W领取一次女娲石x1
注:累计冲5000W元宝可以获得返利大礼包。
   (圣烈焰.心四阶.功六阶.120等级卷)
                           <u><a href='event:M2402,1'>我要领取</a></u>
]]);
end

function onTalk2046_1(npc,event,player)
if player:get_param(333)>499999 and player:get_param(220)==0 and player:num_bag_black() >= 1 then
player:add_item(20900,1,0);
player:set_param(220,1);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>1999999 and player:get_param(220)==1 and player:num_bag_black() >= 4 then
player:add_item(18100,1,0);        
player:add_item(19020,3,0);
player:set_param(220,2);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>4999999 and player:get_param(220)==2 and player:num_bag_black() >= 10 then
player:add_item(18100,2,0);        
player:add_item(19020,5,0);
player:add_item(10222,1,0);
player:add_item(10223,1,0);
player:add_item(10224,1,0);
player:set_param(220,3);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>9999999 and player:get_param(220)==3 and player:num_bag_black() >= 5 then
player:add_item(10058,1,0);        
player:add_item(10291,1,0);
player:add_item(10222,1,0);
player:add_item(10223,1,0);
player:add_item(10224,1,0);
player:set_param(220,4);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>14999999 and player:get_param(220)==4 and player:num_bag_black() >= 8 then
player:add_item(10058,2,0);        
player:add_item(10291,3,0);
player:add_item(10222,1,0);
player:add_item(10223,1,0);
player:add_item(10224,1,0);
player:set_param(220,5);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>19999999 and player:get_param(220)==5 and player:num_bag_black() >= 9 then
player:add_item(10059,1,0);        
player:add_item(10291,5,0);
player:add_item(10222,1,0);
player:add_item(10223,1,0);
player:add_item(10224,1,0);
player:set_param(220,6);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>29999999 and player:get_param(220)==6 and player:num_bag_black() >= 6 then
player:add_item(10059,2,0);        
player:add_item(20897,1,0);
player:add_item(10222,1,0);
player:add_item(10223,1,0);
player:add_item(10224,1,0);
player:set_param(220,7);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>39999999 and player:get_param(220)==7 and player:num_bag_black() >= 1 then
player:add_item(10059,1,0);
player:set_param(220,8);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>49999999 and player:get_param(220)==8 and player:num_bag_black() >= 2 then
player:add_item(10059,1,0);
player:add_item(10408,1,0);
player:set_param(220,9);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>59999999 and player:get_param(220)==9 and player:num_bag_black() >= 1 then
player:add_item(10059,1,0);        
player:set_param(220,10);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>69999999 and player:get_param(220)==10 and player:num_bag_black() >= 1 then
player:add_item(10059,1,0);        
player:set_param(220,11);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>79999999 and player:get_param(220)==11 and player:num_bag_black() >= 1 then
player:add_item(10059,1,0);        
player:set_param(220,12);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>89999999 and player:get_param(220)==12 and player:num_bag_black() >= 1 then
player:add_item(10059,1,0);        
player:set_param(220,13);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(333)>99999999 and player:get_param(220)==13 and player:num_bag_black() >= 1 then
player:add_item(10059,1,0);
player:set_param(220,14);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]在返利使者处领取返利奖励",2,1000,0,1);
elseif player:get_param(220)==14 then
                       player:alert(10,0,0,"您已领取完所有返利奖励");
else
player:alert(10,0,0,"未满足条件或背包剩余格数不足,无法领取");
               end                        
       ontalk2046(npc,0,player,0);
end


Npc2046Funid = 
{
[0] = ontalk2046;
[1] = onTalk2046_1;
}

function CreatureNpcFun(npc,event,player,funid)
       if Npc2046Funid[funid] ~= nil then
               Npc2046Funid[funid](npc,event,player);
       end
end

RegisterUnitEvent(2046,20,"ontalk2046")
RegisterUnitEvent(2046,29,"CreatureNpcFun")
上传的附件:
相关帖子
 如何快速进阶顶级,从烈焰私服中脱颖而出呢?   122   admin 2019-01-11 17:51:43

 烈焰充值平台在线直冲网关自定义充值代码   158   admin 2019-01-12 19:40:21

 烈焰私服开新区清空数据、以及IIS资源分离教程   126   admin 2019-01-13 19:51:33

 烈焰明日新服推荐,各种活动爽翻天。【拒绝快餐服、中变耐玩】   161   admin 2019-01-09 13:22:06

 烈焰私服BUFF表、怪物属性、爆率配置这3大表里面的字段分析   151   admin 2019-01-08 10:38:53

 烈焰ui文件解析   131   admin 2019-01-08 10:36:45
最新回复 (0)
返回
发新帖

烈焰私服