master
runs 2020-05-05 23:07:58 +02:00
parent c96611b7a8
commit bcab26ac67
13 changed files with 286 additions and 31 deletions

View File

@ -1,4 +1,7 @@
function mokapi.delimit_number(number, range)
if not tonumber(number) then
return nil
end
if number < range.min then
number = range.min
elseif number > range.max then

View File

@ -26,9 +26,9 @@ assert(loadfile(modpath .. "/api/api_dam_beaver.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_particles.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_whistle.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_silk.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_sleep.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_env_damage.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_on_step.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_sleep.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_env_damage.lua"))(moh, S)
assert(loadfile(modpath .. "/api/api_bees.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_throw.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_collisionbox.lua"))(modpath, S)
@ -39,3 +39,4 @@ assert(loadfile(modpath .. "/api/api_poop.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_brush.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_bottled.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_colors.lua"))(modpath, S)
assert(loadfile(modpath .. "/api/api_sell_buy.lua"))(S)

View File

@ -17,8 +17,8 @@ petz.create_form = function(player_name, context)
context.tab_id = 1
end
local pet_icon = "petz_spawnegg_"..pet.type..".png"
if context.tab_id == 1 then
pet_image_icon = "image[0.375,0.375;1,1;"..pet_icon.."]"
if context.tab_id == 1 and not(context.buy) then
local pet_image_icon = "image[0.375,0.375;1,1;"..pet_icon.."]"
if pet.affinity == nil then
pet.affinity = 0
end
@ -159,8 +159,20 @@ petz.create_form = function(player_name, context)
form_orders = form_orders .. "button_exit[3.375,5.5;2,1;btn_guard;"..S("Guard").."]"
end
tab_form = tamagochi_form_stuff.. form_orders
else
elseif context.tab_id == 1 and context.buy then
form_size.w = form_size.w + 1
form_size.h = form_size.h + 2
buttonexit_pos.x = buttonexit_pos.x + 1
buttonexit_pos.y = buttonexit_pos.y - 2
local item_description = petz.settings.selling_exchange_items_list[pet.exchange_item_index].description or ""
local item_amount = pet.exchange_item_amount or 1
tab_form = tab_form ..
"label[0.375,1.0;"..S("Cost")..": ]"..
"label[2,1;"..item_description.."]"..
"label[0.375,2;"..S("Amount")..":]"..
"label[2,2;"..tostring(item_amount).."]"..
"button_exit[2,3;2,1;btn_buy;"..S("Buy").."]"
elseif context.tab_id == 2 and not(context.buy) then
form_size.w = form_size.w + 1
form_size.h = form_size.h + 2
buttonexit_pos.y = buttonexit_pos.y - 2
@ -170,11 +182,51 @@ petz.create_form = function(player_name, context)
tab_form = tab_form .. "checkbox[0.375,1.75;btn_herding;"..S("Herding")..";"..petz.vartostring(pet.herding).."]"
end
end
elseif context.tab_id == 3 and petz.settings.selling and not(context.buy) then
form_size.w = form_size.w + 1
form_size.h = form_size.h + 2
buttonexit_pos.y = buttonexit_pos.y - 2
local exchange_items = ''
local dropdown_index = 1
for i = 1, #petz.settings.selling_exchange_items_list do
description = petz.settings.selling_exchange_items_list[i].description
if description then
if i > 1 then
exchange_items = exchange_items .. ","
end
exchange_items = exchange_items .. description
if i == pet.exchange_item_index then
dropdown_index = i
end
end
end
tab_form = tab_form ..
"checkbox[0.375,0.5;chk_for_sale;"..S("For Sale")..";"..petz.vartostring(pet.for_sale).."]"..
"label[0.375,1.0;"..S("Item").."]"..
"textlist[0.375,1.25;3,3;txtlst_exchange_items;"..exchange_items..";"..tostring(dropdown_index).."]"..
"label[4,1;"..S("Amount").."]"..
"field[4,1.25;1,0.45;fld_exchange_item_amount;;"..tostring(pet.exchange_item_amount).."]"
--"scrollbaroptions[min=1;max=99;arrows=show;smallstep=1;largestep=1]"..
--"scrollbar[4,1.0;0.45,0.45;vertical;scrbar_exchange_item_amount;10]"
end
--Tab Header
local tab_main = S("Main")
local tab_other = S("Other")
local tab_shop = S("Shop")
local tab_header
if context.buy then
tab_header = tab_shop
else
tab_header =tab_main..","..tab_other
if not(minetest.is_singleplayer()) then
tab_header = tab_header..","..tab_shop
end
end
--minetest.chat_send_player("singleplayer", tab_header)
final_form =
"size["..(form_size.w+0.875)..","..(form_size.h+1)..";]"..
"real_coordinates[true]"..
"tabheader[0,0;tabheader;"..S("Main")..","..S("Other")..";"..tostring(context.tab_id)..";true;false]"..
"tabheader[0,0;tabheader;"..tab_header..";"..tostring(context.tab_id)..";true;false]"..
tab_form..
"style_type[button_exit;bgcolor=#006699;textcolor=white]"..
"button_exit["..(buttonexit_pos.x+0.5)..","..(buttonexit_pos.y+0.75)..";1,1;btn_close;"..S("Close").."]"
@ -261,6 +313,17 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
minetest.show_formspec(player_name, "petz:abandon_form", petz.get_abandon_confirmation())
elseif fields.btn_herding then
pet.herding = mobkit.remember(pet, "herding", minetest.is_yes(fields.btn_herding))
elseif fields.chk_for_sale then
pet.for_sale = mobkit.remember(pet, "for_sale", minetest.is_yes(fields.chk_for_sale))
elseif fields.fld_exchange_item_amount or fields.txtlst_exchange_items then
local event = minetest.explode_textlist_event(fields.txtlst_exchange_items)
if event.type == "CHG" then
--minetest.chat_send_all(event.index)
pet.exchange_item_index = mobkit.remember(pet, "exchange_item_index", event.index)
end
pet.exchange_item_amount = mobkit.remember(pet, "exchange_item_amount", mokapi.delimit_number( tonumber(fields.fld_exchange_item_amount), {min=1, max=99}) or 1)
elseif fields.btn_buy then
petz.buy(pet, player)
end
if fields.ipt_name then
pet.tag = minetest.formspec_escape(string.sub(fields.ipt_name, 1 , 12))
@ -429,7 +492,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if fields.btn_yes then
local pet = petz.pet[player_name]
if pet and (mobkit.is_alive(pet)) then
petz.abandon_pet(pet)
local msg = S("You've abandoned your").." "..pet.type
petz.abandon_pet(pet, msg)
end
else
local context = {}

View File

@ -16,11 +16,14 @@ petz.dyn_prop = {
dreamcatcher = {type= "boolean", default = false},
driver = {type= "player", default = nil},
eggs_count = {type= "int", default = 0},
exchange_item_index = {type= "int", default = 1},
exchange_item_amount = {type= "int", default = 1},
father_genes = {type= "table", default = {}},
father_veloc_stats = {type= "table", default = {}},
fed = {type= "boolean", default = true},
food_count = {type= "int", default = 0},
food_count_wool = {type= "int", default = 0},
for_sale = {type= "boolean", default = false},
gallop = {type= "boolean", default = false},
gallop_time = {type= "int", default = 0},
gallop_exhausted = {type= "boolean", default = false},
@ -243,6 +246,9 @@ function petz.set_initial_properties(self, staticdata, dtime_s)
self.tamed = mobkit.remember(self, "tamed", false)
self.owner = mobkit.remember(self, "owner", nil)
self.fed = mobkit.remember(self, "fed", true)
self.for_sale = mobkit.remember(self, "for_sale", false)
self.exchange_item_index = mobkit.remember(self, "exchange_item_index", 1)
self.exchange_item_amount = mobkit.remember(self, "exchange_item_amount", 1)
self.brushed = mobkit.remember(self, "brushed", false)
self.food_count = mobkit.remember(self, "food_count", 0)
self.was_killed_by_player = mobkit.remember(self, "was_killed_by_player", false)

View File

@ -23,6 +23,8 @@ petz.on_rightclick = function(self, clicker)
local wielded_item = clicker:get_wielded_item()
local wielded_item_name = wielded_item:get_name()
local show_form = false
local context = {}
if ((self.is_pet == true) and (self.owner == player_name) and (self.can_be_brushed == true)) -- If brushing or spread beaver oil
and ((wielded_item_name == "petz:hairbrush") or (wielded_item_name == "petz:beaver_oil")) then
petz.brush(self, wielded_item_name, pet_name)
@ -93,15 +95,17 @@ petz.on_rightclick = function(self, clicker)
else
show_form = true
end
else --Else open the Form
elseif petz.settings.selling and not(minetest.is_singleplayer()) and self.for_sale and not(self.owner == player_name) then --Buy Form
context.buy = true
show_form = true
end
if show_form == true then
else --Else open the Form
if (self.is_pet == true) and ((privs.server and self.owner and not(self.owner == player_name)) or ((self.tamed == true) and (self.owner == player_name))) then
petz.pet[player_name]= self
local context = {}
context.tab_id = 1
minetest.show_formspec(player_name, "petz:form_orders", petz.create_form(player_name, context))
show_form = true
end
end
if show_form == true then
petz.pet[player_name]= self
context.tab_id = 1
minetest.show_formspec(player_name, "petz:form_orders", petz.create_form(player_name, context))
end
end

33
petz/api/api_sell_buy.lua Normal file
View File

@ -0,0 +1,33 @@
local S = ...
petz.buy = function(self, buyer)
local buyer_name= buyer:get_player_name()
local inv_buyer= buyer:get_inventory()
local seller_name = self.owner
local seller = minetest.get_player_by_name(seller_name)
local item_index = self.exchange_item_index
local item_amount = self.exchange_item_amount
local item_name = petz.settings.selling_exchange_items_list[item_index].name
--minetest.chat_send_all(item_name)
local item_description = petz.settings.selling_exchange_items_list[item_index].description
local item_stack = ItemStack({name = item_name, count = item_amount})
if not seller then
minetest.chat_send_player(buyer_name, S("The seller is not online."))
return
elseif not(inv_buyer:contains_item("main", item_stack)) then
minetest.chat_send_player(buyer_name, S("You have not").." "..item_description.." ("..tostring(item_amount)..")")
return
end
-- Do buy
inv_buyer:remove_item("main", item_stack)
local inv_seller = seller:get_inventory()
if inv_seller:room_for_item("main", item_stack) then
inv_seller:add_item("main", item_stack)
else
local seller_pos = seller:get_pos()
minetest.item_drop(item_stack, seller, seller_pos)
end
petz.abandon_pet(self, S("You have sold your").." "..self.type.." "..S("to").." "..buyer_name..".")
mokapi.set_owner(self, buyer_name)
minetest.chat_send_player(buyer_name, S("Congratulations, you've bought a").." "..self.type)
end

View File

@ -107,7 +107,8 @@ petz.timer = function(self)
self.init_tamagochi_timer = false -- no more timing
--I the pet get bored of you
elseif (self.has_affinity == true) and (self.affinity == 0) then
petz.abandon_pet(self)
local msg = S("Your").." "..self.type.." "..S("has abandoned you!!!")
petz.abandon_pet(self, msg)
else --else reinit the timer, to check again in the future
self.init_tamagochi_timer = true
end
@ -116,11 +117,14 @@ petz.timer = function(self)
self.init_tamagochi_timer = false --the timer is reinited in the minetest.after function
end
petz.abandon_pet = function(self)
minetest.chat_send_player(self.owner, S("Your").." "..self.type.." "..S("has abandoned you!!!"))
petz.abandon_pet = function(self, msg)
if msg then
minetest.chat_send_player(self.owner, msg)
end
petz.delete_nametag(self)
mokapi.remove_owner(self) --the pet abandon you
petz.remove_tamed_by_owner(self, true)
petz.drop_dreamcatcher(self)
self.init_tamagochi_timer = false -- no more timing
self.init_tamagochi_timer = false -- no more timing
self.for_sale = false -- not for sale
end

View File

@ -4,10 +4,12 @@
Affinity=Verbundenheit
Alight=Absteigen
A silk bobbin has been created!=Eine Seidenspule wurde erstellt!
Amount=Amount
Bat=Fledermaus
Beaver Fur=Bieberpelz
Beaver Oil=Bieberöl
Beaver=Bieber
Beaver Dam Branches=Bieberdammzweige
Bee Sting=Bienenstachel
Bees=Bienen
Bees Inside=Bienen innen
@ -21,14 +23,15 @@ Bird Stand=Vogelständer
Blueberry Cheese Cake=Blaubeerkäsekuchen
Blueberry Ice Cream=Blaubeereis
Blueberry Muffin=Blaubeermuffin
Butterfly=Schmetterling
Bone=Knochen
Bottle with Moth=Flasche mit Motte
Brushed=Gebürstet
Butterfly=Schmetterling
Buy=Kaufen
Camel=Kamel
Cancel=Abbrechen
Candy Cane=Zuckerstange
Calf=Kalb
Camel=Kamel
Cat Basket=Katzenkorb
Cheese=Käse
Chicken Egg=Hühnerei
@ -41,8 +44,11 @@ Christmas Card=Weihnachtskarte
Christmas Present=Weihnachtsgeschenk
Close=Fertig
Clownfish=Clownfisch
Cobweb=Spinnennetz
Compose a message=Nachricht schreiben
Congratulations, you've bought a=Congratulations, you've bought a
Color=Farbe
Cost=Cost
Do your own thing=Mach, was du willst
Do you want to ABANDON your pet?!=Wollen Sie Ihr Haustier AUFgeben?!
Dolphin=Delfin
@ -60,6 +66,7 @@ Fish Tank=Aquarium
Fly=Fliegen
Follow me=Folg mir
Food=Nahrung
For Sale=For Sale
Foxy=Fuchs
Fried Egg=Spiegelei
Fried Egg and Bacon=Spiegelei mit Schinken
@ -75,6 +82,7 @@ Grizzly=Grizzlybär
had already been brushed.=wurde bereits gebürstet.
had already been spreaded with beaver oil.=wurde bereits mit Bieberöl eingeschmiert.
Hairbrush=Haarbürste
Hamster=Hamster
has abandoned you!!!=hat Sie verlassen!!!
has been captured=wurde gefangen
has been tamed.=wurde gezähmt.
@ -91,10 +99,11 @@ is turning into another animal=verwandelt sich in ein anderes Tier
It breeds with=Es pflanzt sich fort mit
It is pregnant=Es ist trächtig
It likes=Es mag
Item=Item
Jack-o'-lantern=Kürbislaterne
Jack-o'-lantern Grenade=Kürbislaternengranate
Kitty=Kätzchen
Kennel=Haustierhütte
Kitty=Kätzchen
Lasso=Lasso
Lamb=Lamm
Leather=Leder
@ -113,11 +122,14 @@ No room in your inventory for a Glass Syringe with seed.=No room in your invento
No room in your inventory for the silk bobbin.=Kein Platz im Inventar für die Seidenspule.
No room in your inventory for the egg.=Kein Platz im Inventar für das Ei.
No room in your inventory for the honey bottle.=Kein Platz im Inventar für das Honigglas.
No room in your inventory to buy it.=No room in your inventory to buy it.
No room in your inventory to capture it.=Kein Platz im Inventar, um es zu fangen.
No honey in the behive.=Kein Honig für den Bienenstock.
Muted=Stumm
Not brushed=Nicht gebürstet
Orders=Befehle
Other=Andere
Panda=Panda
Parchment=Pergament
Parrot=Papagei
Penguin=Pinguin
@ -158,6 +170,7 @@ Santa Killer=Santa der Killer
Satiated=Gesättigt
Shears=Schere
Shepherd's Crook=Hirtenstab
Shop=Laden
Show tag=Namensschild zeigen
Silk Bobbin=Seidenspule
Silk Boots=Seidenstiefel
@ -169,12 +182,14 @@ Silkworm Cocoon=Seidenraupenkokon
Silkworm Eggs=Seidenraupeneier
Speed Stats=Geschwindigkeitswerte
Spider Eye=Spinnenauge
Spinning Wheel=Spinnrad
Square Ball (use to throw)=Eckiger Ball (benutzen zum Werfen)
Stand here=Hier stehen
Status=Status
Tamed=Gezähmt
Tarantula=Tarantel
The=Das
The seller is not online.=The seller is not online.
The wolf turn into puppy.=Der Wolf wird zu einem Hündchen.
There are still=Es gibt immer noch
There's already a bird on top.=Da ist schon ein Vogel.
@ -185,6 +200,7 @@ This animal is already rut.=Dieses Tier ist schon brünftig.
This animal has already been milked.=Dieses Tier wurde schon gemolken.
This pet already has a Dreamcatcher.=Dieses Tier hat schon einen Traumfänger.
This pony has already four horseshoes.=Dieses Pony hat schon vier Hufeisen.
to=to
To adult=Erwachsen machen
Too far away=Zu weit weg
Total Bees=Bienen insgesamt
@ -208,6 +224,8 @@ You are not the owner of the=Sie sind nicht der Besitzer von
You cannot tame more petz! (@1 max.)=You cannot tame more petz! (@1 max.)
You got the bobbin!=Sie haben die Spule!
You have no pets with a name to call.=Sie haben kein Haustier mit Namen!
You have not=You have not
You've abandoned your=You've abandoned your
#Awards
@1/@2 buckets of milk=@1/@2 Milcheimer
The Milky Way=Die Milchstraße
@ -233,6 +251,8 @@ The Savage Stalkers=Die grausamen Jäger
The Bravehide Pride=Die mutigen Stolzen
The Hidden Tails=Die verborgenen Schweife
The Fierce Manes=Die wütenden Mähnen
You have not=You have not
You have sold your=You have sold your
You've fallen ill with Lycanthropy!=Die sind der Lykanthropie zum Opfer gefallen!
You've cured of Lycanthropy=Ihre Lykanthropie wurde geheilt!
You are now a werewolf=Sie sind nun ein Werwolf
@ -240,21 +260,15 @@ You are now a human=Sie sind jetzt ein Mensch
Werewolves only can eat raw meat!=Werwölfe können nur rohes Fleisch essen!
Werewolf=Werwolf
#Misc
Beaver Dam Branches=Bieberdammzweige
Blue Stained Wood=Blaues Holz
Blue Stained Stair=Blaue Treppe
Inner Blue Stained Stair=Innere blaue Treppe
Outer Blue Stained Stair=Äußere blaue Treppe
Blue Stained Slab=Blaue Platte
Cobweb=Spinnennetz
Gray Paving Stone=Grauer Pflasterstein
Red Gables=Rote Giebel
Red Gables Stair=Rote Giebeltreppe
Inner Red Gables Stair=Innere rote Giebeltreppe
Outer Red Gables Stair=Äußere rote Giebeltreppe
Red Gables Slab=Rote Giebelplatte
Spinning Wheel=Spinnrad
Yellow Paving=Gelbes Pflaster
Panda=Panda
Hamster=Hamster
No room in your inventory to capture it.=Kein Platz im Inventar, um es zu fangen.

View File

@ -4,10 +4,12 @@
Affinity=Afinidad
Alight=Posarse
A silk bobbin has been created!=¡Se ha creado una bobina de seda!
Amount=Cantidad
Bat=Murciélago
Beaver Fur=Piel de castor
Beaver Oil=Aceite de castor
Beaver=Castor
Beaver Dam Branches=Ramas de presa de castor
Bee Sting=Aguijón de abeja
Bees=Abejas
Bees Inside=Abejas dentro
@ -25,6 +27,8 @@ Bone=Hueso
Bottle with Moth=Botella con polilla
Brushed=Cepillado
Butterfly=Mariposa
Buy=Comprar
Camel=Camello
Cancel=Cancelar
Candy Cane=Bastoncillo dulce
Calf=Ternera
@ -40,8 +44,11 @@ Christmas Card=Tarjeta navideña
Christmas Present=Regalo navideño
Close=Cerrar
Clownfish=Pez payaso
Cobweb=Telaraña
Compose a message=Componer una felicitación
Congratulations, you've bought a=Felicitaciones, has comprado un
Color=Color
Cost=Coste
Do your own thing=Anda a tu bola
Do you want to ABANDON your pet?!=¡¿Quieres ABANDONAR a tu mascota?!
Dolphin=Delfín
@ -59,6 +66,7 @@ Fish Tank=Pecera
Fly=Volar
Follow me=Sígueme
Food=Comida
For Sale=A la venta
Foxy=Zorro
Fried Egg=Huevo frito
Fried and Egg=Huevo frito con beicon
@ -70,9 +78,11 @@ Glass Syringe=Jeringuilla de cristal
Glass Syringe with seed=Jeringuilla con semilla
Goat=Cabra
Guard=Guardia
Grizzly=Grizzly
had already been brushed.=ya había sido cepillado.
had already been spreaded with beaver oil.=ya había sido untado con aceite de castor.
Hairbrush=Cepillo para pelo
Hamster=Hamster
has abandoned you!!!=te ha abandonado!!!
has been captured=ha sido capturado
has been tamed.=ha sido domesticado.
@ -89,8 +99,10 @@ is turning into another animal=se está transformando en otro animal
It breeds with=Se cría con
It is pregnant=Está preñada
It likes=Le gusta
Item=Objecto
Jack-o'-lantern=Calabaza iluminada
Jack-o'-lantern Grenade=Granada de calabaza
Kennel=Caseta
Kitty=Gatito
Lasso=Lazo
Lamb=Cordero
@ -110,11 +122,14 @@ No room in your inventory for a Glass Syringe with seed.=No hay sitio en tu inve
No room in your inventory for the silk bobbin.=No hay sitio en tu inventario para la bobina de seda.
No room in your inventory for the egg.=No hay sitio en tu inventario para el huevo.
No room in your inventory for the honey bottle.=No hay sitio en tu inventario para el tarro de miel.
No room in your inventory to buy it.=No hay espacio en tu inventario para comprarlo.
No room in your inventory to capture it.=No hay espacio en tu inventario para capturarlo.
No honey in the behive.=No hay miel en la colmena.
Muted=Silenciado
Not brushed=No cepillado
Orders=Ordenes
Other=Otro
Panda=Panda
Parchment=Pergamino
Parrot=Loro
Penguin=Pinguino
@ -153,9 +168,9 @@ Saddle=Silla de montar
Saddlebag=Alforjas
Santa Killer=Papá Noel asesino
Satiated=Saciado
Set=Cambiar
Shears=Cizallas
Shepherd's Crook=Cayado de pastor
Shop=Tienda
Show tag=Mostrar etiqueta
Silk Bobbin=Bobina de seda
Silk Boots=Botas de seda
@ -167,12 +182,14 @@ Silkworm Cocoon=Capullo de gusano de seda
Silkworm Eggs=Huevos de gusano de seda
Speed Stats=Estadísticas veloc.
Spider Eye=Ojo de araña
Spinning Wheel=Rueca
Square Ball (use to throw)=Bola cuadrada (usar para lanzar)
Stand here=Espera aquí
Status=Estado
Tamed=Domesticado
Tarantula=Tarántula
The=El
The seller is not online.=El vendedor no está en línea.
The wolf turn into puppy.=El lobo se ha convertido en cachorrito.
There are still=Todavía faltan
There's already a bird on top.=Ya hay un pájaro encima.
@ -183,6 +200,7 @@ This animal is already rut.=Este animal ya está en celo.
This animal has already been milked.=Este animal ya ha sido ordeñado.
This pet already has a Dreamcatcher.=Esta mascota ya tiene un Cazador de Sueños
This pony has already four horseshoes.=Este poni ya tiene cuatro herraduras.
to=a
To adult=Adulto
Too far away=Demasiado lejos
Total Bees=Abejas totales
@ -206,6 +224,8 @@ You are not the owner of the=Tú no eres el propietario del
You cannot tame more petz! (@1 max.)=¡No puedes domesticar más animales! (@1 máx.)
You got the bobbin!=¡Has obtenido la bobina!
You have no pets with a name to call.=No tienes mascotas con nombre para llamar.
You have not=No tienes
You've abandoned your=Has abandonado tu
#Awards
@1/@2 buckets of milk=@1/@2 cubos de leche
The Milky Way=La Vía Lactea
@ -231,8 +251,24 @@ The Savage Stalkers=Los Acosadores Salvajes
The Bravehide Pride=El Orgullo de Pielbrava
The Hidden Tails=Las Colas Ocultas
The Fierce Manes=Las Melenas Feroces
You have not=No tienes
You have sold your=Has vendido tu
You've fallen ill with Lycanthropy!=¡Has enfermado de Licantropía!
You've cured of Lycanthropy=Te has curado de la licantropía
You are now a werewolf=Ahora eres un hombre lobo
You are now a human=Ahora eres humano
Werewolf=Hombre Lobo
Werewolves only can eat raw meat!=Los lobos solo pueden comer carne cruda
#Misc
Blue Stained Wood=Madera azul teñida
Blue Stained Stair=Escalera de madera azul teñida
Inner Blue Stained Stair=Escalera interior de madera azul teñida
Outer Blue Stained Stair=Escalera exterior de madera azul teñida
Blue Stained Slab=Losa azul teñida
Gray Paving Stone=Pavimento de piedra gris
Red Gables=Tejas rojas
Red Gables Stair=Escalera de tejas rojas
Inner Red Gables Stair=Escalera interior de tejas roja
Outer Red Gables Stair=Escalera exterior de tejas roja
Red Gables Slab=Losa de teja roja
Yellow Paving=Pavimento amarillo

View File

@ -4,10 +4,12 @@
Affinity=Affinité
Alight=Pied à terre
A silk bobbin has been created!=Une bobine de soie a été créée!
Amount=Amount
Bat=Chauve souris
Beaver Fur=Peau de castor
Beaver Oil=Huile de castor
Beaver=Castor
Beaver Dam Branches=Beaver Dam Branches
Bee Sting=Dard
Bees=Abeille
Bees Inside=Abeilles Rentrées
@ -25,6 +27,8 @@ Brushed=Brossé
Bone=Os
Bottle with Moth=Bouteille de papillon nocturne
Butterfly=Papillon
Buy=Acheter
Camel=Chameau
Cancel=Annuler
Candy Cane=Sucre d'orge
Calf=Vache
@ -40,8 +44,11 @@ Christmas Card=Carte de vœux de noël
Christmas Present=Cadeau de noël
Close=Fermer
Clownfish=Poisson clown
Cobweb=Cobweb
Compose a message=Composer un message
Congratulations, you've bought a=Congratulations, you've bought a
Color=Couleur
Cost=Cost
Do your own thing=Décides ce que tu fais
Do you want to ABANDON your pet?!=Vous voulez ABANDONNER votre animal de compagnie?!
Dolphin=Dauphin
@ -59,6 +66,7 @@ Fish Tank=Aquarium
Fly=Voler
Follow me=Suis moi
Food=Nourriture
For Sale=For Sale
Foxy=Renard
Fried Egg=Oeuf à la poêle
Fried and Egg=Oeuf à la poêle et bacon
@ -70,9 +78,11 @@ Glass Syringe=Seringue
Glass Syringe with seed=Seringue ensemencée.
Goat=Chèvre
Guard=Garde
Grizzly=Grizzly
had already been brushed.=a déjà été brossé.
had already been spreaded with beaver oil.=a déjà été enduit d'huile de castor.
Hairbrush=Brosse
Hamster=Hamster
has abandoned you!!!=vous a abandonnée!!!
has been captured=a été capturé
has been tamed.=a été apprivoisé.
@ -89,8 +99,10 @@ is turning into another animal=s'est transformé en un autre animal
It breeds with=Se multiplie avec
It is pregnant=Est enceinte
It likes=Aime
Item=Item
Jack-o'-lantern=Citrouille illuminée
Jack-o'-lantern Grenade=Grenade de citrouille
Kennel=Kennel
Kitty=Chat
Lasso=Lasso
Lamb=Mouton
@ -110,11 +122,14 @@ No room in your inventory for a Glass Syringe with seed.=No room in your invento
No room in your inventory for the silk bobbin.=Pas de place dans l'inventaire pour la bobine de soie.
No room in your inventory for the egg.=Pas de place dans l'inventaire pour l'œuf.
No room in your inventory for the honey bottle.=Pas de place dans l'inventaire pour la bouteille de miel.
No room in your inventory to buy it.=No room in your inventory to buy it.
No room in your inventory to capture it.=No room in your inventory to capture it.
No honey in the behive.=Pas de miel dans la ruche.
Muted=Muet
Not brushed=Non brossé
Orders=Ordres
Other=Autres
Panda=Panda
Parchment=Parchemin
Parrot=Perroquet
Penguin=Pingouin
@ -153,9 +168,9 @@ Saddle=Selle
Saddlebag=Sac pour selle
Santa Killer=Papa Noël tueur
Satiated=Rassasié
Set=Régler
Shears=Ciseaux
Shepherd's Crook=Bâton de berger
Shop=Magasin
Show tag=Voir le nom.
Silk Bobbin=Bobine de soie
Silk Boots=Bottes de soie
@ -167,12 +182,14 @@ Silkworm Cocoon=Cocon de ver à soie
Silkworm Eggs=Oeufs de vers à soie
Speed Stats=Stats Rapidité
Spider Eye=Oeil d'araignée
Spinning Wheel=Spinning Wheel
Square Ball (use to throw)=Balle carrée (à lancer)
Stand here=Attendre ici
Status=Statut
Tamed=Apprivoisé
Tarantula=Tarentule
The=Le
The seller is not online.=The seller is not online.
The wolf turn into puppy.=Le loup est devenu un chien.
There are still=Il y a encore
There's already a bird on top.=Il y a déjà un oiseau dessus.
@ -183,6 +200,7 @@ This animal is already rut.=Animal déjà en rut.
This animal has already been milked.=Animal déjà trait.
This pet already has a Dreamcatcher.=Cet animal possède déjà un attrapeur de rêves.
This pony has already four horseshoes.=Ce poney a déjà quatre fers à cheval.
to=to
To adult=Adulte
Too far away=Trop loin
Total Bees=Total abeilles
@ -206,6 +224,8 @@ You are not the owner of the=Vous n'êtes pas le propriétaire de
You cannot tame more petz! (@1 max.)=You cannot tame more petz! (@1 max.)
You got the bobbin!=Vous obtenez une bobine!
You have no pets with a name to call.=Vous n'avez pas d'animaux nommés à appeler.
You have not=You have not
You've abandoned your=You've abandoned your
#Awards
@1/@2 buckets of milk=@1/@2 seau de lait
The Milky Way=La voie lactée
@ -231,8 +251,24 @@ The Savage Stalkers=Les pisteurs sauvages
The Bravehide Pride=La fierté de s'être bien caché
The Hidden Tails=Les queux invisibles
The Fierce Manes=Les crinières féroces
You have not=You have not
You have sold your=You have sold your
You've fallen ill with Lycanthropy!=Vous êtes atteint de lycanthropie!
You've cured of Lycanthropy=Vous êtes guéris de la lycanthropie.
You are now a werewolf=Vous êtes maintenant un loup-garou.
You are now a human=Vous êtes humain.
Werewolf=Werewolf
Werewolves only can eat raw meat!=Les loups-garous peuvent manger uniquement de la viande crue!
#Misc
Blue Stained Wood=Blue Stained Wood
Blue Stained Stair=Blue Stained Stair
Inner Blue Stained Stair=Inner Blue Stained Stair
Outer Blue Stained Stair=Outer Blue Stained Stair
Blue Stained Slab=Blue Stained Slab
Gray Paving Stone=Gray Paving Stone
Red Gables=Red Gables
Red Gables Stair=Red Gables Stair
Inner Red Gables Stair=Inner Red Gables Stair
Outer Red Gables Stair=Outer Red Gables Stair
Red Gables Slab=Red Gables Slab
Yellow Paving=Yellow Paving

View File

@ -4,10 +4,12 @@
Affinity=Отношения
Alight= Свет
A silk bobbin has been created!=Шелковая катушка была создана!
Amount=Amount
Bat=Летучая мышь
Beaver Fur=Бобровая шкурка
Beaver Oil=Бобровый жир
Beaver=Бобер
Beaver Dam Branches=Beaver Dam Branches
Bee Sting=Жало пчелы
Bees=Пчела
Bees Inside=Пчёлы внутри
@ -25,7 +27,9 @@ Bone= Кость
Bottle with Moth=Бутылка с мотылем
Brushed=Почищенный
Butterfly= бабочка
Buy=Купить
Cancel=Отменить
Camel=Верблюд
Candy Cane=Конфетная трость
Calf=Теленок
Cheese=Сыр
@ -40,8 +44,11 @@ Christmas Card=Рождественская открытка
Christmas Present=Новогодний подарок
Close=Закрыть
Clownfish=Рыба-клоун
Cobweb=Cobweb
Compose a message=Подготовить сообщение
Congratulations, you've bought a=Congratulations, you've bought a
Color=Цвет
Cost=Cost
Do your own thing=Отпустить погулять
Do you want to ABANDON your pet?!=Ты хочешь отойти от своего питомца?!
Dolphin=Дельфин
@ -59,6 +66,7 @@ Fish Tank= Рыбный бак
Fly=Летаем
Follow me=Следуй за мной
Food=Еда
For Sale=For Sale
Foxy=Лисица
Fried Egg=Яичница
Fried and Egg= Яичница с беконом
@ -70,9 +78,11 @@ Glass Syringe=Стеклянный шприц
Glass Syringe with seed=Стеклянный шприц с семенами
Goat=Козёл
Guard=Сохранить
Grizzly=Grizzly
had already been brushed.=уже расчесывали.
had already been spreaded with beaver oil.=уже были смазаны бобровым жиром.
Hairbrush= Щётка для волос
Hamster=Hamster
has abandoned you!!!=бросил тебя...!!!
has been captured=был пойман
has been tamed.=был приручен.
@ -89,8 +99,10 @@ is turning into another animal=превращается в другое живо
It breeds with=Разводить используя
It is pregnant=Скоро родит
It likes=Ему нравится...
Item=Item
Jack-o'-lantern=Фонарь из тыквы
Jack-o'-lantern Grenade=граната
Kennel=Kennel
Kitty=Котёнок
Lasso=Лассо
Lamb=Ягнёнок
@ -110,11 +122,14 @@ No room in your inventory for a Glass Syringe with seed.=No room in your invento
No room in your inventory for the silk bobbin.=В вашем инвентаре нет места для шелковой катушки.
No room in your inventory for the egg.=В вашем инвентаре нет места для яйца.
No room in your inventory for the honey bottle.=В вашем инвентаре нет места для баночки меда.
No room in your inventory to buy it.=No room in your inventory to buy it.
No room in your inventory to capture it.=No room in your inventory to capture it.
No honey in the behive.=Мёда больше нет в улье!
Muted=Приглушённый
Not brushed=Не причёсанный
Orders=Приказы
Other=Другое
Panda=Панда
Parchment=Пергамент
Parrot=Попугай
Penguin=Пингвин
@ -153,9 +168,9 @@ Saddle=Седло
Saddlebag=Мешок
Santa Killer=Злой Санта
Satiated=Накормлен
Set=Установка
Shears=Ножницы
Shepherd's Crook=Пастуший жезл
Shop=Магазин
Show tag=Отобразить кличку
Silk Bobbin=Шелковая катушка
Silk Boots=Шелковые сапоги
@ -167,12 +182,14 @@ Silkworm Cocoon=Кокон шелкопряда
Silkworm Eggs=Яйца шелкопряда
Speed Stats=Статистика скорости.
Spider Eye=Spider Eye
Spinning Wheel=Spinning Wheel
Square Ball (use to throw)=Квадратный мяч (используется для броска)
Stand here=Ждать здесь
Status=Статус
Tamed=Прирученный
Tarantula=Тарантул
The=The
The seller is not online.=The seller is not online.
The wolf turn into puppy.=Волк превращается в щенка.
There are still=Они все еще пропали без вести.
There's already a bird on top.=Там уже птица наверху.
@ -183,6 +200,7 @@ This animal is already rut.=Это животное и так уже не в с
This animal has already been milked.=Это животное уже доилось.
This pet already has a Dreamcatcher.=У этого домашнего животного уже есть "Ловец снов".
This pony has already four horseshoes.=У этого пони уже четыре подковы.
to=to
To adult=Вырастет через:
Too far away=Слишком далеко.
Total Bees=Всего пчел
@ -206,6 +224,8 @@ You are not the owner of the=Вы не являетесь владельцем
You cannot tame more petz! (@1 max.)=You cannot tame more petz! (@1 max.)
You got the bobbin!=Катушка у тебя!!
You have no pets with a name to call.=У вас нет домашних животных с именем, которое можно было бы назвать.
You have not=You have not
You've abandoned your=You've abandoned your
#Awards
@1/@2 buckets of milk=@1/@2 ведра молока
The Milky Way=Млечный Путь
@ -231,8 +251,24 @@ The Savage Stalkers=Сталкеры-дикари
The Bravehide Pride=Храбрый прайд
The Hidden Tails=Скрытые хвосты
The Fierce Manes=Суровые гривы
You have not=You have not
You have sold your=You have sold your
You've fallen ill with Lycanthropy!=Ты заболел ликантропией!
You've cured of Lycanthropy=Ты излечился от ликантропии.
You are now a werewolf=Теперь ты оборотень
You are now a human=Теперь ты человек
Werewolf=Werewolf
Werewolves only can eat raw meat!=Оборотни могут есть только сырое мясо!
#Misc
Blue Stained Wood=Blue Stained Wood
Blue Stained Stair=Blue Stained Stair
Inner Blue Stained Stair=Inner Blue Stained Stair
Outer Blue Stained Stair=Outer Blue Stained Stair
Blue Stained Slab=Blue Stained Slab
Gray Paving Stone=Gray Paving Stone
Red Gables=Red Gables
Red Gables Stair=Red Gables Stair
Inner Red Gables Stair=Inner Red Gables Stair
Outer Red Gables Stair=Outer Red Gables Stair
Red Gables Slab=Red Gables Slab
Yellow Paving=Yellow Paving

View File

@ -25,6 +25,13 @@ type_api = mobkit
##Capture Mobs
rob_mobs = false
##Capture Mobs
rob_mobs = false
##Selling
selling = true
selling_exchange_items = default:copper_lump,default:copper_ingot,default:iron_lump,default:steel_ingot,default:gold_lump,default:gold_ingot,default:diamond
#Spawn Engine
##Spawn Monsters?

View File

@ -28,6 +28,17 @@ petz.settings.igniter_damage = tonumber(settings:get("igniter_damage")) --lava &
petz.settings.type_api = settings:get("type_api", "mobs_redo")
--Capture Mobs
petz.settings.rob_mobs = settings:get_bool("rob_mobs", false)
--Selling
petz.settings.selling = settings:get_bool("selling", false)
petz.settings.selling_exchange_items = string.split(settings:get("selling_exchange_items", ""), ",")
petz.settings.selling_exchange_items_list = {}
for i = 1, #petz.settings.selling_exchange_items do
local exchange_item = petz.settings.selling_exchange_items[i]
local exchange_item_description = minetest.registered_items[exchange_item].description
if exchange_item_description then
petz.settings.selling_exchange_items_list[i] = {name = exchange_item, description = exchange_item_description}
end
end
--Spawn Engine
petz.settings.spawn_interval = tonumber(settings:get("spawn_interval"))
petz.settings.spawn_chance = tonumber(settings:get("spawn_chance"))