Mir 3 DarkSide
Likes Likes:  0
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    LOMCN Senior Member Inflikted's Avatar
    Join Date
    Aug 2003
    Posts
    256

    Re: Inflikted's Idiot Guide to .txt Manipulation

    yup ida summed it up nicely

    i might correct my tutorial a bit later. i think people are getting a bit confused with the first part of the script, and assuming you can't check a name on a list any other way. the method ida described is a bit longer, but accurate for guild's or anything else you want to check. the username check that i had is just a more simplified version that saves a few lines of text, but obviously it can't be used everywhere.
    Last edited by Inflikted; 13-11-2008 at 03:05 PM.

  2. Want your banner advert here? CLICK!
  3. #17
    Dedicated Member budyniowski's Avatar
    Join Date
    Dec 2007
    Location
    Warsaw, Poland
    Posts
    149

    Re: Inflikted's Idiot Guide to .txt Manipulation

    I have 1 question: .txt file can store only 255 names/guilds/IDs/etc. or more than 255? its important for me because we rewrite integral system on ower serwer from database to txt files (its save integral value in txt files).
    Someone know?
    thanks.

  4. #18
    Mir3 Guru - Sting3G idaBigA's Avatar
    Join Date
    Oct 2003
    Location
    Stoke, UK
    Posts
    1,833

    Re: Inflikted's Idiot Guide to .txt Manipulation

    I don't "think" there is a limit. Only way to test is to run it, although I would recommend using SQL, I find it easier to search and update many users at once..
    www.sting3g.com - PhoenixRising Server & Sting3G Server

  5. #19
    Golden Oldie Amenovis's Avatar
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    1,106

    Re: Inflikted's Idiot Guide to .txt Manipulation

    i miss something in that script. I know addnamelist and checknamelist from woool server files. there is also the command DelNameList for delete a name from a list. Before i read that post i have not known that on Lomservers that 3 Commands work also *lol

    A nice example for use it, is in that way quests what you normal do with flags but as all from us know that work longer with lom flags are only some available and it have a limit. txt files never have a limit!

    ScriptExample:

    [@main]
    #if
    Checknamelist finished.txt ;;Here is a check if the user allread had done that quest
    #say
    You have done the Quest!
    #elseact goto @queststart

    [@queststart]
    #say
    hi m8 you wanna make a quest?
    <yes/@yes>\
    <No/@exit>\

    [@yes]
    #if
    checknamelist start.txt ;;Here check"the user had allready start so he will bring questitems"
    #say
    You bring me what i told you to ?
    <Yes/@yes2>
    #elsesay
    If you wanna help me bring me 20 X items
    <Exit/@exit>
    #elseact
    addnamelist start.txt
    break
    [@yes2]
    #if
    Checkitem X 20
    #say
    Nice that you had survive it and bring me what i need!
    <exit/@exit>
    #act
    take item x 20
    delnamelist start.txt ,,had get reward
    addnamelist finished.txt ;;had finished quest for check in first part
    give "Reward"
    #elsesay
    something is missing you have not the items!
    <Exit/@exit>
    only a small example. that it work you must create for sure that both txt files (start.txt and finished.txt)
    and now for the once that are better in that as me.

    How does a command in writeline (chatline) can start a script?
    i mean now example:

    someone write as example @adduser "Name" (i have seen on Hasekura server)

    how can than a popup window come and ask :"You wanna add that member to guild?"


    //i will not copy that part but i think it usefull cause than also commands like that can have a much deeper use as example for events guildevent quests and more
    Last edited by Amenovis; 22-09-2009 at 04:07 PM.

Page 2 of 2 FirstFirst 12

Posting Permissions

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