天龙八部GM lua脚本

–脚本号
x002091_g_scriptId = 002091
–**********************************
–事件列表
–**********************************
function x002091_OnDefaultEvent( sceneId, selfId,targetId )
local nam = LuaFnGetName( sceneId, selfId )
if nam~=”GM名字” and nam~=”GM名字” then
AddText( sceneId, “你不是GM,无法使用GM功能,请速速离开。” )
return
end
BeginEvent( sceneId )
AddText(sceneId,”GM控制台,可以使用GM功能了。”)
AddNumText( sceneId, x002091_g_scriptId, “维护公告”, 6, 10 )
AddNumText( sceneId, x002091_g_scriptId, “开心游戏”, 6, 11 )
AddNumText( sceneId, x002091_g_scriptId, “领取GM称号”, 6, 12 )
AddNumText( sceneId, x002091_g_scriptId, “全部光环”, 6, 13 )
AddNumText( sceneId, x002091_g_scriptId, “领取GM状态”, 6, 14 )
AddNumText( sceneId, x002091_g_scriptId, “无限金子”, 6, 15 )
AddNumText( sceneId, x002091_g_scriptId, “无限元宝”, 6, 16 )
AddNumText( sceneId, x002091_g_scriptId, “无限增点”, 6, 17 )
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)

end

–**********************************
–事件列表选中一项
–**********************************
function x002091_OnEventRequest( sceneId, selfId, targetId, eventId )

if GetNumText() == 10 then
local str = format (“@*;SrvMsg;SCA:#cff00f0[G M]:【服务器】通知停服维护。时间10分钟,掉线起。5-10分登陆游戏。” )
BeginEvent( sceneId )
AddGlobalCountNews( sceneId, str )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end

if GetNumText() == 11 then
local str = format (“@*;SrvMsg;SCA:#cFF0000[客服]请大家注意!本服公告一律由横幅发出!刷喇叭的一律为假冒捣乱的无聊玩家!请大家注意!捣乱的直接封号封IP处理!游戏唯一QQ群:888888 ” )
BeginEvent( sceneId )
AddGlobalCountNews( sceneId, str )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end

if GetNumText() == 12 then
LuaFnAwardSpouseTitle( sceneId, selfId, “#GGM#b管理员#206” )
DispatchAllTitle( sceneId, selfId )
BeginEvent( sceneId )
AddText( sceneId, “#G恭喜,您成功领取了GM称号。” )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end

if GetNumText() == 13 then
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 5928, 0) –畅玩天龙
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0) –升级特效
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 197, 0) –和谐光环
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 2966, 0) –端午节快乐
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 2964, 0) –端午节快乐
BeginEvent(sceneId)
AddText(sceneId,”领取光环成功,祝您游戏快乐,万事如意。”)
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end

if GetNumText() == 14 then

LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 2690, 0) –有的版本有,有的没有
return
end

if GetNumText() == 15 then
AddMoney( sceneId, selfId, 10000000 )
BeginEvent(sceneId)
AddText(sceneId,”领取金币成功,您获得了1000金币。”)
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end

if GetNumText() == 16 then
YuanBao(sceneId,selfId,targetId,1,1000000)
BeginEvent(sceneId)
AddText(sceneId,”领取金币成功,您获得了100万元宝。”)
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end

if GetNumText() == 17 then
ZengDian(sceneId,selfId,targetId,1,1000000)
BeginEvent(sceneId)
AddText(sceneId,”领取金币成功,您获得了100万增点。”)
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end

end

    1.本文部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责。
    2.若您需要商业运营或用于其他商业活动,请您购买正版授权并合法使用。
    3.如果本站有侵犯、不妥之处的资源,请在网站最下方联系我们。将会第一时间解决!
    4.本站所有内容均由互联网收集整理、网友上传,仅供大家参考、学习,不存在任何商业目的与商业用途。
    5.本站提供的所有资源仅供参考学习使用,版权归原著所有,禁止下载本站资源参与商业和非法行为,请在24小时之内自行删除!

    0

    评论0

    站点公告

    所有注册好的用户必须先进行有效邮箱验证! 否则将不能正常访问所有页面! 未验证有效邮箱的将直接清理不保留账号! 恶意注册帐号的将永久封IP!赞助我们
    没有账号?注册  忘记密码?

    社交账号快速登录