c2greentea Posted October 11, 2014 Group: Members Topic Count: 68 Topics Per Day: 0.02 Content Count: 173 Reputation: 0 Joined: 06/07/14 Last Seen: December 17, 2014 Share Posted October 11, 2014 This is my Poring Event script http://upaste.me/r/240d154532629e5f6 I wanted to ask how to make it globally announce only if the count of the special Porings in the specific map turns to 0? http://gyazo.com/d933e86836b8d1bf9b53262dd38632b5 And also once the player killed the special Poring, he will only get an emotion /grat in his character itself plus a dispbottom message saying his name and congrats. Please help. Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 12, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 12, 2014 // kill poring get reward OnPoringDead: announce strcharinfo(0)+" has killed the Poring! "+mobcount( strcharinfo(3),.npc_name$+"::OnPoringDead" )+" special Porings left in "+strcharinfo(3),bc_all; getitem 6153,50; end; change to // kill poring get reward OnPoringDead: .@count = mobcount( strcharinfo(3),.npc_name$+"::OnPoringDead" ); announce strcharinfo(0)+" has killed the Poring! "+.@count+" special Porings left in "+strcharinfo(3),(( .@count )? bc_map:bc_all ); getitem 6153,50; dispbottom "Congratz "+strcharinfo(0); end; 1 Quote Link to comment Share on other sites More sharing options...
c2greentea Posted October 12, 2014 Group: Members Topic Count: 68 Topics Per Day: 0.02 Content Count: 173 Reputation: 0 Joined: 06/07/14 Last Seen: December 17, 2014 Author Share Posted October 12, 2014 (edited) Emistry, it still broadcasts from count 4-1. I am wishing if we can only broadcast if the count is 0 already. http://gyazo.com/ca525fe1429181aee45a5010e39b7614 Hope you can still help me Edited October 12, 2014 by c2greentea Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 12, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 12, 2014 if ( !.@count ) announce strcharinfo(0)+" has killed the Poring! "+.@count+" special Porings left in "+strcharinfo(3),bc_all; Quote Link to comment Share on other sites More sharing options...
c2greentea Posted October 12, 2014 Group: Members Topic Count: 68 Topics Per Day: 0.02 Content Count: 173 Reputation: 0 Joined: 06/07/14 Last Seen: December 17, 2014 Author Share Posted October 12, 2014 Fixed. Quote Link to comment Share on other sites More sharing options...
Question
c2greentea
This is my Poring Event script http://upaste.me/r/240d154532629e5f6
I wanted to ask how to make it globally announce only if the count of the special Porings in the specific map turns to 0? http://gyazo.com/d933e86836b8d1bf9b53262dd38632b5
And also once the player killed the special Poring, he will only get an emotion /grat in his character itself plus a dispbottom message saying his name and congrats.
Please help.
Link to comment
Share on other sites
4 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.