-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
HardPlayerDrop/Plugin.cs
Outdated
{ | ||
plr.GiveItem(29, drop_amount); | ||
|
||
TSPlayer.All.SendData(PacketTypes.ItemDrop, "", 29, itemIndex, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不用发包
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用Update计时
RandomBroadcast/Plugin.cs
Outdated
|
||
foreach (string line in lines) | ||
{ | ||
if (line.StartsWith("/") || line.StartsWith(".")) |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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();
No description provided.