Skip to content

添加插件:硬核死亡掉生命水晶、刷新渔夫任务、切换沙尘暴、随机广播#271

Merged
Controllerdestiny merged 11 commits intoUnrealMultiple:masterfrom
1242509682:master
Jul 4, 2024
Merged

添加插件:硬核死亡掉生命水晶、刷新渔夫任务、切换沙尘暴、随机广播#271
Controllerdestiny merged 11 commits intoUnrealMultiple:masterfrom
1242509682:master

Conversation

@1242509682
Copy link
Copy Markdown
Contributor

No description provided.

{
plr.GiveItem(29, drop_amount);

TSPlayer.All.SendData(PacketTypes.ItemDrop, "", 29, itemIndex, 1);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不用发包

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用Update计时


foreach (string line in lines)
{
if (line.StartsWith("/") || line.StartsWith("."))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??你说这个自定义广播我都信
line.StartWith(TShock.Config..Settings.CommandSpecifier) || line.StartWith(TShock.Config..Settings.CommandSilentSpecifier)

#region 发送消息方法
public static void Message()
{
int SendCout = random.Next(1, Config.Cout + 1);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

关于随机取值
var val = Config.MessageList.OrderBy(f => Guid.NewGuid()).First();

@Controllerdestiny Controllerdestiny merged commit fd6feaf into UnrealMultiple:master Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants