Re: NPCConversationManager.java BubblesDev 107, Updated Functions (Aug 18th)
how does playSound or playMusic works???? i really tryed alot in my npc script cm.playSound(Bgm01/......); and all those things but i can't get it works :( plz help
Re: NPCConversationManager.java BubblesDev 107, Updated Functions (Aug 18th)
adding functions is not that hard..
anyways, you deserve a Thanks
Re: NPCConversationManager.java BubblesDev 107, Updated Functions (Aug 18th)
Quote:
Originally Posted by
Ehab
adding functions is not that hard..
anyways, you deserve a Thanks
i have added the both functions for music but i cant get it work
srry for my bad english
Re: NPCConversationManager.java BubblesDev 107, Updated Functions (Aug 18th)
i saw a jukebox NPC without needing to add the function o.o
Re: NPCConversationManager.java BubblesDev 107, Updated Functions (Aug 18th)
Quote:
Originally Posted by
Ehab
i saw a jukebox NPC without needing to add the function o.o
can you tell me where you sawd that please
Re: NPCConversationManager.java BubblesDev 107, More functions
Quote:
Originally Posted by
Stampede
Take it out of the code then... he even wrote, if you don't have achievements take it out. Take out both if you aren't going to use them.
That was taken out of context, that was supposed to be a reply to an earlier post that said to use the Thanks buttons.
Re: NPCConversationManager.java BubblesDev 107, Updated Functions (Aug 18th)
i had it somewhere .. i've got a new hard drive so i'm like .. i have nothing at all :P:
Re: NPCConversationManager.java BubblesDev 107, Updated Functions (Aug 18th)
I added in a couple more functions.
I also edited the givebuff function to work a bit better for Buff NPCs.
Re: NPCConversationManager.java BubblesDev 107, Updated Functions (Aug 18th)
PHP Code:
public boolean isJobFirst() {
return (getPlayer().getJob().getId() % 100 == 0);
}
public boolean isJobSecond() {
return (!isJobFirst() && getPlayer().getJob().getId() % 10 == 0);
}
public boolean isJobThird() {
return (getPlayer().getJob().getId() % 10 == 1);
}
public boolean isJobFourth() {
return (getPlayer().getJob().getId() % 10 == 2);
}