土豪充值排行榜脚本
此脚本功能强大,可用于传送追杀等等banmapidlist = {
{12,30,60,61,104,376,377,380,381,382,383,384,
385,386,387,388,389,390,391,392,393,400,401,
402,403,404,405,406,407,408,409,410,411},
};--(禁止传送的地图)暂时没用
function ontalk3011(npc,event,player)
fuhao={};
local vc=0;
local t = tonumber(os.date("%m%d",os.time()));
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
<font color="#F76809">土豪排行榜TOP10 <u><a href='event:M2402,888'>刷新排名</a></u></font>
仅显示当前在线土豪,可传送至土豪身边一睹尊容
领奖时间为22:30 - 23:00
#&talk_line#&
]]);
local isF = true;
for k,v in pairs(GetPlayersInWorld()) do
if v:get_vcoin_worth()>=100000 then--累计充值10W以上被统计
vc=vc+1;
fuhao = {};
fuhao = v:get_vcoin_worth();
fuhao = v:GetName();
fuhao = v:GetMapId();
fuhao = v:GetX();
fuhao = v:GetY();
end
end
local m = table.getn(fuhao);
for n = m - 1,1,-1 do
isF = true;
for i = m - 1,1,-1 do
if fuhao < fuhao then
fuhao,fuhao = fuhao,fuhao;
fuhao,fuhao = fuhao,fuhao;
fuhao,fuhao = fuhao,fuhao;
fuhao,fuhao = fuhao,fuhao;
fuhao,fuhao = fuhao,fuhao;
isF = false;
end
end
if isF then
break end
end
if m >= 10 then
for i = 1,10 do
if player:GetName() == fuhao then
player:echo(0,npc:GetLowGUID(),[[
第[]]..i..[[]名 充值元宝数:]]..fuhao..[[ 尊姓大名:]]..fuhao..[[
]]);
else
if player:GetName() ~= fuhao then
player:echo(0,npc:GetLowGUID(),[[
<a href='event:M2402,]]..i..[['></a>第[]]..i..[[]名 充值元宝数:]]..fuhao..[[ 尊姓大名:]]..fuhao..[[
]]);
end
end
end
else
for i = 1,m do
if player:GetName() == fuhao then
player:echo(0,npc:GetLowGUID(),[[
第[]]..i..[[]名 充值元宝数:]]..fuhao..[[ 尊姓大名:]]..fuhao..[[
]]);
else
if player:GetName() ~= fuhao then
player:echo(0,npc:GetLowGUID(),[[
<a href='event:M2402,]]..i..[['></a>第[]]..i..[[]名 充值元宝数:]]..fuhao..[[ 尊姓大名:]]..fuhao..[[
]]);
end
end
end
end
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
<a href='event:M2402,100'>领取土豪榜第一名战力奖励</a>
#&talk_line#&
]]);
end
function ontalk3011_1(npc,event,player)
local systime = tonumber(os.date("%H%M",os.time()));
local chengzhuzhiren = (systime >= 1530 and systime <= 1540);
local yabiao = (systime >= 1950 and systime <= 2005);
local huangchengweiji = (systime >= 2100 and systime <= 2120);
if player:get_vcoin() >= 100000 then
if player:get_player_type() >= 1 then
if player:is_war_time() == false and (g_has_war() ~= 1 or g_has_war() ~= 3) then
if chengzhuzhiren == false then
if yabiao == false then
if huangchengweiji == false then
if fuhao ~= 12 and fuhao ~= 30 and fuhao ~= 60 and fuhao ~= 61 and fuhao ~= 104 and fuhao ~= 376 and fuhao ~= 377 and fuhao ~= 380 and fuhao ~= 381 and fuhao ~= 382 and fuhao ~= 383 and fuhao ~= 384 and fuhao ~= 385 and fuhao ~= 386 and fuhao ~= 387 and fuhao ~= 388 and fuhao ~= 389 and fuhao ~= 390 and fuhao ~= 391 and fuhao ~= 392 and fuhao ~= 393 and fuhao ~= 400 and fuhao ~= 401 and fuhao ~= 402 and fuhao ~= 403 and fuhao ~= 404 and fuhao ~= 405 and fuhao ~= 406 and fuhao ~= 407 and fuhao ~= 408 and fuhao ~= 409 and fuhao ~= 410 and fuhao ~= 411 then
player:enter_map(fuhao,fuhao,fuhao);
player:sub_vcoin(100000);
else
player:alert(10,0,0,"目标所在地图无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"皇城危机期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"押镖期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"城主之刃期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"攻城期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"["..fuhao.."]在"..MapIdToMapName].."("..fuhao..","..fuhao..")");
player:sub_vcoin(100000);
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"元宝不足10万,无法使用追杀");
ontalk3011(npc,0,player);
end
end
function ontalk3011_2(npc,event,player)
local systime = tonumber(os.date("%H%M",os.time()));
local chengzhuzhiren = (systime >= 1530 and systime <= 1540);
local yabiao = (systime >= 1950 and systime <= 2005);
local huangchengweiji = (systime >= 2100 and systime <= 2120);
if player:get_vcoin() >= 100000 then
if player:get_player_type() >= 1 then
if player:is_war_time() == false and (g_has_war() ~= 1 or g_has_war() ~= 3) then
if chengzhuzhiren == false then
if yabiao == false then
if huangchengweiji == false then
if fuhao ~= 12 and fuhao ~= 30 and fuhao ~= 60 and fuhao ~= 61 and fuhao ~= 104 and fuhao ~= 376 and fuhao ~= 377 and fuhao ~= 380 and fuhao ~= 381 and fuhao ~= 382 and fuhao ~= 383 and fuhao ~= 384 and fuhao ~= 385 and fuhao ~= 386 and fuhao ~= 387 and fuhao ~= 388 and fuhao ~= 389 and fuhao ~= 390 and fuhao ~= 391 and fuhao ~= 392 and fuhao ~= 393 and fuhao ~= 400 and fuhao ~= 401 and fuhao ~= 402 and fuhao ~= 403 and fuhao ~= 404 and fuhao ~= 405 and fuhao ~= 406 and fuhao ~= 407 and fuhao ~= 408 and fuhao ~= 409 and fuhao ~= 410 and fuhao ~= 411 then
player:enter_map(fuhao,fuhao,fuhao); --送到恶人身边
player:sub_vcoin(100000);
else
player:alert(10,0,0,"目标所在地图无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"皇城危机期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"押镖期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"城主之刃期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"攻城期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"["..fuhao.."]在"..MapIdToMapName].."("..fuhao..","..fuhao..")");
player:sub_vcoin(100000);
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"元宝不足10万,无法使用追杀");
ontalk3011(npc,0,player);
end
end
function ontalk3011_3(npc,event,player)
local systime = tonumber(os.date("%H%M",os.time()));
local chengzhuzhiren = (systime >= 1530 and systime <= 1540);
local yabiao = (systime >= 1950 and systime <= 2005);
local huangchengweiji = (systime >= 2100 and systime <= 2120);
if player:get_vcoin() >= 100000 then
if player:get_player_type() >= 1 then
if player:is_war_time() == false and (g_has_war() ~= 1 or g_has_war() ~= 3) then
if chengzhuzhiren == false then
if yabiao == false then
if huangchengweiji == false then
if fuhao ~= 12 and fuhao ~= 30 and fuhao ~= 60 and fuhao ~= 61 and fuhao ~= 104 and fuhao ~= 376 and fuhao ~= 377 and fuhao ~= 380 and fuhao ~= 381 and fuhao ~= 382 and fuhao ~= 383 and fuhao ~= 384 and fuhao ~= 385 and fuhao ~= 386 and fuhao ~= 387 and fuhao ~= 388 and fuhao ~= 389 and fuhao ~= 390 and fuhao ~= 391 and fuhao ~= 392 and fuhao ~= 393 and fuhao ~= 400 and fuhao ~= 401 and fuhao ~= 402 and fuhao ~= 403 and fuhao ~= 404 and fuhao ~= 405 and fuhao ~= 406 and fuhao ~= 407 and fuhao ~= 408 and fuhao ~= 409 and fuhao ~= 410 and fuhao ~= 411 then
player:enter_map(fuhao,fuhao,fuhao); --送到恶人身边
player:sub_vcoin(100000);
else
player:alert(10,0,0,"目标所在地图无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"皇城危机期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"押镖期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"城主之刃期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"攻城期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"["..fuhao.."]在"..MapIdToMapName].."("..fuhao..","..fuhao..")");
player:sub_vcoin(100000);
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"元宝不足10万,无法使用追杀");
ontalk3011(npc,0,player);
end
end
function ontalk3011_4(npc,event,player)
local systime = tonumber(os.date("%H%M",os.time()));
local chengzhuzhiren = (systime >= 1530 and systime <= 1540);
local yabiao = (systime >= 1950 and systime <= 2005);
local huangchengweiji = (systime >= 2100 and systime <= 2120);
if player:get_vcoin() >= 100000 then
if player:get_player_type() >= 1 then
if player:is_war_time() == false and (g_has_war() ~= 1 or g_has_war() ~= 3) then
if chengzhuzhiren == false then
if yabiao == false then
if huangchengweiji == false then
if fuhao ~= 12 and fuhao ~= 30 and fuhao ~= 60 and fuhao ~= 61 and fuhao ~= 104 and fuhao ~= 376 and fuhao ~= 377 and fuhao ~= 380 and fuhao ~= 381 and fuhao ~= 382 and fuhao ~= 383 and fuhao ~= 384 and fuhao ~= 385 and fuhao ~= 386 and fuhao ~= 387 and fuhao ~= 388 and fuhao ~= 389 and fuhao ~= 390 and fuhao ~= 391 and fuhao ~= 392 and fuhao ~= 393 and fuhao ~= 400 and fuhao ~= 401 and fuhao ~= 402 and fuhao ~= 403 and fuhao ~= 404 and fuhao ~= 405 and fuhao ~= 406 and fuhao ~= 407 and fuhao ~= 408 and fuhao ~= 409 and fuhao ~= 410 and fuhao ~= 411 then
player:enter_map(fuhao,fuhao,fuhao); --送到恶人身边
player:sub_vcoin(100000);
else
player:alert(10,0,0,"目标所在地图无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"皇城危机期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"押镖期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"城主之刃期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"攻城期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"["..fuhao.."]在"..MapIdToMapName].."("..fuhao..","..fuhao..")");
player:sub_vcoin(100000);
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"元宝不足10万,无法使用追杀");
ontalk3011(npc,0,player);
end
end
function ontalk3011_5(npc,event,player)
local systime = tonumber(os.date("%H%M",os.time()));
local chengzhuzhiren = (systime >= 1530 and systime <= 1540);
local yabiao = (systime >= 1950 and systime <= 2005);
local huangchengweiji = (systime >= 2100 and systime <= 2120);
if player:get_vcoin() >= 100000 then
if player:get_player_type() >= 1 then
if player:is_war_time() == false and (g_has_war() ~= 1 or g_has_war() ~= 3) then
if chengzhuzhiren == false then
if yabiao == false then
if huangchengweiji == false then
if fuhao ~= 12 and fuhao ~= 30 and fuhao ~= 60 and fuhao ~= 61 and fuhao ~= 104 and fuhao ~= 376 and fuhao ~= 377 and fuhao ~= 380 and fuhao ~= 381 and fuhao ~= 382 and fuhao ~= 383 and fuhao ~= 384 and fuhao ~= 385 and fuhao ~= 386 and fuhao ~= 387 and fuhao ~= 388 and fuhao ~= 389 and fuhao ~= 390 and fuhao ~= 391 and fuhao ~= 392 and fuhao ~= 393 and fuhao ~= 400 and fuhao ~= 401 and fuhao ~= 402 and fuhao ~= 403 and fuhao ~= 404 and fuhao ~= 405 and fuhao ~= 406 and fuhao ~= 407 and fuhao ~= 408 and fuhao ~= 409 and fuhao ~= 410 and fuhao ~= 411 then
player:enter_map(fuhao,fuhao,fuhao); --送到恶人身边
player:sub_vcoin(100000);
else
player:alert(10,0,0,"目标所在地图无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"皇城危机期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"押镖期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"城主之刃期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"攻城期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"["..fuhao.."]在"..MapIdToMapName].."("..fuhao..","..fuhao..")");
player:sub_vcoin(100000);
end
else
player:alert(10,0,0,"元宝不足10万,无法使用追杀");
ontalk3011(npc,0,player);
end
end
function ontalk3011_6(npc,event,player)
local systime = tonumber(os.date("%H%M",os.time()));
local chengzhuzhiren = (systime >= 1530 and systime <= 1540);
local yabiao = (systime >= 1950 and systime <= 2005);
local huangchengweiji = (systime >= 2100 and systime <= 2120);
if player:get_vcoin() >= 100000 then
if player:get_player_type() >= 1 then
if player:is_war_time() == false and (g_has_war() ~= 1 or g_has_war() ~= 3) then
if chengzhuzhiren == false then
if yabiao == false then
if huangchengweiji == false then
if fuhao ~= 12 and fuhao ~= 30 and fuhao ~= 60 and fuhao ~= 61 and fuhao ~= 104 and fuhao ~= 376 and fuhao ~= 377 and fuhao ~= 380 and fuhao ~= 381 and fuhao ~= 382 and fuhao ~= 383 and fuhao ~= 384 and fuhao ~= 385 and fuhao ~= 386 and fuhao ~= 387 and fuhao ~= 388 and fuhao ~= 389 and fuhao ~= 390 and fuhao ~= 391 and fuhao ~= 392 and fuhao ~= 393 and fuhao ~= 400 and fuhao ~= 401 and fuhao ~= 402 and fuhao ~= 403 and fuhao ~= 404 and fuhao ~= 405 and fuhao ~= 406 and fuhao ~= 407 and fuhao ~= 408 and fuhao ~= 409 and fuhao ~= 410 and fuhao ~= 411 then
player:enter_map(fuhao,fuhao,fuhao); --送到恶人身边
player:sub_vcoin(100000);
else
player:alert(10,0,0,"目标所在地图无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"皇城危机期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"押镖期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"城主之刃期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"攻城期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"["..fuhao.."]在"..MapIdToMapName].."("..fuhao..","..fuhao..")");
player:sub_vcoin(100000);
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"元宝不足10万,无法使用追杀");
ontalk3011(npc,0,player);
end
end
function ontalk3011_7(npc,event,player)
local systime = tonumber(os.date("%H%M",os.time()));
local chengzhuzhiren = (systime >= 1530 and systime <= 1540);
local yabiao = (systime >= 1950 and systime <= 2005);
local huangchengweiji = (systime >= 2100 and systime <= 2120);
if player:get_vcoin() >= 100000 then
if player:get_player_type() >= 1 then
if player:is_war_time() == false and (g_has_war() ~= 1 or g_has_war() ~= 3) then
if chengzhuzhiren == false then
if yabiao == false then
if huangchengweiji == false then
if fuhao ~= 12 and fuhao ~= 30 and fuhao ~= 60 and fuhao ~= 61 and fuhao ~= 104 and fuhao ~= 376 and fuhao ~= 377 and fuhao ~= 380 and fuhao ~= 381 and fuhao ~= 382 and fuhao ~= 383 and fuhao ~= 384 and fuhao ~= 385 and fuhao ~= 386 and fuhao ~= 387 and fuhao ~= 388 and fuhao ~= 389 and fuhao ~= 390 and fuhao ~= 391 and fuhao ~= 392 and fuhao ~= 393 and fuhao ~= 400 and fuhao ~= 401 and fuhao ~= 402 and fuhao ~= 403 and fuhao ~= 404 and fuhao ~= 405 and fuhao ~= 406 and fuhao ~= 407 and fuhao ~= 408 and fuhao ~= 409 and fuhao ~= 410 and fuhao ~= 411 then
player:enter_map(fuhao,fuhao,fuhao); --送到恶人身边
player:sub_vcoin(100000);
else
player:alert(10,0,0,"目标所在地图无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"皇城危机期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"押镖期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"城主之刃期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"攻城期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"["..fuhao.."]在"..MapIdToMapName].."("..fuhao..","..fuhao..")");
player:sub_vcoin(100000);
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"元宝不足10万,无法使用追杀");
ontalk3011(npc,0,player);
end
end
function ontalk3011_8(npc,event,player)
local systime = tonumber(os.date("%H%M",os.time()));
local chengzhuzhiren = (systime >= 1530 and systime <= 1540);
local yabiao = (systime >= 1950 and systime <= 2005);
local huangchengweiji = (systime >= 2100 and systime <= 2120);
if player:get_vcoin() >= 100000 then
if player:get_player_type() >= 1 then
if player:is_war_time() == false and (g_has_war() ~= 1 or g_has_war() ~= 3) then
if chengzhuzhiren == false then
if yabiao == false then
if huangchengweiji == false then
if fuhao ~= 12 and fuhao ~= 30 and fuhao ~= 60 and fuhao ~= 61 and fuhao ~= 104 and fuhao ~= 376 and fuhao ~= 377 and fuhao ~= 380 and fuhao ~= 381 and fuhao ~= 382 and fuhao ~= 383 and fuhao ~= 384 and fuhao ~= 385 and fuhao ~= 386 and fuhao ~= 387 and fuhao ~= 388 and fuhao ~= 389 and fuhao ~= 390 and fuhao ~= 391 and fuhao ~= 392 and fuhao ~= 393 and fuhao ~= 400 and fuhao ~= 401 and fuhao ~= 402 and fuhao ~= 403 and fuhao ~= 404 and fuhao ~= 405 and fuhao ~= 406 and fuhao ~= 407 and fuhao ~= 408 and fuhao ~= 409 and fuhao ~= 410 and fuhao ~= 411 then
player:enter_map(fuhao,fuhao,fuhao); --送到恶人身边
player:sub_vcoin(100000);
else
player:alert(10,0,0,"目标所在地图无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"皇城危机期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"押镖期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"城主之刃期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"攻城期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"["..fuhao.."]在"..MapIdToMapName].."("..fuhao..","..fuhao..")");
player:sub_vcoin(100000);
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"元宝不足10万,无法使用追杀");
ontalk3011(npc,0,player);
end
end
function ontalk3011_9(npc,event,player)
local systime = tonumber(os.date("%H%M",os.time()));
local chengzhuzhiren = (systime >= 1530 and systime <= 1540);
local yabiao = (systime >= 1950 and systime <= 2005);
local huangchengweiji = (systime >= 2100 and systime <= 2120);
if player:get_vcoin() >= 100000 then
if player:get_player_type() >= 1 then
if player:is_war_time() == false and (g_has_war() ~= 1 or g_has_war() ~= 3) then
if chengzhuzhiren == false then
if yabiao == false then
if huangchengweiji == false then
if fuhao ~= 12 and fuhao ~= 30 and fuhao ~= 60 and fuhao ~= 61 and fuhao ~= 104 and fuhao ~= 376 and fuhao ~= 377 and fuhao ~= 380 and fuhao ~= 381 and fuhao ~= 382 and fuhao ~= 383 and fuhao ~= 384 and fuhao ~= 385 and fuhao ~= 386 and fuhao ~= 387 and fuhao ~= 388 and fuhao ~= 389 and fuhao ~= 390 and fuhao ~= 391 and fuhao ~= 392 and fuhao ~= 393 and fuhao ~= 400 and fuhao ~= 401 and fuhao ~= 402 and fuhao ~= 403 and fuhao ~= 404 and fuhao ~= 405 and fuhao ~= 406 and fuhao ~= 407 and fuhao ~= 408 and fuhao ~= 409 and fuhao ~= 410 and fuhao ~= 411 then
player:enter_map(fuhao,fuhao,fuhao); --送到恶人身边
player:sub_vcoin(100000);
else
player:alert(10,0,0,"目标所在地图无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"皇城危机期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"押镖期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"城主之刃期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"攻城期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"["..fuhao.."]在"..MapIdToMapName].."("..fuhao..","..fuhao..")");
player:sub_vcoin(100000);
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"元宝不足10万,无法使用追杀");
ontalk3011(npc,0,player);
end
end
function ontalk3011_10(npc,event,player)
local systime = tonumber(os.date("%H%M",os.time()));
local chengzhuzhiren = (systime >= 1530 and systime <= 1540);
local yabiao = (systime >= 1950 and systime <= 2005);
local huangchengweiji = (systime >= 2100 and systime <= 2120);
if player:get_vcoin() >= 100000 then
if player:get_player_type() >= 1 then
if player:is_war_time() == false and (g_has_war() ~= 1 or g_has_war() ~= 3) then
if chengzhuzhiren == false then
if yabiao == false then
if huangchengweiji == false then
if fuhao ~= 12 and fuhao ~= 30 and fuhao ~= 60 and fuhao ~= 61 and fuhao ~= 104 and fuhao ~= 376 and fuhao ~= 377 and fuhao ~= 380 and fuhao ~= 381 and fuhao ~= 382 and fuhao ~= 383 and fuhao ~= 384 and fuhao ~= 385 and fuhao ~= 386 and fuhao ~= 387 and fuhao ~= 388 and fuhao ~= 389 and fuhao ~= 390 and fuhao ~= 391 and fuhao ~= 392 and fuhao ~= 393 and fuhao ~= 400 and fuhao ~= 401 and fuhao ~= 402 and fuhao ~= 403 and fuhao ~= 404 and fuhao ~= 405 and fuhao ~= 406 and fuhao ~= 407 and fuhao ~= 408 and fuhao ~= 409 and fuhao ~= 410 and fuhao ~= 411 then
player:enter_map(fuhao,fuhao,fuhao); --送到恶人身边
player:sub_vcoin(100000);
else
player:alert(10,0,0,"目标所在地图无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"皇城危机期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"押镖期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"城主之刃期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"攻城期间,无法传送");
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"["..fuhao.."]在"..MapIdToMapName].."("..fuhao..","..fuhao..")");
player:sub_vcoin(100000);
ontalk3011(npc,0,player);
end
else
player:alert(10,0,0,"元宝不足10万,无法使用追杀");
ontalk3011(npc,0,player);
end
end
function ontalk3011_100(npc,event,player)
local t = tonumber(os.date("%H%M",os.time()));
if t >= 2230 and t <= 2300 then
for k = 1,table.getn(fuhao) do
if fuhao ~= nil then
if player:GetName() == fuhao and player:get_param(230) == 0 then
player:add_vcoin(5000000); --奖励500W元宝
player:set_param(230,1); --记录领奖
player:set_status(3004,0,100,5);
player:alert(10,0,0,"恭喜获得500万元宝 + 土豪专属战力奖励");
break;
else
player:alert(10,0,0,"你不是排行榜第一名 :"..fuhao ..",或者你已经领过了。");
break;
end
else
break;
end
end
else
player:alert(10,0,0,"领取时间为22:30 - 23:00");
end
ontalk3011(npc,0,player);
end
function ontalk3011_888(npc,event,player)
ontalk3011(npc,0,player);
player:alert(10,0,0,"已获取最新土豪排名数据");
end
Npc3011Funid =
{
= ontalk3011;
= ontalk3011_1;
= ontalk3011_2;
= ontalk3011_3;
= ontalk3011_4;
= ontalk3011_5;
= ontalk3011_6;
= ontalk3011_7;
= ontalk3011_8;
= ontalk3011_9;
= ontalk3011_10;
= ontalk3011_100;
= ontalk3011_101;
= ontalk3011_888;
}
function CreatureNpcFun(npc,event,player,funid)
if Npc3011Funid ~= nil then
Npc3011Funid(npc,event,player);
end
end
RegisterUnitEvent(3011,20,"ontalk3011")
RegisterUnitEvent(3011,29,"CreatureNpcFun")
页:
[1]