Jump to content
  • 0

Poring Event script


c2greentea

Question


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


if ( !.@count )

announce strcharinfo(0)+" has killed the Poring! "+.@count+" special Porings left in "+strcharinfo(3),bc_all;

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

// 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;
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

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 by c2greentea
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...