Jump to content
  • 0
Sign in to follow this  
scary blood

[718] Send world messages when achieving kills?

Question

I'm still working on this pvp server lol. And now I wonder how do I make so when you get like 100 kills it will show a world message (to everyone online?)
[QUOTE]if (getKillCount() == (100)) {
sendNotice("<col=fff800>"+ getDisplayName() +" Has achieved 100 kills!!");
}[/QUOTE]
But when I use that, the player has to relog to send the message, which is not really what I want...
I have also tried [QUOTE]World.sendWorldMessage("<col=fff800>"+ getDisplayName() +" has achieved 100 kills!!", false);[/QUOTE]

But I still have to relog, I want it to show directly when the player gets his/her 100th kill...

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
NVM figured it out, if you want to know howto just ask me or sending me a pm, lol

Share this post


Link to post
Share on other sites
  • 0
It's because you're only calling the conditional statement when the player logs in. Check the condition every time the player kills an NPC (near where you add +1 to the player's killcount.

Share this post


Link to post
Share on other sites
  • 0
Yeah, I alredy figured it out :) Thanks anyways

Share this post


Link to post
Share on other sites
  • 0
where do i placethe code? what file?
and btw how do i make it show like KingBing Has Achieed 99 in Thieving
and KingBing Has Donated
And KingBing Has Achived atleast 99 in all skills
King Bing Has Trimmed His Comp Cape?

Share this post


Link to post
Share on other sites
Sign in to follow this  

×