1、流年饥荒控制台指令大全+物品大全+服务器管理命令大全一、服务器操作指令:TheNet:Kick(userid)-踢出用户ID为“userid”的玩家TheNet:Ban(userid)-禁止用户ID为“userid”的玩家加入c_save()-立即保存当前世界(一般会在每天早上自动保存)c_reset(true|false)-true删除当前世界并新建一个全新的世界;false重新加载当前世界。c_shutdown(true|false)-true保存并关闭当前世界;false不保存直接关闭当前世界c_rollback() 回档c_rollback(1) 回滚一个存档c_rollback(2)
2、 回滚两个存档c_rollback(3) 回滚三个存档 服务器没有回过档时理论可以回到任何一个档,但是如果回档一次,最多只能往前回5个档TheNet:SetAllowIncomingConnections(true|false)-true允许他人加入;false阻止任何人加入。TheNet:SetAllowIncomingConnections(false)TheNet:SetAllowIncomingConnections(true)-console -lan -player 6重新生成世界c_regenerateworld()测试模式c_testruins()超级上帝模式c_supergo
3、dmode()-定位-GetPlayer().Transform:SetPosition(22,0,33)地图全开:第一次输入 minimap=TheSim:FindFirstEntityWithTag(minimap)第二次打开地图输入: minimap=TheSim:FindFirstEntityWithTag(minimap)minimap.MiniMap:ShowArea(0, 0, 0, 10000)c_listplayers()-lan -console -player 10c_announce(大家记好房间名,回一下档)c_announce(流年离伤提醒你:卡?把小地图关了吧。)
4、c_announce(亲们,重启一下,有点bug,封了那人之后,我也进不去了)c_announce(不早了,兄弟们都睡觉吧,服务器要关了,晚安)c_announce(流年离伤提醒你:复活密码#LNCS,重新选人密码#LNLS,先按u然后输入密码方可)c_give(faroz_gls)c_give(scythe)复活所有人:for k,v in pairs(AllPlayers) do v:PushEvent(respawnfromghost) end把所有人聚集在一起:c_gatherplayers()传送到任意坐标:例子传送到(64.008,81.882)GetPlayer().Transf
5、orm:SetPosition(64.008,0,81.882)GetPlayer().Transform:SetPosition(101,0,112)GetPlayer().Transform:SetPosition(73,0,145)minimap=TheSim:FindFirstEntityWithTag(minimap)minimap.MiniMap:ShowArea(0,0,0,10000)全图显示GetWorld().minimap.minimap:showarea(0,0,0,10000)代码示例:c_give(goldnugget,40) /金子c_give(rocks,240
6、) /6组石头c_give(log,120) /6组木头c_give(wall_ruins_item,60) /铥墙c_give(log,80) /木头c_give(ancient_altar) /远古祭坛c_give(cellar_placer) /暴风地窖c_give(bonestew,40)c_give(bonestew,40)c_give(rope,40) /绳子papyrusc_give(papyrus,40) /zhic_give(trunk_summer,40) 夏象鼻c_give(cutstone,20) 砖块c_give(silk,40) 蛛网c_give(krampus_s
7、ack) 看普斯背包c_give(seeds,40) 种子c_give(poop,40) 便便c_give(spidergland,40)c_give(gears,40) 齿轮c_give(rope,40)c_give(rope,40)c_give(rope,40)c_give(rope,40)c_give(rope,40)最大生命值:GetPlayer().components.health:SetMaxHealth(300)-GetPlayer().Transform:SetPosition(-1,-1,-1)自动回血GetPlayer().components.health:StartR
8、egen(30,10)饥饿上限:GetPlayer().components.hunger:SetMax(500)设置sun上限GetPlayer().components.sanity:SetMax(1000)火的伤害为零:GetPlayer().components.health.fire_damage_scale=0-晾肉架-c_give(twigs,30)c_give(charcoal,20)c_give(rope,30)-强心针-healingsalvec_give(healingsalve,20)c_give(papyrus,30)-猪窝-c_give(board,4)c_give
9、(cutstone,3)c_give(pigskin,4)resurrectionstatue-建家植物-dug_grass(长草簇)dug_sapling(可种的树苗)dug_berrybush(可种的果树丛)c_give(dug_grass,40)c_give(dug_sapling,40)c_give(dug_berrybush,40)c_give(dug_grass,13)c_give(dug_sapling,21)c_give(dug_berrybush,16)c_give(minerhat)c_give(lightbulb,40)暴风地窖5gecutstonec_give(cuts
10、tone,20)c_give(turf_woodfloor,20)c_give(goldenshovel,1)c_give(perogies,10)minimap=TheSim:FindFirstEntityWithTag(minimap)GetWorld().minimap.MiniMap:ShowArea(0,0,0,10000)c_give(goldnugget,20)c_give(rocks,40)c_give(log,40)c_give(cutgrass,40)c_give(twigs,40)c_give(flint,40)c_give(perogies,20)c_give(kram
11、pus_sack)c_give(minerhat)c_give(lightbulb,40)GetPlayer().components.health:SetMaxHealth(300)GetPlayer().components.health:StartRegen(30,10)GetPlayer().components.hunger:SetMax(350)GetPlayer().components.sanity:SetMax(400)c_give(wall_ruins_item,60)GetPlayer().components.health:SetMaxHealth(9999)GetPl
12、ayer().components.health:StartRegen(50,10)GetPlayer().components.hunger:SetMax(3500)GetPlayer().components.sanity:SetMax(4000)c_give(goldnugget,20)c_give(rocks,40)c_give(log,40)c_give(cutgrass,40)c_give(twigs,40)c_give(flint,40)c_give(perogies,5)c_give(krampus_sack)c_give(minerhat)c_give(lightbulb,4
13、0)c_give(gears,4)c_give(flower_cave_triple)灯笼草单朵的:flower_cave双朵:flower_cave_double三朵:flower_cave_triple二、控制台命令函数原型-以下为各个函数原型,使用时只需要输入函数比如c_save()-世界喊话- Show server announcements:- To send a one time announcement: c_announce(msg)- To repeat a periodic announcement: c_announce(msg, interval)- To cance
14、l a periodic announcement: c_announce()c_announce(大家记好房间名,回一下档)-回滚- Roll back *count* number of saves (default 1)function c_rollback(count)c_rollback(1)-保存-function c_save()-刷物品- Spawn At Cursor and select the new ent- Has a gimpy short name so its easier to type from the consolefunction c_spawn(pre
15、fab, count)-关闭服务器 (是否保存)- Shutdown the application, optionally close with out saving (saves by default)function c_shutdown(save)-重启服务器(是否保存)- Restart the server, optionally save before restarting (does not save by default)function c_reset(save)-重新生成世界- Permanently delete the game world, rengerates a
16、 new world afterwordsfunction c_regenerateworld()-远程执行lua命令- Remotely execute a lua stringfunction c_remote( fnstr )-使一个玩家重新开始进入选人阶段- Despawn a player, returning to character select screenfunction c_despawn(player)-c_despawn helper- c_despawn helperlocal function dodespawn(player)-列出当前活跃用户- Return a
17、 listing of currently active playersfunction c_listplayers()-与上一个命令感觉没有什么区别- Return a listing of AllPlayers tablefunction c_listallplayers()-获取选择的物品- Get the currently selected entity, so it can be modified etc.- Has a gimpy short name so its easier to type from the consolefunction c_sel()function c
18、_select(inst)-光标下打印。- Print the (visual) tile under the cursorfunction c_tile()-应用场景脚本来选择和运行它。- Apply a scenario script to the selection and run it.function c_doscenario(scenario)-改变单位生命值- Some helper shortcut functionsfunction c_sel_health()function c_sethealth(n)function c_setminhealth(n) 最小生命值fun
19、ction c_setsanity(n) 脑残值c_sethunger(n) 饥饿值function c_setbeaverness(n) function c_setmoisture(n) 湿度function c_settemperature(n) 温度-运行中直连- Work in progress direct connect code.- Currently, to join an online server you must authenticate first.- In the future this authentication will be taken care of fo
20、r you.function c_connect( ip, port, password )-在背包中放入物品- Put an item(s) in the players inventoryfunction c_give(prefab, count)-未知-function c_mat(recname)function c_pos(inst)function c_printpos(inst)function c_teleport(x, y, z, inst)-移动命令-function c_move(inst)function c_goto(dest, inst)未知function c_i
21、nst(guid)列举function c_list(prefab)function c_listtag(tag)查找下一个function c_findnext(prefab, radius, inst)-上帝模式-function c_godmode()-超级上帝模式-function c_supergodmode()-查找-function c_find(prefab, radius, inst)function c_findtag(tag, radius, inst)未知命令function c_gonext(name)未知命令function c_printtextureinfo(
22、filename )function c_simphase(phase)function c_anim(animname, loop)function c_light(c1, c2, c3)function c_spawn_ds(prefab, scenario)function c_countprefabs(prefab, noprint)function c_counttagged(tag, noprint)-计算所有物品数量-function c_countallprefabs()-加速 几倍-function c_speedmult(multiplier)c_speedmult(1.5
23、)c_speedmult(1.3)c_speedmult(3)-实验模式-function c_testruins() ConsoleCommandPlayer().components.builder:UnlockRecipesForTech(SCIENCE = 2, MAGIC = 2) c_give(log, 20) c_give(flint, 20) c_give(twigs, 20) c_give(cutgrass, 20) c_give(lightbulb, 5) c_give(healingsalve, 5) c_give(batbat) c_give(icestaff) c_g
24、ive(firestaff) c_give(tentaclespike) c_give(slurtlehat) c_give(armorwood) c_give(minerhat) c_give(lantern) c_give(backpack)end未知function c_teststate(state)-作战装备-function c_combatgear()-作战模拟器-function c_combatsimulator(prefab, count)-转储-function c_dump()-显示当前所处季节-function c_dumpseasons()例子:c_dumpseasons()04:48:05: ConsoleInput: c_dumpseasons()04:48:05: spring 14 - 6 days (70 %) cycle-打印世界信息-function c_dumpworldstate()例子04:49:27: ConsoleInput: c_dumpworldstate()04:49:27:04:49:27: /= DUMPING WORLD STATE =
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1