Thread: How to
View Single Post
  #1  
Old 03-29-2003, 02:40 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
How to

Hi.. i made a admin message script and i need some help..
This is not the whole script so don't delete thread..

In the npc i have this:
NPC Code:

if (playerenters) {
toweapons -adminmsg;
}
if (!strequals(#s(client.sm),)&&client.smz==0.6) {
timeout=3;
}
if (timeout&&client.smz>0) {
client.smz=client.smz-0.1;
timeout=0.1;
}
if (client.smz==0) {
setstring client.sm,;
client.smz=0.6;
}



And then in another (test npc):
NPC Code:

if (playerchats&&startswith(/msg,#c)) {
tokenize #c;
setstring client.sm,#t(1);
client.smz=0.6;
}



The test NPC's job is to change the string.. and when it's changed, 3 seconds shall pass and the text should be smaller untill it dissapears.. but now it don't even change a bit...

Help?
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote