need some help with an npc. someone really skilled?

Play Now

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
i want to make an npc that gives a server shout as soon as it reaches a certain time. eg 8pm. id like it to do this without any human input.

i can get it to server shout when someone logs in at the correct time, but with people already logged in i cant think of a way to automatically show a message at 8pm.

id like this to work the same as magic ship does, just with fixed co ords.

any ideas? this is for a job server.
 

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
how would that work without any human input though? someone would have to click the npc exactly at 8pm for it to work.
 
Upvote 0

Demonic

LOMCN VIP
VIP
Dec 1, 2003
1,806
2
165
Hint - the Lottery System does this in effect....

#if
DAYOFWEEK fri
#ACT
goto @Openstheprizecirculation
break

[@Openstheprizecirculation]
#if
DAYOFWEEK fri
HOUR 19
#ACT
goto @Startstoopentheprize
break

In market_Def a file called - 00default.txt - you need to add the npc to this part..

So how it all works -- let say you had a script which checks the time for say 8pm (thus loose Dayofweek) - it calls the script and if the situation matches - it shouts for you. Now i think that script only runs when people login, so if you had noone logging in around that time, it may or may not work - something your going ot have to check tbh

The magic Gate part is coded Im sure into the server tbh .. as its a system message..
 
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
yeah i got that far. then came up against a problem 20 ppl all loging, the first person gets 20 msgs coming up - solved by only msging single player. i dont think theres any way to auto msg ppl who are already in game tbh. :/
 
Upvote 0

Demonic

LOMCN VIP
VIP
Dec 1, 2003
1,806
2
165
Well the Lottery one def only puts a General System message Once to all (grobal) - on my testing of the lottery it does not display like 20 messages if 20 people login in. Be worth I guess looking at lottery script and see how it does it.
 
Upvote 0

Miles

LOMCN VIP
VIP
Mar 27, 2003
1,195
0
213
*Moved* I would have thought that an npc help post would have gone in the help forum :p

/Miles
 
Upvote 0