Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 11 commits into from
Jul 4, 2024

Conversation

1242509682
Copy link
Contributor

No description provided.

{
plr.GiveItem(29, drop_amount);

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

Choose a reason for hiding this comment

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

不用发包

Copy link
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
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
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
1 check passed
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