Results 1 to 4 of 4

Thread: trying to write a script to add everyone in the room to the group

  1. #1

    Smile trying to write a script to add everyone in the room to the group

    So I have this:

    GameObj.pcs.each { |pc| fput "group #{pc.name}" }


    And it's not working. Any ideas why?
    Last edited by dex; 07-27-2018 at 12:52 PM.

  2. #2
    Join Date
    Mar 2008
    Location
    Virginia, USA
    Posts
    287

    Default

    May I suggest this thread for you: http://forum.gsplayers.com/showthrea...ners-with-info

    But here's what you are looking for:
    Code:
    ;alias add --global groupall = ;e GameObj.pcs.each { |pc| fput "group #{pc.noun}" }
    Websites
    Lich Wiki Info
    EO Scripts Github Repository - Collaborative script development by the community.
    EO Lich5 Github Repository - Collaborative Lich Development for GS4 & DR for modern Ruby.
    Elanthia Online Forums Archive

    Player of Tysong

  3. #3
    Join Date
    Mar 2008
    Location
    Virginia, USA
    Posts
    287

    Default

    also the .name will do the full name (with title), you wanted .noun. Otherwise it will try to do GROUP LORD TYSONG when you just wanted GROUP TYSONG
    Websites
    Lich Wiki Info
    EO Scripts Github Repository - Collaborative script development by the community.
    EO Lich5 Github Repository - Collaborative Lich Development for GS4 & DR for modern Ruby.
    Elanthia Online Forums Archive

    Player of Tysong

  4. #4

    Default

    that was it, should've been using noun, thanks

Similar Threads

  1. Replies: 3
    Last Post: 04-20-2020, 11:50 PM
  2. Using SLib to write your first script
    By SpiffyJr in forum The Lich Project
    Replies: 2
    Last Post: 06-04-2010, 09:35 PM
  3. I WRITE SCRIPT GOOD!
    By Chaotic Tempo in forum Miscellaneous Scripts
    Replies: 9
    Last Post: 12-27-2009, 08:43 PM
  4. The first script I have attempted to write
    By Blud in forum Scripting Discussion
    Replies: 19
    Last Post: 02-13-2008, 08:50 AM
  5. Someone Needs to write a script that does my laundry for me.
    By AlahnnaDenale in forum Scripting Discussion
    Replies: 18
    Last Post: 09-05-2004, 12:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •