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