【天龙八部】封无限技能解决
function x888888_OnScenePlayerEnter( sceneId, playerId, isReconnect ) --函数下面加一行
SetMissionData(sceneId, playerId, 426, 1)
 
 
 
 
function x888888_OnScenePlayerLogin( sceneId, selfId, nowtime )  --函数下面添加这一段
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 5974, 600 )
 
 
 
 
player_login.lua里面添加
 
function x888890_OnImpactFadeOut( sceneId, selfId, impactId )
local missid = GetMissionData(sceneId, selfId, 426)
if missid ~= 1 then
local killerName = GetName(sceneId, selfId);
str= format( "#W#{_INFOUSR%s}使用外挂,在使用就要被封号了。", killerName )
AddGlobalCountNews( sceneId, str )
SetMissionData(sceneId, selfId, 426, 0)
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 9994, 0 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 9994, 0 )
                NewWorld(sceneId,selfId,77,20,38)
else
SetMissionData(sceneId, selfId, 426, 0)
end
end
 
 
 
ScriptGlobal.lua --函数添加
CANGYEJUN=426
 
 
 
StandardImpact.txt 里面添加
5974检测90StdImpact0901-1-12728180100000000001000000脚本ID888890000000000000000000000000
9994 天罚(龙龟) 5 STD_IMPACT_005 0 188 -1 -1 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 HP修改百分率 -99 0 MP修改百分率 0 0 Rage修改百分率 0 0 StrikePoint修改百分率 0 0 0 0 0 0 0 0 0 0 0 0 0 0