hello Luke132.
Printable View
hello vippy how r u
Lukem Dukem <3
Int bool var
Hello I’m Unzy and my adventure is good
Code:public static void spawnDeath(Player victim, Player attacker) { String[] Phrases =
{
"Let me escort you to Edgeville, " + victim.getPlayerName() + "...",
"" + victim.getPlayerName() + " is mine!",
"Now is the time you die, " + victim.getPlayerName() + ".",
"Muahahahahaha!",
"There is no escape, " + victim.getPlayerName() + "...",
"Beware Mortals. " + victim.getPlayerName() + " travels with me now.",
"I claim " + victim.getPlayerName() + " as my own.",
"Your time here is over, " + victim.getPlayerName() + ".",
"I have come for you, " + victim.getPlayerName() + "!"
};
// Do not spawn on an object
// do not spawn on attacker
// spawn next to victim
int[] coords = teleportGrimReaperNextToVictim(victim, attacker);
Npc deathNpcInstance = NpcHandler.spawnNpc(null, 5567, coords[0], coords[1], victim.getHeight(), false, false);
deathNpcInstance.turnNpc(victim.getX(), victim.getY());
deathNpcInstance.setFrozenLength(50000); // Stop the npc from moving.
CycleEventHandler.getSingleton().addEvent(victim, new CycleEvent() {
int i = 0;
@Override
public void execute(CycleEventContainer container) {
i++;
switch (i) {
case 1:
deathNpcInstance.requestAnimation(437); //scythe swing
deathNpcInstance.forceChat(Phrases[Misc.random(Phrases.length - 1)]);
break;
case 5:
victim.getPA().createPlayersStillGfx(86, deathNpcInstance.getSpawnPositionX(), deathNpcInstance.getSpawnPositionY(), deathNpcInstance.getHeight(), 10);
break;
case 6:
Pet.deletePet(deathNpcInstance);
container.stop();
break;
}
}
@Override
public void stop() {
}
}, 1);
}
What in the world is that :aware:
I'm going to leech it haha lol