Making an NPC not work/disappear during a war?

Mukai

LOMCN Veteran
Veteran
Feb 15, 2008
383
0
63
Tenerife
as title is it possible and if so can some1 kindly enlighten me on how its done
Thx In Advance
 

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
ehm my english isnt the best so maybe i understand u wrong what u wanna have exactly ??u wanna hide a npc if war is in action??

if yes there are two ways........ one is to hide npc for a time......... easier is to move him.

move him u have examples in taosung and sabuk war scripts that u have.

[@CastleWarStart_TAOSUNG]
{
#ACT
movenpc "5,262,84,npcname" Z013 10 11
...


[@CastleWarFinish_TAOSUNG]
{
#ACT
movenpc "Z013,10,11,npcname" 5 262 84
....
 
Upvote 0

Somebody Else

Dedicated Member
Dedicated Member
Jun 24, 2005
114
0
63
Or an NPC that moves every time it is found? How would you make it move to random coordinates anyway, since if you do a random number it won't guarantee that he moves into an open space?

I guess you could have a set of already-known places that he could move between.
 
Upvote 0

Mukai

LOMCN Veteran
Veteran
Feb 15, 2008
383
0
63
Tenerife
Hey, you can get to a certain time is an event? a movenpc for example?

for example.

22:30
MoveNPC 25 765 898
22:36
movenpc z012

is posible?
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
You need to call the script at certain times..

You do this using the TimeCall command..

as below..

Code:
[@_startup]
#CALL [System\SpeakingClock.txt] @SpeakingClock

Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;
[@SpeakingClock]
{
#ACT
TimeCall 10 00 @Its1000
TimeCall 10 30 @Its1030
TimeCall 11 00 @Its1100
TimeCall 11 30 @Its1130
TimeCall 12 00 @Its1200

[@Its1000]
#ACT
Speak "Its 10:00"

[@Its1030]
#ACT
Speak "Its 10:30"

[@Its1100]
#ACT
Speak "Its 11:00"

[@Its1130]
#ACT
Speak "Its 11:30"

[@Its1200]
#ACT
Speak "Its 12:00"
}
;;;;;;;;;;;;;;;;;

Its a speaking clock...
 
Upvote 0

Mukai

LOMCN Veteran
Veteran
Feb 15, 2008
383
0
63
Tenerife
Failed to make it work! : (, Put it on display at 22:30 Bichon but it does not work ,only working @reloadnpc

--------------------------
Working , !! THX all! ;)
 
Last edited:
Upvote 0

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
195
Redditch, UK
Could this be used for a npc to do an anouncement at a certain time or is there any other way? say a global shout at 8 o clock or soemthing and only the once not needing a player to activate it
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
Do a TimeCall.. as below setting on any NPC.

Code:
[@_Startup]
#ACT
TimeCall 00 00 @ShoutTheTime(Midnight)
TimeCall 01 00 @ShoutTheTime(1 am)
TimeCall 02 00 @ShoutTheTime(2 am)
TimeCall 03 00 @ShoutTheTime(3 am)
TimeCall 04 00 @ShoutTheTime(4 am)
etc
etc

[@ShoutTheTime()]
#IF
DayOfWeek Mon           ;If you only want it to run this section on a Monday etc
#ACT
Mov  A1  %ARG(1)
LineMsg [Grobal] "The Time is <$OUTPUT(A1)>"
 
Upvote 0

Cricket1650

Dedicated Member
Dedicated Member
Apr 25, 2008
66
0
52
just make it like this

Code:
[@_Startup]
#ACT
TimeCall 20 00 @EventOpen

[@EventOpen]
#ACT
LineMsg [Grobal] "The Event Is Now Open. Please Teleport To The Event Room"
I think that will work
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
Cricket already posted that bit..

Put it together..

Code:
[@Main]
#IF
Min 00 10
Hour 20 20
#SAY
<[ Enter the Event ]/@EnterEvent>\

[@EnterEvent]
#ACT
Map E004

[@_Startup]
#ACT
TimeCall 20 00 @EventOpen

[@EventOpen]
#ACT
LineMsg [Grobal] "The Event Is Now Open For 10 Minutes. Please Teleport To The Event Room using the Event NPC"

This will automatically shout at 8pm and allow people to enter the event from 8pm to 8:10pm
 
Last edited:
Upvote 0