找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 30|回复: 0

lua常用

[复制链接]
  • 打卡等级:Lv3.偶尔看看
  • 打卡总天数:13
  • 打卡月天数:6
  • 打卡总奖励:640
  • 最近打卡:2026-04-18 10:17:23

27

主题

0

回帖

40万

积分

管理员

积分
400669
发表于 2026-3-22 20:21:21 | 显示全部楼层 |阅读模式
        local gb_value = LuaFnGetHumanGoodBadValue( sceneId, selfId )
        LuaFnSetHumanGoodBadValue( sceneId, selfId, gb_value + 5000 )   --善恶
        
        local menpaipoint = GetHumanMenpaiPoint(sceneId, selfId)
        SetHumanMenpaiPoint(sceneId, selfId, menpaipoint + 5000)   --门贡
        
        local nPkValue = LuaFnGetHumanPKValue(sceneId, selfId)
        LuaFnSetHumanPKValue(sceneId, selfId,nPkValue+5)           --杀气
        
        YuanBao(sceneId,selfId,1,1,10000000)   --元宝
        
        ZengDian(sceneId,selfId,1,1,10000000)   --赠点
        
        AddMoney(sceneId,selfId,1000000)  --金币
        
        AddMoneyJZ(sceneId,selfId,1000000)  --交子
        
        LuaFnAddExp(sceneId,selfId, 1000000000) --经验
        
        SetMissionData(sceneId, selfId, XIULIAN_GONGLI, 10000) --修炼
        
        SetCharacterTitle(sceneId, selfId, 'GM')     --称号
        
        SetMissionData(sceneId,selfId,MD_CHONGZHIDIAN,GetMissionData(sceneId,selfId,MD_CHONGZHIDIAN)+10000)  --变量
        
        TryRecieveItem(sceneId,selfId,30008002,1)   --给装备
        
        SetLevel(sceneId,selfId,111)  --给等级
        
        LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 2690, 0)             --给buff
        
        LuaFnCreateMonster(sceneId, 5011, 87, 177, 20, 1, 808067)                          --创建怪物
        
        RestoreHp( sceneId, selfId ) ------满血
        RestoreMp( sceneId, selfId ) ------满气
        RestoreRage( sceneId, selfId ) ------满怒
        
        LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 228, 0 )
        LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 22330, 0 )           --清空技能cd
        

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|by:泡泡牛 Qq766532218

GMT+8, 2026-4-19 02:06 , Processed in 0.161983 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表