骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买CDKEY 小黑盒加速器
查看: 8300|回复: 5

[源码与工具] 兼容原版的管理员增强工具MOD

[复制链接]

282

主题

4174

回帖

4612

积分

贵族[MOD作者]

圣剑MOD制作组[程序]

Rank: 7Rank: 7Rank: 7

UID
63912
第纳尔
5396
精华
6
互助
181
荣誉
177
贡献
245
魅力
717
注册时间
2008-1-13

原版正版勋章战团正版勋章骑士美德之正义勋章[杰出会员荣誉勋章]骑士荣誉之原版汉化勋章骑士荣誉之战团汉化勋章

鲜花(11) 鸡蛋(0)
发表于 2010-11-11 15:25:32 | 显示全部楼层 |阅读模式
原帖:  http://forums.taleworlds.com/index.php/topic,141038.0.html
作者:  Vincenzo

Native compatible Admin Tools By Vincenzo.

Features:

Automatic scripts:
  • Auto kick and ban for teamkillers
  • Automatic killing of stray horses after 30 seconds
  • Option to auto swap teams at battle at half time or siege after each round.
  • Automatic announcements; Editable to your own liking.
  • Server stats for on your website. (players, map etc)
  • Improved performance of a lot of native scripts to make the server faster.
  • When you get teamkilled you will loose no gold and can spawn with the same equipment.
  • When you get teamkilled you won't loose a life as a siege defender.
  • When you win a duel in duel mode you and your horse get full health.


【自动执行脚本】:

自动踢出或BAN 伤害队友者。
自动杀死30秒无人骑上的野马。
增加一个自动交换攻守方的选项,可以在战役模式半场结束后或攻城模式每轮结束后自动对调攻守方。
内容可编辑的自动公告发布功能。
在你的网站显示服务器状态(例如 玩家数量,地图等等)。
提升了大量原版战团脚本的执行效能,令你的服务器更快。
当你被TK之后不会损失金钱并且下次重生的时候保留同样的装备。
作为一名守城者,你被TK之后不会损失重生次数。
在决斗模式下当你赢了一场决斗后,你和你的马将回复全部生命值。


Admin Management Tools:
  • Improved player select list; Sorted on score.
  • Admin Chat; Press the U button to chat in [SERVER] messages
  • Freeze Player
  • Slay Player
  • Temporary ban player (1 hour)
  • Swap player to other team
  • Swap player to spectators
  • Reset map (resets everything in the map and starts a new round without people having to reload the map)
  • When someone starts a poll, It is displayed who started it.
  • Mute all option; Like the native mute.(only for your client not for all)
  • All admin commands are fully logged in the log; who did them and when.


【管理员工具】:

改进玩家选择列表,按积分排序
管理员频道,按“U”开始发送公告信息 (淡红字色,
[SERVER]字头
冻结玩家
杀死玩家
暂时BAN玩家(1小时)
换某玩家去另一队
换某玩家去场外围观
重置地图(玩家无需重新装载地图就可以在新的一轮中重置某地图的全部状态)
在游戏中显示投票的发起者ID
全体静默功能,相当于原版静默(只对你自己的客户端有效)
所有的管理命令都被记录下来,谁在什么时候做了什么


Admin Toys
  • Spawn Admin Gun; Simple kills people from range
  • Spawn Admin Sword; Big range, big damage.
  • Spawn Admin Shield; Has a lot of hit points and force field.
  • Spawn Ban Hammer; Upon killing someone with it the player gets banned for 1 hour.
  • Spawn Fire Arrows; When shot at something the place it hits will burn briefly
  • Spawn Fire Bolts; When shot at something the place it hits will burn briefly
  • Spawn Hand Grenade; When you throw it and it hits within a radius of 5 meters of a player or horse it dies in horrible pain.
  • Spawn Admin Horse; A fast horse with a lot of hit points!
  • Spawn with Admin Armor; Next spawn you will have the black armor and you almost can't be killed.
  • Heal Player
  • Refill Player Ammo
  • Give Player 10,000 Denar
  • Teleport to Player
  • Bring player to your position
  • Teleport through wall; Teleport 2.5 meters forward thus going through any wall or object in front of you.

note: All admin toy usage is logged and broadcasted to all players on the server, so you can't abuse it during matches or such.

All player specific commands can be executed for all players, for instance Freeze All  

【管理员道具】:

管理员枪,可以远距离杀死玩家。。。
管理员剑,巨大的伤害和距离。。。
管理员盾,超多的生命值和力场防护。。。
Ban锤,用他杀死一个玩家,该玩家被BAN一个小时...
火箭,顾名思义射到的地方短暂燃烧...
火弩箭,同上
手榴弹,投掷击中的地点5米范围内,人死马摧,恩好恐怖哦
管理员马,一匹超多生命值的快马
管理员黑甲,下次重生时获得一件黑甲,几乎是不可能被弄死的
治疗玩家
给玩家添加弹药(箭,弩矢,投掷)
给玩家10000第纳尔
传送玩家
召唤玩家到你的位置
穿墙转送,向前传送2.5米 可以穿越任何墙或物体

提醒:

所有管理员道具的使用都会被服务器记录,并且广播给该服务器的全体玩家,因此不要想滥用这些玩具。。。

玩家特殊命令可以应用给全体玩家,比如冻结这个命令,可以冻结所有玩家.

Screenshots:
(点击展开 / 收起)



Installation

For server:
Download this:
http://22nd.eu/Vincenzo_Admin_Tools_Server_V1.0.zip
Backup your native .txt files, Then unzip it into your native folder.
Make sure to restart your server after.

For your admins:
Download and install this:
http://22nd.eu/Vincenzo_Admin_Tools_V1.0.exe



Extra info

Using Server Stats
Once your server is up you can view it's stats with this:
http://22nd.eu/stats/displaystats.php?server=YourServerNameHere

To put it on your website;
Add a iframe to your website for instance:
Code: [Select]
<iframe src ="http://22nd.eu/stats/displaystats.php?server=YourServerNameHere" width="100%" height="70" SCROLLING="no" frameborder="0">
</iframe>

If you want to use the stats in your own website style;
Just open up this css file and edit it to your liking, then save it on your webserver.:
http://22nd.eu/stats/styles.css

When you call my page you can link your own CSS file like so:
http://22nd.eu/stats/displaystats.php?server=YourServerName&css=http://yoursite/yourcssfile.css



Adding your own custom maps
To get your own maps in, you need to do 3 things;

1. Put your .sco file in
- Get the .sco file of your custom map and name it like:
scn_multi_scene_custom_1.sco
scn_multi_scene_custom_2.sco

and so on. You can have up to 20 custom maps.

- Put it in the "SceneObj" Folder on your server.


2. Put the codes in.
If you edit a native map then you need to copy its codes.
- Open up the file "scenes.txt" on your server with notepad.
- Search with notepad (Control + F) for:  "scn_multi_scene_custom_1"

You will get a result like:
Code: [Select]
scn_multi_scene_custom_1 multi_scene_custom_1 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x00000001300389800003a4ea000058340000637a0000399b
  0
  0
outer_terrain_plain Now just copy over the codes from your custom map to this one, make sure you don't overwrite scn_multi_scene_custom_1 ormulti_scene_custom_1 Because they are the identifiers for this map.

A example how Field by the River Looks:
Code: [Select]
scn_multi_scene_7 multi_scene_7 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x0000000130010e0e0005fd84000011c60000285b00005cbe
  0
  0
outer_terrain_plain So just copy over all text except the names.


3. Rename the map.
You can rename your custom map from the default.
- For this open up strings.txt with notepad.
- Search with notepad (Control + F) for:  "multi_scene_custom_1"
- You will see the map name, just edit it how you like.
note: Don't use spaces!! use underscores:  _

- When your done with this line search for: "2multi_scene_custom_1"
note: This is the name it is displayed as on the website It needs to be URL encoded.  For instance %20 means a space, get all the special characters at:
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

If you want your admins to see the new names for the maps, give them your edited strings.txt file.


Have your own Announcements
- Open up the file strings.txt with notepad on the server.
- Search with notepad (Control + F) for:  "str_announce_1"
- You will see all the announcement texts, just edit them how you like.
note: Don't use spaces!! use underscores:  _


How does some stuff work?

Auto kick and ban
- People get kicked after 5 teamkills in one map or -3 score.
- After you already got kicked twice in 24 hours the 3th time your up for a kick you get perm banned.
- Data is stored in dummy troops. It works on Player CD keys and not playernames.

Data sent to our stats server
Data your sending to our server (every minute) is:
- Servername
- Mapname
- GameType
- Current Playercount
- Maximum Playercount



Credits
Special thanks go out to:
- Beaver, A walking module system database, Always willing to help. And did some scripts.
- Daegoth, Always ready to answer any engine questions and always implementing my bug/feature requests.
- The 22nd Clan My friends, My support, I love you all.

评分

参与人数 1第纳尔 +20 互助 +1 收起 理由
Aomine Daiki + 20 + 1 文章不错,继续努力!

查看全部评分



圣剑第一章

论坛问答指南
MOD制作最简入门
联机MOD场景地图制作
汉化是一种自豪的苦力


虽然圆桌骑士公会的头衔被某人摘掉了,我们还是其中的一员,始终信奉自由、平等与公正。

282

主题

4174

回帖

4612

积分

贵族[MOD作者]

圣剑MOD制作组[程序]

Rank: 7Rank: 7Rank: 7

UID
63912
第纳尔
5396
精华
6
互助
181
荣誉
177
贡献
245
魅力
717
注册时间
2008-1-13

原版正版勋章战团正版勋章骑士美德之正义勋章[杰出会员荣誉勋章]骑士荣誉之原版汉化勋章骑士荣誉之战团汉化勋章

鲜花(11) 鸡蛋(0)
 楼主| 发表于 2010-11-11 15:32:37 | 显示全部楼层
这算是上一篇自动踢人的加强版吧.....

其实应该把兵种比例限制加进去....

稍后详细解释......


圣剑第一章

论坛问答指南
MOD制作最简入门
联机MOD场景地图制作
汉化是一种自豪的苦力


虽然圆桌骑士公会的头衔被某人摘掉了,我们还是其中的一员,始终信奉自由、平等与公正。

36

主题

2281

回帖

790

积分

皇家侍卫长[官方战队队长]

东方复兴兄弟会[All]
战团ID:白骨大侠

Rank: 6Rank: 6

UID
242948
第纳尔
2581
精华
0
互助
11
荣誉
4
贡献
20
魅力
610
注册时间
2010-4-28

第十一届战团中国联赛季军勋章第十届战团中国联赛冠军勋章原版正版勋章战团正版勋章拿破仑正版勋章骑士美德之英勇勋章[杰出会员活跃勋章]元老骑士勋章第八届战团中国联赛冠军勋章第九届战团中国联赛铁骨勋章第三届骑兵联赛季军勋章天梯匹配S1赛季铜质勋章天梯匹配S2赛季金质勋章

QQ
鲜花(381) 鸡蛋(47)
发表于 2010-11-11 15:35:00 | 显示全部楼层
好东西 必须得汉化

14

主题

247

回帖

98

积分

扈从

血盟战队[Blood]
战团ID:Blood_Rui(犀利哥)

Rank: 2Rank: 2

UID
22905
第纳尔
336
精华
0
互助
4
荣誉
0
贡献
0
魅力
11
注册时间
2007-5-21

原版正版勋章战团正版勋章

鲜花(0) 鸡蛋(0)
发表于 2010-11-11 18:20:40 | 显示全部楼层
本帖最后由 dgrzhang 于 2010-11-11 19:28 编辑

********* 原版兼容管理工具 by Vincenzo ***********

【功能介绍】

【自动执行脚本】:

自动踢出或BAN 伤害队友者。
自动杀死30秒无人骑上的野马。
增加一个自动交换攻守方的选项,可以在战役模式半场结束后或攻城模式每轮结束后自动对调攻守方。
内容可编辑的自动公告发布功能。
在你的网站显示服务器状态(例如 玩家数量,地图等等)。
提升了大量原版战团脚本的执行效能,令你的服务器更快。
当你被TK之后不会损失金钱并且下次重生的时候保留同样的装备。
作为一名守城者,你被TK之后不会损失重生次数。
在决斗模式下当你赢了一场决斗后,你和你的马将回复全部生命值。

【管理员工具】:

改进玩家选择列表,按积分排序
管理员对话频道,按“U”开始发送信息
冻结玩家
杀死玩家
暂时BAN玩家(1小时)
换某玩家去另一队
换某玩家去场外围观
重置地图(玩家无需重新装载地图就可以在新的一轮中重置某地图的全部状态)
在游戏中显示投票的发起者ID
全体静默功能,相当于原版静默(只对你自己的客户端有效)
所有的管理命令都被记录下来,谁在什么时候做了什么

【管理员道具】:

管理员枪,可以远距离杀死玩家。。。
管理员剑,巨大的伤害和距离。。。
管理员盾,超多的生命值和力场防护。。。
Ban锤,用他杀死一个玩家,该玩家被BAN一个小时...
火箭,顾名思义射到的地方短暂燃烧...
火弩箭,同上
手榴弹,投掷击中的地点5米范围内,人死马摧,恩好恐怖哦
管理员马,一匹超多生命值的快马
管理员黑甲,下次重生时获得一件黑甲,几乎是不可能被弄死的
治疗玩家
给玩家添加弹药(箭,弩矢,投掷)
给玩家10000第纳尔
传送玩家
召唤玩家到你的位置
穿墙转送,向前传送2.5米 可以穿越任何墙或物体

提醒:

所有管理员道具的使用都会被服务器记录,并且广播给该服务器的全体玩家,因此不要想滥用这些玩具。。。

玩家特殊命令可以应用给全体玩家,比如冻结这个命令,可以冻结所有玩家.

【安装指南】

服务器端安装
下载:
http://22nd.eu/Vincenzo_Admin_Tools_Server_V1.0.zip


备份原版的.txt文件,解压到你的原版目录,重启服务器

管理员客户端:
下载:
http://22nd.eu/Vincenzo_Admin_Tools_V1.0.exe



【其他信息】:

【服务器状态】
你可以输入像下面的链接这种格式,查看你的服务器状态
http://22nd.eu/stats/displaystats.php?server=YourServerNameHere

想在你的网站上使用这个查看功能;

添加下面的iframe代码到你的网站
Code: [Select]
<iframe src ="http://22nd.eu/stats/displaystats.php?server=YourServerNameHere" width="100%" height="70" SCROLLING="no" frameborder="0">
</iframe>

如果你想在自己的网站风格下查看状态

只要打开这个CSS文件,编辑到你的外链,并保存到你的webserver

http://22nd.eu/stats/styles.css

当你访问作者的网页,你可以链接自己的CSS文件像下面的格式一样


http://22nd.eu/stats/displaystats.php?server=YourServerName&css=http://yoursite/yourcssfile.css

【添加自定义地图】
为了使用自定义地图,你需要做下面三件事;

1. 放进你的地图

- 将你地图文件.sco 使用下面这样的命名规则
scn_multi_scene_custom_1.sco
scn_multi_scene_custom_2.sco

你可以使用最多20个自定义地图

- 复制“SceneObj”文件夹到你的服务器

2.植入代码.
如果你编辑一张原版地图那么你需要复制它的代码,方法如下;

- 在服务器上用写字板打开文件“"scenes.txt'
- 搜索(ctrl+f) 字段 "scn_multi_scene_custom_1"

你会看到如下代码:
Code: [Select]
scn_multi_scene_custom_1 multi_scene_custom_1 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x00000001300389800003a4ea000058340000637a0000399b
  0
  0
outer_terrain_plain 现在从你的自定义地图复制并覆盖这段代码,确保你没有覆盖斜体字部分 scn_multi_scene_custom_1ormulti_scene_custom_1 因为这一段是地图的名称定义字段

举个例子,地图 Field by River 就是下面这段:
Code: [Select]
scn_multi_scene_7 multi_scene_7 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x0000000130010e0e0005fd84000011c60000285b00005cbe
  0
  0
outer_terrain_plain 复制这一段,除了地图的名称定义部分


3。重新命名文件

你可以重命名默认地图
- 打开string.txt文件

- 搜索字段: "multi_scene_custom_1"
- 你会看到地图名称,编辑成你喜欢的名字
注意: 不要使用空格,用下划线_

- 完成后搜索 "2multi_scene_custom_1"
注意:这个名称是要能被网页显示的,所以需要URL编码,下面的连接是所有特殊字符编码

http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

如果你希望管理员们能看到新的名字,就要发给他们编辑过的string.txt文件


【自定义你的公告信息】

- 打开string.txt
- 搜索" str_announce_1"
- 你会看到所有的公告信息文本,编辑成你需要的内容
注意: 不要使用空格,用下划线“_"代替

【一些解释和说明】:

【自动KICK和BAN】
- 在一个地图5次TK或得分-3的玩家会被自动kick
- 当某人24小时之内已经被自动kick两次,第三次满足kick条件的时候,此人被系统自动永久BAN
- 记录是和CDKEY关联的,与玩家在游戏中的ID无关

【下面的这些数据会被发送至状态服务器(每分钟一次)】:
Data your sending to our server (every minute) is:
- 服务器名称 servername
- 地图名 Mapname
- 游戏模式 GameType
- 在线人数 Current Playercount
- 人数上限 Maximum Playercount


Credits
Special thanks go out to:
- Beaver, A walking module system database, Always willing to help. And did some scripts.
- Daegoth, Always ready to answer any engine questions and always implementing my bug/feature requests.
- The 22nd Clan My friends, My support, I love you all.

[待编辑】

评分

参与人数 1第纳尔 +20 互助 +3 收起 理由
alixyang + 20 + 3 翻译不错!

查看全部评分

战团ID:Blood_Rui

64

主题

3819

回帖

2545

积分

子爵[版主]

高级术士

Rank: 7Rank: 7Rank: 7

UID
79668
第纳尔
9958
精华
2
互助
144
荣誉
46
贡献
30
魅力
382
注册时间
2008-6-10

骑士美德之仁慈勋章[杰出会员互助勋章]骑士美德之英勇勋章[杰出会员活跃勋章]维京征服正版勋章

鲜花(221) 鸡蛋(0)
发表于 2010-11-17 10:22:55 | 显示全部楼层
本帖最后由 chenwz 于 2010-11-17 10:33 编辑

说道强化鹳狸猿用MOD...我找到一个相对简单但是开源的的管理员用工具
http://forums.taleworlds.com/index.php/topic,140961.0.html

To install just copy the files into your Native folder on the server and your PC. Remember to make a backup of all the files you are replacing.

Features: (已经实现的)
Admin Chat - Send a message that can be read by all players regardless of if you are in spectator, dead or alive.
Spawn Items - There's a few toys in here for admins to spawn, such as a sword with 250 damage, and an adamantium shield.
Poll Messages - A server message is created each time a poll is made, displaying who created the poll and it's options.
Armour Spawn - You can select these to make all people in the server spawn in certain outfits, such as Samurai or a Bridal Dress. Admins can also spawn in a higher tier armour and super admin armour.
Swap Players Team - Swap any player in the servers team.
Give Full Health - Gives a single player health.
Full Health For All - Pretty much what it says on the tin.
Give 10,000 Gold - Gives a player 10k Gold.
Give 10,000 Gold to Everyone - Do I really have to explain?
Refill Ammo for All - Refills all ranged ammo for all players.


Coming Soon:(尚未实现功能)
Different tiers of Admin
Teleport (Summon and user teleport)
Kick / Ban Weapons
Grenades


Also being looked at is the possibility of adding in a way to block all the "cheats" from being used.

If you have any ideas of what might be useful in a future release then make sure you let us know. Likewise, if you have any problems then feel free to send me a PM.

Mod created by Selnix
Thanks to Willow, DaiReaver and Vincenzo for their assistance.

Enjoy!

Video: http://www.youtube.com/watch?v=HrXxsAZgIqE(该死的居然是YouTube)
Download Mod: http://www.orderofthelion.co.uk/Adminmod.rar(下载地址)
Download Module Files: http://www.orderofthelion.co.uk/Adminmodule.rar (源码下载地址)

大致看了一下,这东西是某作者(Selnix)单独开发的,但是也得到了22ND版的管理员工具的发布者的帮助(Vincenzo)

评分

参与人数 1互助 +1 收起 理由
alixyang + 1 多谢~

查看全部评分

战争之风MOD链接
个人收藏源码分享
私人MOD讨论群:127341841(已满)
MOD讨论二群群:483856436

想找最新版本的,想发表建议的,请签下契约(入群),成为小白鼠吧

282

主题

4174

回帖

4612

积分

贵族[MOD作者]

圣剑MOD制作组[程序]

Rank: 7Rank: 7Rank: 7

UID
63912
第纳尔
5396
精华
6
互助
181
荣誉
177
贡献
245
魅力
717
注册时间
2008-1-13

原版正版勋章战团正版勋章骑士美德之正义勋章[杰出会员荣誉勋章]骑士荣誉之原版汉化勋章骑士荣誉之战团汉化勋章

鲜花(11) 鸡蛋(0)
 楼主| 发表于 2010-11-17 12:48:37 | 显示全部楼层
这个我也看过  功能简单不过开源   
  那个Different tiers of Admin 倒是不错, 因为目前private player功能没有开放, 我想应该是登入界面再输入第二次密码,才能拿到高级管理员权限
  不过真的要做起来,直接用uid锁定更简单更安全些


圣剑第一章

论坛问答指南
MOD制作最简入门
联机MOD场景地图制作
汉化是一种自豪的苦力


虽然圆桌骑士公会的头衔被某人摘掉了,我们还是其中的一员,始终信奉自由、平等与公正。
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2024-4-17 05:14 , Processed in 0.132169 second(s), 25 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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