So... we see you haven't signed up here on our website.  

Do you really want to sit here and be "Unregistered" all your life?  No, of course you don't!  So, click this here link and you'll take that all important first step into enlightenment! (or something, whatever...)

Inventory and Spawning Item Help

Discussion in 'General' started by Shabobawob, Jan 15, 2018.

  1. Shabobawob

    Shabobawob New Member

    Points:
    13
    Hey Trekkan,

    Thanks for the reply, I actually did figure that part out!

    I guess now I have a couple issues... When I go to view my player's inventory... I can't see any pictures.

    The next is spawning items.

    Any help would be greatly appreciated!
     
  2. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,197
  3. Shabobawob

    Shabobawob New Member

    Points:
    13
  4. Shabobawob

    Shabobawob New Member

    Points:
    13
    Trek... I feel so dumb... All I had to do was restart the server. Thank you for all the help.

    I guess my next line of business is doing /home, /sethome, etc.

    Can you offer any help with this?
     
  5. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,197
    Hey, I'm just glad its working for ya. =)

    As to the /home type of stuff, that's already built in as the teleport system. You can enable it on the Teleport/misc tab.

    Then click the gear icon (Event Editor), and look for the "Player Public Chat" events. There are four teleport commands already there, !t, !at, !rt and !lt. You can edit/change them to whatever you want. =)
     
  6. Shabobawob

    Shabobawob New Member

    Points:
    13
    So I did enable it... I guess one of the things that's getting me is that I would like to do all / "commands". Like /commands - Gives user a list of commands... /home - brings you home... /sethome - sets home location... /safe - sets up a home base.

    I did get "/set xxxx" to work for setting locations and I did get "/go xxx" to work for going to locations... So I am getting it, but I would like all commands to start with "/", and not need a space, is there a way?
     
  7. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,197
    You would need to edit each of the commands under "Player Public Chat" type, and change the ! to a /, then they'll do that.

    You can make a new command, for instance /help and then in the script section, add a row for each item, like:

    say "/home - brings you home"
    say "/sethome - sets home location"
     
  8. Shabobawob

    Shabobawob New Member

    Points:
    13
    Trek,

    Thanks for all your help again! I might need to possibly do a remote session with you to see how you would write some of these command scripts. I am at a point that I'm happy with for now though.

    I guess the last question I have is setting a location as "Safe" for players to start at. The coordinate format "xxxx xxxx xxxx" is a little confusing. How do I correlate this with map locations. I generally only see locations as 2D on the map, this seems to be 3D (having a z-axis). Please let me know if I'm reading this incorrectly.

    Thanks for all your help so far. You are a savior!
     
  9. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,197
    No problem, glad to help! =) Ask any questions you have, also feel free to hang out on our Discord channel (link on the right of the main page here).

    The easiest way to get the coordinates would be to go where you want the location to be with your character. Then look in RAT and right click your name, then Copy To Clipboard -> Position. That'll add the position in the format it should be to your clipboard, then paste it where you want it to go.

    If you want a safe place for players to start, I would do what I said above, then go to the the teleport tab and create a teleport there. This way you can set the name of it.

    Then, in the event editor, create an event similar to below (I'm typing this up off the top of my head, could have a mistake)

    Type: Player Public Chat
    Conditional: STARTSWITH:!safe:LEVEL:<=1
    Script: teleportplayer {{player_name}} {tele_nameoftheteleportyoujustcreatedinthestepabove}
     
  10. Shabobawob

    Shabobawob New Member

    Points:
    13
    Thanks buddy! Will try this tomorrow! Seriously, you're the best!
     
    • Like Like x 1

Share This Page