蜀门私服转生降级脚本(亲测可用!)

作者:leo人气:更新:2021-09-09 09:24:09

-----------------一级转身----

CAI_8531 = class(CAIObject)

function CAI_8531:ctor(id, objid)

end

function CAI_8531:OnTaskFinish(uid, taskid)

    if taskid == 12175 then

local Random = math.random(1, 10);         -- Random 取值范围 10

local strUsername = GetUserNameByObjId(uid);

local strUserlev = GetUserLevel(uid);

  if Random<2 then                 -- 当random 小于 2执行 降级

       AddEffectEx( uid, 30604, 0,  0, 0, 0);

local strBossBroad = string.format(L("jj5"), strUsername,strUserlev);

        OutputLog("【"..strUsername.."】一转降级10级");

BroadcastMedia(strBossBroad,6);

   end

end

end

-------------------------------------------------------------------------------

-----------------二级转身----

CAI_8531 = class(CAIObject)

function CAI_8531:ctor(id, objid)

end

function CAI_8531:OnTaskFinish(uid, taskid)

    if taskid == 12176 then

local Random = math.random(1, 10);         -- Random 取值范围 10

local strUsername = GetUserNameByObjId(uid);

local strUserlev = GetUserLevel(uid);

  if Random<2 then                 -- 当random 小于 2执行 降级

       AddEffectEx( uid, 30604, 0,  0, 0, 0);

local strBossBroad = string.format(L("jj5"), strUsername,strUserlev);

        OutputLog("【"..strUsername.."】二转降级10级");

BroadcastMedia(strBossBroad,6);

   end

end

end

-------------------------------------------------------------------------------

-----------------三级转身----

CAI_8531 = class(CAIObject)

function CAI_8531:ctor(id, objid)

end

function CAI_8531:OnTaskFinish(uid, taskid)

    if taskid == 12177 then

local Random = math.random(1, 10);         -- Random 取值范围 10

local strUsername = GetUserNameByObjId(uid);

local strUserlev = GetUserLevel(uid);

  if Random<2 then                 -- 当random 小于 2执行 降级

       AddEffectEx( uid, 30605, 0,  0, 0, 0);

local strBossBroad = string.format(L("jj5"), strUsername,strUserlev);

        OutputLog("【"..strUsername.."】三转降级20级");

BroadcastMedia(strBossBroad,6);

   end

end

end

-------------------------------------------------------------------------------

-----------------终级转身----

CAI_8531 = class(CAIObject)

function CAI_8531:ctor(id, objid)

end

function CAI_8531:OnTaskFinish(uid, taskid)

    if taskid == 12178 then

local Random = math.random(1, 10);         -- Random 取值范围 10

local strUsername = GetUserNameByObjId(uid);

local strUserlev = GetUserLevel(uid);

  if Random<2 then                 -- 当random 小于 2执行 降级

       AddEffectEx( uid, 30606, 0,  0, 0, 0);

local strBossBroad = string.format(L("jj5"), strUsername,strUserlev);

        OutputLog("【"..strUsername.."】终极转身降级30级");

BroadcastMedia(strBossBroad,6);

   end

end

end


标签:蜀门私服转生脚本

豫ICP备2021020237号