Regnum 3.3.4 upload
parent
2e8f2569ad
commit
c51228bd7f
|
@ -1 +1,4 @@
|
||||||
name = Regnum
|
name = Regnum
|
||||||
|
release = 1338
|
||||||
|
author = 1248
|
||||||
|
description = Fight monsters, collect XP, craft battleaxes, armor, guns and lots more.
|
||||||
|
|
BIN
menu/Thumbs.db
BIN
menu/Thumbs.db
Binary file not shown.
|
@ -350,7 +350,6 @@ minetest.register_on_player_hpchange(function(player, hp_change)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
if name then
|
if name then
|
||||||
local heal = armor.def[name].heal
|
local heal = armor.def[name].heal
|
||||||
minetest.chat_send_all(""..heal)
|
|
||||||
if heal >= math.random(100) then
|
if heal >= math.random(100) then
|
||||||
hp_change = 0
|
hp_change = 0
|
||||||
end
|
end
|
||||||
|
|
|
@ -2409,15 +2409,19 @@ ach3.get_formspec = function(player, pos)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local player_inv = player:get_inventory()
|
local player_inv = player:get_inventory()
|
||||||
player_inv:set_size("year", 2)
|
player_inv:set_size("year", 3)
|
||||||
local year = player_inv:get_stack("year", 1):get_count()
|
local year = player_inv:get_stack("year", 1):get_count()
|
||||||
local year2 = player_inv:get_stack("year", 2):get_count()
|
local year2 = player_inv:get_stack("year", 2):get_count()
|
||||||
|
local year3 = player_inv:get_stack("year", 3):get_count()
|
||||||
local d = 0
|
local d = 0
|
||||||
if year == 1 then
|
if year == 1 then
|
||||||
d = d+1
|
d = d+1
|
||||||
end
|
end
|
||||||
if year2 == 1 then
|
if year2 == 1 then
|
||||||
d = d+1
|
d = d+1
|
||||||
|
end
|
||||||
|
if year3 == 1 then
|
||||||
|
d = d+1
|
||||||
end
|
end
|
||||||
formspec= "size[10.5,11.3]"
|
formspec= "size[10.5,11.3]"
|
||||||
.."background[10.5,11.3;1,1;gui_formbg.png;true]"
|
.."background[10.5,11.3;1,1;gui_formbg.png;true]"
|
||||||
|
@ -2427,9 +2431,11 @@ ach3.get_formspec = function(player, pos)
|
||||||
.."button[2,0;2,0.5;main;Main]"
|
.."button[2,0;2,0.5;main;Main]"
|
||||||
.."label[0.8,1.1;one year Trophy]"
|
.."label[0.8,1.1;one year Trophy]"
|
||||||
.."label[0.8,1.9;two years Trophy]"
|
.."label[0.8,1.9;two years Trophy]"
|
||||||
.."label[5.5,0;"..d.."/2]"
|
.."label[0.8,2.7;three years Trophy]"
|
||||||
|
.."label[5.5,0;"..d.."/3]"
|
||||||
.."image[0,1;0.8,0.8;tutorial_"..year..".png]"
|
.."image[0,1;0.8,0.8;tutorial_"..year..".png]"
|
||||||
.."image[0,1.8;0.8,0.8;tutorial_"..year2..".png]"
|
.."image[0,1.8;0.8,0.8;tutorial_"..year2..".png]"
|
||||||
|
.."image[0,2.6;0.8,0.8;tutorial_"..year3..".png]"
|
||||||
return formspec
|
return formspec
|
||||||
end
|
end
|
||||||
for j = 1, 8, 1 do
|
for j = 1, 8, 1 do
|
||||||
|
@ -3218,12 +3224,15 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
end
|
end
|
||||||
if fields.achc then
|
if fields.achc then
|
||||||
local player_inv = player:get_inventory()
|
local player_inv = player:get_inventory()
|
||||||
player_inv:set_size("year", 2)
|
player_inv:set_size("year", 3)
|
||||||
if player:get_inventory():contains_item("main", "tutorial:trophy_year1") then
|
if player:get_inventory():contains_item("main", "tutorial:trophy_year1") then
|
||||||
player_inv:set_stack("year", 1,"tutorial:dirt")
|
player_inv:set_stack("year", 1,"tutorial:dirt")
|
||||||
end
|
end
|
||||||
if player:get_inventory():contains_item("main", "tutorial:trophy_year2") then
|
if player:get_inventory():contains_item("main", "tutorial:trophy_year2") then
|
||||||
player_inv:set_stack("year", 2,"tutorial:dirt")
|
player_inv:set_stack("year", 2,"tutorial:dirt")
|
||||||
|
end
|
||||||
|
if player:get_inventory():contains_item("main", "tutorial:trophy_year3") then
|
||||||
|
player_inv:set_stack("year", 3,"tutorial:dirt")
|
||||||
end
|
end
|
||||||
inventory_plus.set_inventory_formspec(player, ach3.get_formspec(player))
|
inventory_plus.set_inventory_formspec(player, ach3.get_formspec(player))
|
||||||
end
|
end
|
||||||
|
|
|
@ -14,7 +14,7 @@ minetest.register_on_joinplayer(function(player)
|
||||||
offset = {x=0, y=30},
|
offset = {x=0, y=30},
|
||||||
alignment = {x=1, y=0},
|
alignment = {x=1, y=0},
|
||||||
number = 0xFFFFFF ,
|
number = 0xFFFFFF ,
|
||||||
text = "Game Version : 3.3.3",
|
text = "Game Version : 3.3.4",
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -137,6 +137,38 @@ minetest.register_node("tutorial:trophy_year2", {
|
||||||
fixed = { -0.21, -0.5, -0.125, 0.2725, 0.125, 0.1875 }
|
fixed = { -0.21, -0.5, -0.125, 0.2725, 0.125, 0.1875 }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
minetest.register_node("tutorial:trophy_year3", {
|
||||||
|
description = "Three years Regnum!!",
|
||||||
|
tiles = {
|
||||||
|
"moreores_mithril_block.png"
|
||||||
|
},
|
||||||
|
groups = { snappy=3 },
|
||||||
|
drawtype = "nodebox",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.125, -0.5, -0.125, 0.1875, -0.4375, 0.1875}, -- NodeBox1
|
||||||
|
{-0.0625, -0.4375, -0.0625, 0.125, -0.375, 0.125}, -- NodeBox2
|
||||||
|
{-0.02, -0.375, -0.02, 0.0825, -0.1875, 0.0825}, -- NodeBox3
|
||||||
|
{-0.0625, -0.1875, -0.0625, 0.125, -0.125, 0.125}, -- NodeBox4
|
||||||
|
{-0.125, -0.1875, -0.0625, -0.0625, 0.125, 0.125}, -- NodeBox5
|
||||||
|
{0.125, -0.1875, -0.0625, 0.1875, 0.125, 0.125}, -- NodeBox6
|
||||||
|
{-0.125, -0.1875, 0.125, 0.1875, 0.125, 0.1875}, -- NodeBox7
|
||||||
|
{-0.125, -0.1875, -0.125, 0.1875, 0.125, -0.0625}, -- NodeBox8
|
||||||
|
{-0.0625, -0.25, -0.0625, 0.125, -0.1875, 0.125}, -- NodeBox9
|
||||||
|
{0.1875, 0.05, 0, 0.23, 0.0925, 0.0625}, -- NodeBox10
|
||||||
|
{0.1875, -0.15, 0, 0.23, -0.11, 0.0625}, -- NodeBox11
|
||||||
|
{0.23, -0.15, 0, 0.2725, 0.0925, 0.0625}, -- NodeBox12
|
||||||
|
{-0.1675, -0.15, 0, -0.125, -0.11, 0.0625}, -- NodeBox13
|
||||||
|
{-0.1675, 0.05, 0, -0.125, 0.0925, 0.0625}, -- NodeBox14
|
||||||
|
{-0.21, -0.15, 0, -0.1675, 0.0925, 0.0625}, -- NodeBox15
|
||||||
|
}
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.21, -0.5, -0.125, 0.2725, 0.125, 0.1875 }
|
||||||
|
}
|
||||||
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'tutorial:legendstick9',
|
output = 'tutorial:legendstick9',
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -954,6 +986,11 @@ minetest.register_on_joinplayer(function(player)
|
||||||
player:set_physics_override(override_table)
|
player:set_physics_override(override_table)
|
||||||
local player_inv = player:get_inventory()
|
local player_inv = player:get_inventory()
|
||||||
player_inv:set_stack("crtime", 1, nil)
|
player_inv:set_stack("crtime", 1, nil)
|
||||||
|
player_inv:set_size("year", 3)
|
||||||
|
if player_inv:room_for_item("main", "tutorial:trophy_year3") and player_inv:get_stack("year", 3):get_count() == 0 then
|
||||||
|
player_inv:add_item("main", "tutorial:trophy_year3")
|
||||||
|
player_inv:set_stack("year", 3, "default:dirt")
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
minetest.register_craftitem("tutorial:cooking_schluessel1", {
|
minetest.register_craftitem("tutorial:cooking_schluessel1", {
|
||||||
description = "Cookingkey lv.1",
|
description = "Cookingkey lv.1",
|
||||||
|
|
Loading…
Reference in New Issue