烈焰私服服务端增加玩家死亡被击杀提示
player.lua 查找onPlayerDied 替换掉原本的那段脚本------还不完美,需继续完善
function onPlayerDied(instanceID, player, killer, n)
if player:GetMapId() == 61 then
player:set_name_pre(12,"");
player:set_timer(1,0);
end
if player:GetMapId() == 13 and player:GetMapId() == 60 then
else
if killer:IsPlayer() then
local message1 = string.format("人在江湖飘,哪有不挨刀。<font color='#2828FF'>【%q】</font>在<font color='#FF0000'>"..MapIdToMapName[player:GetMapId()].."["..player:GetX()..","..player:GetY().."]</font>被<font color='#FF0000'>【%q】</font>偷袭杀死!",killer:GetName(),player:GetName())
g_alert(message1,2,1000,0,1)
end
end
end
----------------------------------------
脚本最下面加上下边这条
RegisterServerHook(2,"onPlayerDied")
请严格按照说明来替换和修改,出现未知错误与页游SF发布站无关.
- 上一篇:关于手工修改烈焰私服的王城攻城战日期.
- 下一篇:烈焰私服在线赌博博彩功能脚本代码