Jump to content

Svarog

Member
  • Posts

    1885
  • Joined

  • Last visited

About Svarog

  • Birthday 06/01/1993

Contact Methods

  • AIM
    Pretty good at point blank range.
  • MSN
    No.
  • ICQ
    Actually I don't seek you. You're the one reading my profile.
  • Yahoo
    It still exists?
  • Jabber
    What?
  • Skype
    I ceased using it.
  • Twitter
    Is a nice echochamber if you block everyone who disagrees.

Profile Information

  • Gender
    Cisgender Male
  • Interests
    KPop

Recent Profile Visitors

15441 profile views

Single Status Update

See all updates by Svarog

  1. Hi Svarog!

    I've done  a few items, and i can spawn on my inventory and they work correctly.

     

    I only need the last step:

     

    I dont know how can i configure that they spawn of natural form.

     

    In mymod/lua/server/items i have this archive: MymodDistribution

     

    And, for example, for the Amstel Beer i have this code:

    require 'Items/SuburbsDistributions'
    /*************Cerveza*************/
    table.insert(SuburbsDistributions["all"]["fridge"].items, "Cervezas.Amstel");
    table.insert(SuburbsDistributions["all"]["fridge"].items, 3);
    table.insert(SuburbsDistributions["gasstore"]["fridge"].items, "Cervezas.Amstel");
    table.insert(SuburbsDistributions["gasstore"]["fridge"].items, 3);
    table.insert(SuburbsDistributions["bar"]["counter"].items, "Cervezas.Amstel");
    table.insert(SuburbsDistributions["bar"]["counter"].items, 3);
    table.insert(SuburbsDistributions["bar"]["fridge"].items, "Cervezas.Amstel");
    table.insert(SuburbsDistributions["bar"]["fridge"].items, 3);
    table.insert(SuburbsDistributions["kitchen"]["counter"].items, "Cervezas.Amstel");
    table.insert(SuburbsDistributions["kitchen"]["counter"].items, 3);

     

    can you help me please? i really want to do my first mod! :)

    1. Show previous comments  2 more
    2. Svarog

      Svarog

      If you want to comment something in lua don't do it like this

      /Something

       

      To make a line into a comment you need to use -- when a line starts with -- everything that comes after -- will be ignored.

      --Something


      The /*******Something*********/ lines break your code.

    3. Moleon

      Moleon

      Ok, i really desperate.

       

      I only try with one object, and the result is always the same. I spawn in the same place and tho mod didnt work.

       

      Please, can you check it and say to me something?

      I dont know what else to try :/

       

      Seroiously, i am desperate

      My mod.rar

    4. Moleon

      Moleon

      Finaly i did it!!!!

       

      Thank you so much Svarog! Serously, without you I would never have created my mod.

       

      I'll put your name in my credits mod as a sign of gratitude.
       

      Thank you very much!!! :D

×
×
  • Create New...