xconf and shop.txt

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

Message
Author
c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

xconf and shop.txt

#1 Post by c4c1n6kr3m1 »

i'm noob don't understand perl and regexp
i tried sconf command to edit shop.txt
it does not work because shop.txt use tab-delimited.
so i need to edit xconf and separate the $value.
i use this
my ($vall, $prize) = split(/\s+/, $value);
and this work for me. :)
imagine that i only need 1 bot to shop all, and only keywords to change for vending items to armors to quest items to weapons etc.
so it work for me, but as i said i'm noob, want to ask
split(/\s+/, $value)
it should be better way to do it, sorry for bad english