maynard Posted January 4, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Share Posted January 4, 2012 Sir I would like to request a NPC that announce in every 30 minutes.It will announce random messages.the castle is kriemhild. [winningguild]=color red [announcement]=color yellow or Blue sample: [owner of kriemhild] + [announcement blah blah blah blah] Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 5, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Yesterday at 07:13 PM Share Posted January 5, 2012 you cant.... either a separate announcement..or get use to it... - script Sample -1,{ OnMinute30: set .Map$,"prtg_cas03"; announce "[ "+getguildname( getcastledata( .Map$,1 ) )+" ]",0,0x0000FF; announce "Owned the Castle of [ "+getcastlename( .Map$ )+" ].",0,0xFF0000; end; } Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 4, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Yesterday at 07:13 PM Share Posted January 4, 2012 like this ?? - script Sample -1,{ OnMinute30: set .Map$,"prtg_cas03"; announce "[ "+getguildname( getcastledata( .Map$,1 ) )+" ] Owned the Castle of [ "+getcastlename( .Map$ )+" ].",bc_blue; end; } Quote Link to comment Share on other sites More sharing options...
maynard Posted January 4, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Author Share Posted January 4, 2012 its seems it doesn't work with me, no error in mapserv, it doesnt broadcast. will this work if i have another npc with - script Sample -1,{ ? I got npc with -1 sprite. Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 5, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Yesterday at 07:13 PM Share Posted January 5, 2012 the script will only announce at 30th Minutes every hours... if you have the same NPC named with Sample...then just rename it.. Quote Link to comment Share on other sites More sharing options...
maynard Posted January 5, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Author Share Posted January 5, 2012 how to change color this part only? [ "+getguildname( getcastledata( .Map$,1 ) )+" ] Quote Link to comment Share on other sites More sharing options...
maynard Posted January 5, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Author Share Posted January 5, 2012 tnx sir emistry, DONE Quote Link to comment Share on other sites More sharing options...
Question
maynard
Sir I would like to request a NPC that announce in every 30 minutes.It will announce random messages.the castle is kriemhild.
[winningguild]=color red
[announcement]=color yellow or Blue
sample: [owner of kriemhild] + [announcement blah blah blah blah]
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.