Jump to content

Moleon

Member
  • Posts

    10
  • Joined

  • Last visited

Posts posted by Moleon

  1. This is awesome!!! i cant wait! :D
    But one question...

     

    We'll gonna see the chainsaws in a near future?

    I really love the chainsaws and i can't wait to use them to kill everything! :D

     

    PD: Im going to call my chainsaw "Draven" :)

     

  2. Howdy!

     

    At my last post I ask help to create a mod items. Now, i can create any item that i want!

     

    But I have a problem, doesn't matter how many items I put, Only one Spawn; The first that I put:

    require 'Items/SuburbsDistributions'
    --
    table.insert(SuburbsDistributions["all"]["fridge"].items, "Cerveza.Amstel");
    table.insert(SuburbsDistributions["all"]["fridge"].items, 10);
    table.insert(SuburbsDistributions["gasstore"]["fridge"].items, "Cerveza.Amstel");
    table.insert(SuburbsDistributions["gasstore"]["fridge"].items, 10);
    table.insert(SuburbsDistributions["bar"]["counter"].items, "Cerveza.Amstel");
    table.insert(SuburbsDistributions["bar"]["counter"].items, 10);
    table.insert(SuburbsDistributions["bar"]["fridge"].items, "Cerveza.Amstel");
    table.insert(SuburbsDistributions["bar"]["fridge"].items, 10);
    table.insert(SuburbsDistributions["bar"]["shelves"].items, "Cerveza.Amstel");
    	
    table.insert(SuburbsDistributions["bar"]["shelves"].items, 10);
    table.insert(SuburbsDistributions["kitchen"]["fridge"].items, "Cerveza.Amstel");
    table.insert(SuburbsDistributions["kitchen"]["fridge"].items, 10);
    --
    table.insert(SuburbsDistributions["all"]["fridge"].items, "Cerveza.Beelzebub");
    table.insert(SuburbsDistributions["all"]["fridge"].items, 10);
    table.insert(SuburbsDistributions["gasstore"]["fridge"].items, "Cerveza.Beelzebub");
    table.insert(SuburbsDistributions["gasstore"]["fridge"].items, 10);
    table.insert(SuburbsDistributions["bar"]["counter"].items, "Cerveza.Beelzebub");
    table.insert(SuburbsDistributions["bar"]["counter"].items, 10);
    table.insert(SuburbsDistributions["bar"]["fridge"].items, "Cerveza.Beelzebub");
    table.insert(SuburbsDistributions["bar"]["fridge"].items, 10);
    table.insert(SuburbsDistributions["bar"]["shelves"].items, "Cerveza.Beelzebub");
    	
    table.insert(SuburbsDistributions["bar"]["shelves"].items, 10);
    table.insert(SuburbsDistributions["kitchen"]["fridge"].items, "Cerveza.Beelzebub");
    table.insert(SuburbsDistributions["kitchen"]["fridge"].items, 10);

    I try put together, but only the first item appears naturally. I can spawn all the items of the mod on my inventary. And with many test I see that the only affect on my mod is this code.

     

    Someone can tell me something?

    Thank you very much!

  3. Hi again Svarog!

     

    I have been seeing your littering mod, and now i try this:

     

    In "ProjectZomboid\mods\Mymod\media\scripts"

    Cervezas.txt ->

    Spoiler

     

    
    module Cervezas
    {
        imports
        {
            Base
    
        }
    	item FullBeer
    	{
    	HungerChange	        =	-5,
    	Weight	        	=	0.8,
    	Type	        	=	Food,
    	ThirstChange		=	-20,
    	DisplayName		=	Beer,
    	Alcoholic		=	TRUE,
            UnhappyChange		=	-10,
    	ReplaceOnUse		=	BeerEmpy,
    	Icon	        	=	Beer,
    	CustomContextMenu 	= 	Drink,
    	CustomEatSound    	= 	PZ_DrinkingFromBottle,
    	AlcoholPower      	= 	1,
    	}
    
    	item EmpyBeer
    	{
    	HungerChange	        =	-5,
    	Weight	        	=	0.8,
    	Type	        	=	Food,
    	ThirstChange		=	-20,
    	DisplayName		=	Beer Empy,
    	Alcoholic		=	TRUE,
            UnhappyChange		=	-10,
    	ReplaceOnUse		=	FullBeer,
    	Icon	        	=	Beer,
    	CustomContextMenu 	= 	Drink,
    	CustomEatSound    	= 	PZ_DrinkingFromBottle,
    	AlcoholPower      	= 	1,
    	}
    }

     

    "ProjectZomboid\mods\Mymod\media\lua\server\items"

    MymodDistribution.txt

    Spoiler

     

    
    require 'Items/SuburbsDistributions'
    ------------------------ CustomEdibles ------------------------
    ------------------------ FullBeer ------------------------
    table.insert(SuburbsDistributions["kitchen"]["counter"].items, "Cervezas.FullBeer");
    table.insert(SuburbsDistributions["kitchen"]["counter"].items, 2);
    table.insert(SuburbsDistributions["all"]["fridge"].items, "Cervezas.FullBeer");
    table.insert(SuburbsDistributions["all"]["fridge"].items, 3);
    table.insert(SuburbsDistributions["bar"]["counter"].items, "Cervezas.FullBeer");
    table.insert(SuburbsDistributions["bar"]["counter"].items, 5);

     

     

     

    "ProjectZomboid\mods\Mymod\media\lua\client"

    EdiblesNecroForgePlugIn.txt ->

    Spoiler
    
    Events.OnGameStart.Add( function ()
    	print ("Adding Edibles Items to NecroForge");
    	if NecroList then
    		if NecroList.Items.FullBeer then	
    		else
    			NecroList.Items.FullBeer = {"Food", nil, nil, "Beer", "Cervezas.FullBeer", "Item_Beer", nil, nil, nil};
    		end		
    	end
    end)

     

    And the mod file:

    Spoiler
    
    name=Mymod
    poster=poster.png
    id=Mymod
    description=A mod for Freak stufffsssss!!!
    url= The url resides in your hearth!

     

    Can you tell me waht i do wrong?

     

    Thank you very much! :D

  4. Thank you so much Svarog!!!

     

    I'm gonna try this weekend to do something and i'll tell you my progress.

     

    I really want to contribute with something to the community, because i really love this game!

    :)

     

  5. Howdy!

     

    I really want to make some mods, like a manga books, anime cds and more freak items.

     

    I dont know how i can start... where i can learn how the code works?

    What is the name of the programming lenguage?

     

    i really want to know the first step that i have to do.

     

    In the future i really want to contribute to the hydrocraft! :D

     

    Thank you very much!

×
×
  • Create New...