PlayerInfo NPC Script

CandyMan

LOMCN Veteran
Veteran
Dec 29, 2004
330
1
65
Middlesbrough
lo, just wondering how to script a highest player info npc
example : highest level online highest dc/sc/mc online.

cant figure what the scripts are.
can somebody leave me a script with one pls or leave me some cmds.
ty

/HabTrix
 

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
185
Southampton UK
make an npc as norm like for example:

[@main]
#say
hello <$USERNAME> welcome to the info npc\
there are currently <$USERCOUNT> players online.\
Would you like to know the highest players stats ?\ \
<yes/@next> - <no/@exit>\ \

[@next]
This information only counts the people currently logged on: \ \
<$HIGHLEVELINFO>\ \
<Back/@main> - <Thanks/@exit>\\

this is for td's files, i dont know if it is on the normal dm2 files

ok so thats a basic script for it, the command <$HIGHLEVELINFO> takes info from the string file, seach the string file (ctrl +F) and search for MyInfo=

after this you need to have this text:
HighPlayer %name, Location %map Level %level Dc %mindc-%maxdc Mc %minmc-%maxmc Sc%minsc-%maxsc

so now the sting like should look like:
MyInfo=HighPlayer %name, Location %map Level %level Dc %mindc-%maxdc Mc %minmc-%maxmc Sc%minsc-%maxsc

save the string file, the change will take effect after a reboot

you can remove the bits from it like %level etc if you dont want it to be displayed you can add your own text in so you could have "highestplayer %name etc etc, but remember the display on the game screen will not add a return it will just send the text accross the screen it wont go to a new line etc

hope this makes sence

koni
 
Upvote 0