3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 825|回复: 1
打印 上一主题 下一主题

[求助] 悬赏可以控制NPC公司IP的平台类型和付费类型的办法,解决GTA和CS有时候是街机,英雄联盟有时候是买断制游戏的问题

[复制链接]

76

主题

9416

帖子

1万

积分

优秀版主

Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19

贡献度
150
金元
94554
积分
10095
精华
4
注册时间
2017-8-25
跳转到指定楼层
主题
发表于 2022-7-28 11:58 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1000金元
本帖最后由 yellowottomany 于 2022-7-28 12:00 编辑

NPCIPs.txt这个文件里加<中间是平台类型代码>和<中间是付费模式代码>,分别可以控制IP的平台类型(电脑,主机,掌机,街机,手机)还有付费模式(买断,月费,免费),因为有的时候GTA和CS是街机十分影响游戏体验

最佳答案

查看完整内容

固定平台和类型 textScript添加类 private int GetGameTypeFromSonderIP(int i) { for (int j = 0; j 50) { script_.inAppPurchase[4] = true; } if (UnityEngine.Random.Range(0, 100) > 50) ...
回复

使用道具 举报

5

主题

286

帖子

1万

积分

资深玩家

Rank: 9Rank: 9Rank: 9

贡献度
2023
金元
26037
积分
10706
精华
1
注册时间
2021-1-12
舒服的沙发
发表于 2022-7-28 11:58 | 只看该作者

固定平台和类型
textScript添加类
        private int GetGameTypeFromSonderIP(int i)
        {
                for (int j = 0; j <= 2; j++)
                {
                        if (this.npcIPs.Contains("<TY" + j.ToString() + ">"))
                        {
                                return j;
                        }
                }
                return 0;
        }
textScript添加类
        private int GetPlatTypeFromSonderIP(int i)
        {
                for (int j = 0; j <= 5; j++)
                {
                        if (this.npcIPs.Contains("<PL" + j.ToString() + ">"))
                        {
                                return j;
                        }
                }
                return 0;
        }
int gameZielgruppe = 0;后加
                int gameType = 0;
                int platType = 0;
num2 = this.GetSubGenreFromSonderIP(i);后加
                                gameType = this.GetGameTypeFromSonderIP(i);
                                platType = this.GetPlatTypeFromSonderIP(i);
text = text.Replace("<TG" + gameZielgruppe.ToString() + ">", "");后加
                text = text.Replace("<TY" + gameType.ToString() + ">", "");
                text = text.Replace("<PL" + platType.ToString() + ">", "");
game_.SetMyName(text);后加
                game_.gameTyp = gameType;
                if (platType == 1)
                {
                        game_.exklusiv = true;
                }
                if (platType == 5)
                {
                        game_.handy = true;
                }
                if (platType == 4)
                {
                        game_.arcade = true;
                }
                if (platType == 3)
                {
                        game_.retro = true;
                }
                if (platType == 2)
                {
                        game_.herstellerExklusiv = true;
                }
改动createnewgame2
删除
                        if (!forceContractGame)
                        {
                                this.tS_.GetRandomNpcIP(this.myID, gameScript);
                        }
后面的
gameScript.gameTyp = 0;
改动SetMMOorF2P
        {
                if (platTyp == 0 || platTyp == 1 || platTyp == 5 || platTyp == 2)
                {
                        if (this.IsTochterfirma())
                        {
                                if (!this.tf_allowMMO)
                                {
                                        return;
                                }
                                if (!this.tf_allowF2P)
                                {
                                        return;
                                }
                                if (this.tf_onlyPlayerConsole)
                                {
                                        return;
                                }
                        }
                        if (script_.gameTyp == 2)
                        {
                                if (this.publisher && this.unlock_.Get(22))
                                {
                                        script_.gameTyp = 2;
                                        script_.exklusiv = false;
                                        script_.herstellerExklusiv = false;
                                        script_.verkaufspreis[0] = 0;
                                        script_.inAppPurchase[0] = true;
                                        script_.inAppPurchase[1] = true;
                                        script_.inAppPurchase[2] = true;
                                        script_.inAppPurchase[3] = true;
                                        if (UnityEngine.Random.Range(0, 100) > 50)
                                        {
                                                script_.inAppPurchase[4] = true;
                                        }
                                        if (UnityEngine.Random.Range(0, 100) > 50)
                                        {
                                                script_.inAppPurchase[5] = true;
                                                return;
                                        }
                                }
                        }
                        else if (script_.gameTyp == 1 && this.gF_.gameplayFeatures_UNLOCK[23])
                        {
                                script_.gameTyp = 1;
                                script_.aboPreis = 5;
                        }
                }
        }

评分

1

查看全部评分

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-3-18 09:11 , Processed in 0.030745 second(s), 16 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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