天龙八部技术论坛,专业提供天龙八部架设教程教学,天龙八部开区一条龙服务.
标题:
无线领取元宝
[打印本页]
作者:
小白天龙
时间:
2017-6-11 23:46
标题:
无线领取元宝
--苏州NPC
--每日赠点领取员
--一般
x889065_g_ScriptId = 889065
--**********************************
--事件交互入口
--**********************************
function x889065_OnDefaultEvent( sceneId, selfId,targetId )
local nam = LuaFnGetName( sceneId, selfId )
local lev = GetLevel( sceneId, selfId )
BeginEvent(sceneId)
AddText( sceneId, "#cffcc00尊进的玩家:#r #W欢迎您光临本服,独家版本#G全天候BOSS区域/副本#W设置,独家穿刺系统,真实装备评分!不玩此服你真的OUT了!#r#cFF0000郑重警告:#r #cffcc00严禁家族入内/严禁刷高比例等口号收人/严禁诽谤本服,凡发现以上行为封号处理,不解释!" )
AddNumText( sceneId, x889065_g_ScriptId, "加门派满心法",1,14 )
AddNumText( sceneId, x889065_g_ScriptId, "自助更换门派",1,120 )
AddNumText( sceneId, x889065_g_ScriptId, "无限领取元宝",1,6666 )
AddNumText( sceneId, x889065_g_ScriptId, "#H新手装备领取",1,6688 )
AddNumText( sceneId, x889065_g_scriptId, "气血满怒治疗",1, 5555 )
AddNumText( sceneId, x889065_g_ScriptId, "负经验来清零",1,11 )
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
function x889065_OnEventRequest( sceneId, selfId, targetId, eventId )
local key = GetNumText()
if key == 6666 then
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555250, 1)--给予物品
BeginEvent(sceneId)
AddText(sceneId,"领取元宝成功,您获得了100万的元宝。谢谢你对天龙的支持。")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
if key == 11 then
x889065_Level12(sceneId, selfId, targetId)
end
if key == 4444 then
x889065_Shengji( sceneId, selfId, targetId )
end
if key == 5555 then
BeginEvent( sceneId )
AddNumText(sceneId, x181003_g_scriptId, "#gF4F4F4恢复气血", 7, 5566 )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 5566 then
x889065_Restore_hpmp( sceneId, selfId, targetId )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
BeginEvent(sceneId)
AddText(sceneId,"治疗成功,祝您游戏愉快。")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
if key == 6688 then
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555250, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555251, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555252, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555253, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555254, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555255, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555256, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555257, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555258, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555259, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555257, 1)--给予物品
local bagpos01 = TryRecieveItem( sceneId, selfId, 10555258, 1)--给予物品
BeginEvent(sceneId)
AddText(sceneId,"领取装备成功。谢谢你对本天龙的支持。")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
if key == 14 then
local MemPai=GetMenPai(sceneId, selfId)
if MemPai ~=9 then
BeginEvent(sceneId)
AddText(sceneId, "你已经加入门派了,还想做什么?")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
return
else
BeginEvent( sceneId )
AddText( sceneId, "#cffcc00尊敬的玩家,请选择您要领取心法的门派。!" )
AddNumText( sceneId, x889065_g_ScriptId, "星宿",3,20 )
AddNumText( sceneId, x889065_g_ScriptId, "逍遥",3,21 )
AddNumText( sceneId, x889065_g_ScriptId, "少林",3,22 )
AddNumText( sceneId, x889065_g_ScriptId, "天山",3,23 )
AddNumText( sceneId, x889065_g_ScriptId, "天龙",3,24 )
AddNumText( sceneId, x889065_g_ScriptId, "峨眉",3,25 )
AddNumText( sceneId, x889065_g_ScriptId, "武当",3,26 )
AddNumText( sceneId, x889065_g_ScriptId, "明教",3,27 )
AddNumText( sceneId, x889065_g_ScriptId, "丐帮",3,28 )
AddNumText( sceneId, x889065_g_scriptId, "唐门",3,29 )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
end
if key == 120 then
local nam = LuaFnGetName( sceneId, selfId )
if LuaFnGetAvailableItemCount(sceneId, selfId, 39910006) >= 1 then
local availableStone = LuaFnGetAvailableItemCount( sceneId, selfId, 39910006)
BeginEvent( sceneId )
AddText( sceneId, "#cffcc00转换门派需要一个门派转换令.请确定你包裹里面有转换令!" )
AddNumText( sceneId, x889065_g_ScriptId, "星宿",3,121 )
AddNumText( sceneId, x889065_g_ScriptId, "逍遥",3,122 )
AddNumText( sceneId, x889065_g_ScriptId, "少林",3,123 )
AddNumText( sceneId, x889065_g_ScriptId, "天山",3,124 )
AddNumText( sceneId, x889065_g_ScriptId, "天龙",3,125 )
AddNumText( sceneId, x889065_g_ScriptId, "峨眉",3,126 )
AddNumText( sceneId, x889065_g_ScriptId, "武当",3,127 )
AddNumText( sceneId, x889065_g_ScriptId, "明教",3,128 )
AddNumText( sceneId, x889065_g_ScriptId, "丐帮",3,129 )
AddNumText( sceneId, x889065_g_ScriptId, "新门派#G唐门",3,130 )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G对不起,你没有门派转换令,不能进行门派转换!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if key == 20 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "尊敬的玩家,您今天领取过心法了,一天只能领取一次。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 5)
LuaFnSetXinFaLevel(sceneId,selfId,31,150)
LuaFnSetXinFaLevel(sceneId,selfId,32,150)
LuaFnSetXinFaLevel(sceneId,selfId,33,150)
LuaFnSetXinFaLevel(sceneId,selfId,34,150)
LuaFnSetXinFaLevel(sceneId,selfId,35,150)
LuaFnSetXinFaLevel(sceneId,selfId,36,150)
LuaFnSetXinFaLevel(sceneId,selfId,60,150)
LuaFnSetXinFaLevel(sceneId,selfId,77,150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G星宿#W,成为星宿门下一名得意弟子。", 4 )
SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了星宿派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 21 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "尊敬的玩家,您今天领取过心法了,一天只能领取一次。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 8)
LuaFnSetXinFaLevel(sceneId,selfId,49,150)
LuaFnSetXinFaLevel(sceneId,selfId,50,150)
LuaFnSetXinFaLevel(sceneId,selfId,51,150)
LuaFnSetXinFaLevel(sceneId,selfId,52,150)
LuaFnSetXinFaLevel(sceneId,selfId,53,150)
LuaFnSetXinFaLevel(sceneId,selfId,54,150)
LuaFnSetXinFaLevel(sceneId,selfId,63,150)
LuaFnSetXinFaLevel(sceneId,selfId,80,150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G逍遥#W,成为逍遥门下一名得意弟子。", 4 )
SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了逍遥派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 22 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "尊敬的玩家,您今天领取过心法了,一天只能领取一次。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 0)
LuaFnSetXinFaLevel(sceneId,selfId,1,150)
LuaFnSetXinFaLevel(sceneId,selfId,2,150)
LuaFnSetXinFaLevel(sceneId,selfId,3,150)
LuaFnSetXinFaLevel(sceneId,selfId,4,150)
LuaFnSetXinFaLevel(sceneId,selfId,5,150)
LuaFnSetXinFaLevel(sceneId,selfId,6,150)
LuaFnSetXinFaLevel(sceneId,selfId,55,150)
LuaFnSetXinFaLevel(sceneId,selfId,72,150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G少林#W,成为少林门下一名得意弟子。", 4 )
SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了少林派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 23 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "尊敬的玩家,您今天领取过心法了,一天只能领取一次。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 7)
LuaFnSetXinFaLevel(sceneId,selfId,43,150)
LuaFnSetXinFaLevel(sceneId,selfId,44,150)
LuaFnSetXinFaLevel(sceneId,selfId,45,150)
LuaFnSetXinFaLevel(sceneId,selfId,46,150)
LuaFnSetXinFaLevel(sceneId,selfId,47,150)
LuaFnSetXinFaLevel(sceneId,selfId,48,150)
LuaFnSetXinFaLevel(sceneId,selfId,62,150)
LuaFnSetXinFaLevel(sceneId,selfId,79,150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G天山#W,成为天山门下一名得意弟子。", 4 )
SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了天山派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 24 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "尊敬的玩家,您今天领取过心法了,一天只能领取一次。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 6)
LuaFnSetXinFaLevel(sceneId,selfId,37,150)
LuaFnSetXinFaLevel(sceneId,selfId,38,150)
LuaFnSetXinFaLevel(sceneId,selfId,39,150)
LuaFnSetXinFaLevel(sceneId,selfId,40,150)
LuaFnSetXinFaLevel(sceneId,selfId,41,150)
LuaFnSetXinFaLevel(sceneId,selfId,42,150)
LuaFnSetXinFaLevel(sceneId,selfId,61,150)
LuaFnSetXinFaLevel(sceneId,selfId,78,150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G天龙#W,成为天龙门下一名得意弟子。", 4 )
SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了天龙派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 25 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "尊敬的玩家,您今天领取过心法了,一天只能领取一次。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 4)
LuaFnSetXinFaLevel(sceneId,selfId,25,150)
LuaFnSetXinFaLevel(sceneId,selfId,26,150)
LuaFnSetXinFaLevel(sceneId,selfId,27,150)
LuaFnSetXinFaLevel(sceneId,selfId,28,150)
LuaFnSetXinFaLevel(sceneId,selfId,29,150)
LuaFnSetXinFaLevel(sceneId,selfId,30,150)
LuaFnSetXinFaLevel(sceneId,selfId,59,150)
LuaFnSetXinFaLevel(sceneId,selfId,76,150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G峨眉#W,成为峨眉门下一名得意弟子。", 4 )
SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了峨眉派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 26 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "尊敬的玩家,您今天领取过心法了,一天只能领取一次。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 3)
LuaFnSetXinFaLevel(sceneId,selfId,19,150)
LuaFnSetXinFaLevel(sceneId,selfId,20,150)
LuaFnSetXinFaLevel(sceneId,selfId,21,150)
LuaFnSetXinFaLevel(sceneId,selfId,22,150)
LuaFnSetXinFaLevel(sceneId,selfId,23,150)
LuaFnSetXinFaLevel(sceneId,selfId,24,150)
LuaFnSetXinFaLevel(sceneId,selfId,58,150)
LuaFnSetXinFaLevel(sceneId,selfId,75,150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G武当#W,成为武当门下一名得意弟子。", 4 )
SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了武当派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 27 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "尊敬的玩家,您今天领取过心法了,一天只能领取一次。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 1)
LuaFnSetXinFaLevel(sceneId,selfId,7,150)
LuaFnSetXinFaLevel(sceneId,selfId,8,150)
LuaFnSetXinFaLevel(sceneId,selfId,9,150)
LuaFnSetXinFaLevel(sceneId,selfId,10,150)
LuaFnSetXinFaLevel(sceneId,selfId,11,150)
LuaFnSetXinFaLevel(sceneId,selfId,12,150)
LuaFnSetXinFaLevel(sceneId,selfId,56,150)
LuaFnSetXinFaLevel(sceneId,selfId,73,150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G明教#W,成为明教门下一名得意弟子。", 4 )
SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了明教,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 28 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "尊敬的玩家,您今天领取过心法了,一天只能领取一次。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 2)
LuaFnSetXinFaLevel(sceneId,selfId,13,150)
LuaFnSetXinFaLevel(sceneId,selfId,14,150)
LuaFnSetXinFaLevel(sceneId,selfId,15,150)
LuaFnSetXinFaLevel(sceneId,selfId,16,150)
LuaFnSetXinFaLevel(sceneId,selfId,17,150)
LuaFnSetXinFaLevel(sceneId,selfId,18,150)
LuaFnSetXinFaLevel(sceneId,selfId,57,150)
LuaFnSetXinFaLevel(sceneId,selfId,74,150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G丐帮#W,成为丐帮门下一名得意弟子。", 4 )
SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了丐帮,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 29 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "尊敬的玩家,您今天领取过心法了,一天只能领取一次。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 9)
LuaFnSetXinFaLevel(sceneId,selfId,81,150)
LuaFnSetXinFaLevel(sceneId,selfId,82,150)
LuaFnSetXinFaLevel(sceneId,selfId,83,150)
LuaFnSetXinFaLevel(sceneId,selfId,84,150)
LuaFnSetXinFaLevel(sceneId,selfId,85,150)
LuaFnSetXinFaLevel(sceneId,selfId,86,150)
LuaFnSetXinFaLevel(sceneId,selfId,87,150)
LuaFnSetXinFaLevel(sceneId,selfId,88,150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G唐门#W,成为唐门门下一名得意弟子。", 4 )
SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了唐门,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 121 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 5)
LuaFnSetXinFaLevel(sceneId,selfId,31,150)
LuaFnSetXinFaLevel(sceneId,selfId,32,150)
LuaFnSetXinFaLevel(sceneId,selfId,33,150)
LuaFnSetXinFaLevel(sceneId,selfId,34,150)
LuaFnSetXinFaLevel(sceneId,selfId,35,150)
LuaFnSetXinFaLevel(sceneId,selfId,36,150)
LuaFnSetXinFaLevel(sceneId,selfId,60,150)
LuaFnSetXinFaLevel(sceneId,selfId,77,150)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G星宿#W,成为星宿门下一名得意弟子。", 4 )
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了星宿派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 122 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 8)
LuaFnSetXinFaLevel(sceneId,selfId,49,150)
LuaFnSetXinFaLevel(sceneId,selfId,50,150)
LuaFnSetXinFaLevel(sceneId,selfId,51,150)
LuaFnSetXinFaLevel(sceneId,selfId,52,150)
LuaFnSetXinFaLevel(sceneId,selfId,53,150)
LuaFnSetXinFaLevel(sceneId,selfId,54,150)
LuaFnSetXinFaLevel(sceneId,selfId,63,150)
LuaFnSetXinFaLevel(sceneId,selfId,80,150)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G逍遥#W,成为逍遥门下一名得意弟子。", 4 )
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了逍遥派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 123 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 0)
LuaFnSetXinFaLevel(sceneId,selfId,1,150)
LuaFnSetXinFaLevel(sceneId,selfId,2,150)
LuaFnSetXinFaLevel(sceneId,selfId,3,150)
LuaFnSetXinFaLevel(sceneId,selfId,4,150)
LuaFnSetXinFaLevel(sceneId,selfId,5,150)
LuaFnSetXinFaLevel(sceneId,selfId,6,150)
LuaFnSetXinFaLevel(sceneId,selfId,55,150)
LuaFnSetXinFaLevel(sceneId,selfId,72,150)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G少林#W,成为少林门下一名得意弟子。", 4 )
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了少林派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 124 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 7)
LuaFnSetXinFaLevel(sceneId,selfId,43,150)
LuaFnSetXinFaLevel(sceneId,selfId,44,150)
LuaFnSetXinFaLevel(sceneId,selfId,45,150)
LuaFnSetXinFaLevel(sceneId,selfId,46,150)
LuaFnSetXinFaLevel(sceneId,selfId,47,150)
LuaFnSetXinFaLevel(sceneId,selfId,48,150)
LuaFnSetXinFaLevel(sceneId,selfId,62,150)
LuaFnSetXinFaLevel(sceneId,selfId,79,150)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G天山#W,成为天山门下一名得意弟子。", 4 )
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了天山派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 125 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 6)
LuaFnSetXinFaLevel(sceneId,selfId,37,150)
LuaFnSetXinFaLevel(sceneId,selfId,38,150)
LuaFnSetXinFaLevel(sceneId,selfId,39,150)
LuaFnSetXinFaLevel(sceneId,selfId,40,150)
LuaFnSetXinFaLevel(sceneId,selfId,41,150)
LuaFnSetXinFaLevel(sceneId,selfId,42,150)
LuaFnSetXinFaLevel(sceneId,selfId,61,150)
LuaFnSetXinFaLevel(sceneId,selfId,78,150)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G天龙#W,成为天龙门下一名得意弟子。", 4 )
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了天龙寺,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 126 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 4)
LuaFnSetXinFaLevel(sceneId,selfId,25,150)
LuaFnSetXinFaLevel(sceneId,selfId,26,150)
LuaFnSetXinFaLevel(sceneId,selfId,27,150)
LuaFnSetXinFaLevel(sceneId,selfId,28,150)
LuaFnSetXinFaLevel(sceneId,selfId,29,150)
LuaFnSetXinFaLevel(sceneId,selfId,30,150)
LuaFnSetXinFaLevel(sceneId,selfId,59,150)
LuaFnSetXinFaLevel(sceneId,selfId,76,150)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G峨眉#W,成为峨眉门下一名得意弟子。", 4 )
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了峨眉派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 127 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 3)
LuaFnSetXinFaLevel(sceneId,selfId,19,150)
LuaFnSetXinFaLevel(sceneId,selfId,20,150)
LuaFnSetXinFaLevel(sceneId,selfId,21,150)
LuaFnSetXinFaLevel(sceneId,selfId,22,150)
LuaFnSetXinFaLevel(sceneId,selfId,23,150)
LuaFnSetXinFaLevel(sceneId,selfId,24,150)
LuaFnSetXinFaLevel(sceneId,selfId,58,150)
LuaFnSetXinFaLevel(sceneId,selfId,75,150)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G武当#W,成为武当门下一名得意弟子。", 4 )
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了武当派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 128 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 1)
LuaFnSetXinFaLevel(sceneId,selfId,7,150)
LuaFnSetXinFaLevel(sceneId,selfId,8,150)
LuaFnSetXinFaLevel(sceneId,selfId,9,150)
LuaFnSetXinFaLevel(sceneId,selfId,10,150)
LuaFnSetXinFaLevel(sceneId,selfId,11,150)
LuaFnSetXinFaLevel(sceneId,selfId,12,150)
LuaFnSetXinFaLevel(sceneId,selfId,56,150)
LuaFnSetXinFaLevel(sceneId,selfId,73,150)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G明教#W,成为明教门下一名得意弟子。", 4 )
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了明教,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 129 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 2)
LuaFnSetXinFaLevel(sceneId,selfId,13,150)
LuaFnSetXinFaLevel(sceneId,selfId,14,150)
LuaFnSetXinFaLevel(sceneId,selfId,15,150)
LuaFnSetXinFaLevel(sceneId,selfId,16,150)
LuaFnSetXinFaLevel(sceneId,selfId,17,150)
LuaFnSetXinFaLevel(sceneId,selfId,18,150)
LuaFnSetXinFaLevel(sceneId,selfId,57,150)
LuaFnSetXinFaLevel(sceneId,selfId,74,150)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G丐帮#W,成为丐帮门下一名得意弟子。", 4 )
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了丐帮,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 130 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 9)
LuaFnSetXinFaLevel(sceneId,selfId,81,150)
LuaFnSetXinFaLevel(sceneId,selfId,82,150)
LuaFnSetXinFaLevel(sceneId,selfId,83,150)
LuaFnSetXinFaLevel(sceneId,selfId,84,150)
LuaFnSetXinFaLevel(sceneId,selfId,85,150)
LuaFnSetXinFaLevel(sceneId,selfId,86,150)
LuaFnSetXinFaLevel(sceneId,selfId,87,150)
LuaFnSetXinFaLevel(sceneId,selfId,88,150)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#W恭喜玩家 #cFF0000"..nam.."#W成功加入#G唐门#W,成为唐门门下一名得意弟子。", 4 )
BeginEvent( sceneId )
AddText( sceneId, "#G您成功领取了心法并且加入了唐门派,祝您游戏愉快。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if key == 181 then
local nam= LuaFnGetName( sceneId, selfId )
local lastDayTime1 = GetMissionData( sceneId, selfId, MF_LINGQUYUANBAOMP2)
local CurDayTime1 = GetDayTime()
if CurDayTime1 > lastDayTime1 then
BeginEvent(sceneId)
--for i = 0,30 do
-- TryRecieveItem( sceneId, selfId, 30505107, 1 )
-- end
TryRecieveItem( sceneId, selfId, 10113054, 1 )
TryRecieveItem( sceneId, selfId, 10113054, 1 )
TryRecieveItem( sceneId, selfId, 10113054, 1 )
SetMissionData( sceneId, selfId, MF_LINGQUYUANBAOMP2, CurDayTime1 )
str = "#cffffcc恭喜VIP会员<#c00ff00"..nam.."#cffffcc>领取天关入口通行证"
BroadMsgByChatPipe(sceneId, selfId, str, 4)
AddText(sceneId,"恭喜你领取入口通行证2个。请明天再来领取")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
BeginEvent(sceneId)
AddText(sceneId," 不好意思,你今天已经领取过工资了,请明天再来");
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
if key == 19 then
TryRecieveItem( sceneId, selfId, 10113054, 1 )
BeginEvent(sceneId)
AddText(sceneId,"天关物品领取成功");
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
end
--**********************************
--转换经验
--**********************************
function x889065_Level12 (sceneId, selfId, targetId)
if GetExp(sceneId,selfId) < 0 then
BeginEvent( sceneId )
LuaFnSendSpecificImpactToUnit(sceneId,selfId,selfId,selfId,18,1000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
LuaFnAddExp(sceneId,selfId,700000)
AddText(sceneId,"继续点我吧,点10次应该就解决升级问题!!!...")
EndEvent( sceneId )
else
BeginEvent( sceneId )
AddText(sceneId,"失败,只有打怪获得不了经验的玩家才能使用此功能!!...")
EndEvent( sceneId )
end
DispatchEventList( sceneId, selfId, targetId )
end
function x889065_Shengji (sceneId, selfId, targetId)
local lev = GetLevel( sceneId, selfId )
if lev < 148 then
BeginEvent( sceneId )
AddText( sceneId, "等级不足#G149#W级,请#G149#W级后再来找我。" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return -1
end
SetLevel( sceneId, selfId, 150)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 147, 0)
BeginEvent(sceneId)
AddText(sceneId,"恭喜你,升级成功!!!")
EndEvent(sceneId)
DispatchMissionTips(sceneId,selfId)
BeginEvent( sceneId )
AddText( sceneId, "恭喜你升级到150级,请带上顶级装备在转生哦!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
local nam = LuaFnGetName( sceneId, selfId )
BroadMsgByChatPipe( sceneId, selfId, "#gFFFF00恭喜玩家"..nam.."成功升级到150级", 4 )
end
--**********************************
-- 对话窗口信息提示
--**********************************
function x889065_NotifyFailBox( sceneId, selfId, targetId, msg )
BeginEvent( sceneId )
AddText( sceneId, msg )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
--**********************************
--消息提示
--**********************************
function x889065_MsgBox( sceneId, selfId, str )
BeginEvent( sceneId )
AddText( sceneId, str )
EndEvent( sceneId )
DispatchMissionTips( sceneId, selfId )
end
--**********************************
--对话提示
--**********************************
function x889065_TalkMsg( sceneId, selfId, targetId, str )
BeginEvent(sceneId)
AddText(sceneId, str)
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
--**********************************
--恢复血和气
--**********************************
function x889065_Restore_hpmp( sceneId, selfId, targetId )
RestoreHp( sceneId, selfId )
RestoreMp( sceneId, selfId )
RestoreRage( sceneId, selfId )
end
作者:
qq8563400
时间:
2021-3-19 22:19
顶顶顶顶顶顶顶顶顶
欢迎光临 天龙八部技术论坛,专业提供天龙八部架设教程教学,天龙八部开区一条龙服务. (http://bbs.xbytl.top/)
Powered by Discuz! X3.2