[2.3] Just wondering

smoochy boys on tour

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
I want a npc to add names/del to/from a .txt document for example:

[@main]
<main2/@main2>\

[@main2]
#IF
CHECKNAMELIST hello.txt
#ACT
(add name to list) dont know the command for it though
also if you know how to delete names aswell would add code in please
#ELSESAY
your name is on the list

basically if some1 clicks main2 there name is checked on the list then if it isnt on there it adds it to the list rest of the script i can make just dont know the code u would use >.< also if you made a example of using it would be great. Thanks

---------- Post added at 03:41 PM ---------- Previous post was at 03:30 PM ----------

lol nvr all took some thinking but found out the line of code needed :D
 

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,201
61
155
uk
[@main]
#IF
CHECKNAMELIST hello.txt
#SAY
Your name is already added to the list
#ELSEACT
ADDNAMELIST hello.txt
 
Upvote 0

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
Help pls!

Right lol tryd out lots of lines of code which seem right but isnt now i turn to lomcn :D.
I want to delete all the infomation from a list.

i got a test trying it out code is:

[@main]
<del/@main2>\
<Add/@main3>\
<Clear all/@main4>\

[@main2]
#IF
#ACT
DELNAMELIST hello.txt

[@main3]
#IF
#ACT
ADDNAMELIST hello.txt

[@main4]
#IF
#ACT
clearr all information from list (dont know code that wat need help with) hello.txt

thanks
 
Upvote 0

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
NEED HELP AGAIN lol

right got the npc making a list of name but i want it so that it can add the same name in the list twice or even more.

for example in the hello.txt file wen i ADDNAMELIST hello.txt

it puts the name in there but at the top and i cant add the same name in again just stays same
was wondering if you can make it so that it add the same name in again and again on a new line in the hello.txt
 
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,201
61
155
uk
Re: NEED HELP AGAIN lol

You've made 3 topics now all to do with namelists in future can you just use the same one please.

You can only add the same name to a list once.
 
Last edited:
Upvote 0