函数名称:LuaFnSendGuajiQuestion
功能说明:弹出验证码
参数说明:
sceneId:场景编号
nHumanId:人类ID
新武侠世界不支持此函数!
参考代码:
怪物被人类攻击死亡后,给击杀的人类弹出图像验证码
--**********************************
--死亡事件
--**********************************
function x300026_OnDie( sceneId, selfId, killerId )
local nObjType = GetCharacterType(sceneId, killerId);
if nObjType then
local nHumanId = -1;
if nObjType == 1 then
nHumanId = killerId;
elseif nObjType == 3 then
nHumanId = GetPetCreator(sceneId, killerId);
end
if nHumanId ~= -1 then
LuaFnSendGuajiQuestion(sceneId, nHumanId);
end
end
end
|