Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F156410
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
init.lua
View Options
-- twi_mods/twi_shops/init.lua
-- Shop dialogs
-- Copyright (C) 2024 1F616EMO
-- SPDX-License-Identifier: LGPL-2.1-or-later
local
S
=
core
.
get_translator
(
"twi_shops"
)
local
function
check_atlatc
(
name
)
if
core
.
check_player_privs
(
name
,
{
atlatc
=
true
})
then
return
99
end
return
0
end
shop_dialog
.
register_dialog
(
"twi_shops:advtrains"
,
{
title
=
S
(
"Advanced Trains Admin Shop"
),
entries
=
{
{
item
=
ItemStack
(
"advtrains_luaautomation:dtrack_placer"
),
description
=
S
(
"For LuaATC operators only. Advtrains track that runs LuaATC code."
),
cost
=
5
,
max_amount
=
check_atlatc
,
},
{
item
=
ItemStack
(
"advtrains_luaautomation:mesecon_controller0000"
),
description
=
S
(
"For LuaATC operators only. Luacontroller that runs LuaATC code."
),
cost
=
5
,
max_amount
=
check_atlatc
,
},
{
item
=
ItemStack
(
"advtrains_luaautomation:oppanel"
),
description
=
S
(
"For LuaATC operators only. Punch-operatable panel that runs LuaATC code."
),
cost
=
5
,
max_amount
=
check_atlatc
,
},
{
item
=
ItemStack
(
"advtrains_luaautomation:pcnaming"
),
description
=
S
(
"For LuaATC operators only. Name passive components."
),
cost
=
10
,
max_amount
=
check_atlatc
,
},
{
item
=
ItemStack
(
"linetrack:watertrack_lua_placer"
),
description
=
S
(
"For LuaATC operators only. Advtrains boat track that runs LuaATC code."
),
cost
=
5
,
max_amount
=
check_atlatc
,
},
{
item
=
ItemStack
(
"linetrack:roadtrack_lua_placer"
),
description
=
S
(
"For LuaATC operators only. Advtrains bus track that runs LuaATC code."
),
cost
=
5
,
max_amount
=
check_atlatc
,
},
{
item
=
ItemStack
(
"luaatc_textline:hanging_textline_green"
),
description
=
S
(
"For LuaATC operators only. Hanging display that runs LuaATC code."
),
cost
=
5
,
max_amount
=
check_atlatc
,
},
{
item
=
ItemStack
(
"luaatc_textline:hanging_textline_orange"
),
description
=
S
(
"For LuaATC operators only. Hanging display that runs LuaATC code."
),
cost
=
5
,
max_amount
=
check_atlatc
,
},
{
item
=
ItemStack
(
"luaatc_textline:textline"
),
description
=
S
(
"For LuaATC operators only. Textline that runs LuaATC code."
),
cost
=
5
,
max_amount
=
check_atlatc
,
},
}
})
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 8:05 AM (2 d, 12 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5c/6f/87259497cf7838969481f8a577c6
Default Alt Text
init.lua (2 KB)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment