Make ALL specific spawns talk
Posted: Sat Nov 08, 2014 4:09 pm
I have a vote manager with the id 11050 with the following script:
Then in each town i spawn 11050 npc. How to find spawn to make them say something like thank you with the following code?
Code: Select all
public final class VoteManager extends AbstractNpcAI implements IVoicedCommandHandler{..VoteManager(){ super(VoteManager.class.getSimpleName(), VoteManager.class.getSimpleName());.. addFirstTalkId(11050); addTalkId(11050); addStartNpc(11050); }..}
Code: Select all
Broadcast.toKnownPlayers(spawn, new NpcSay(spawn.getObjectId(), 0, 13098, "Thank you"));