@Override public void run() { for (int x = 1; x <= 1000; x++) for (int y = 1; y <= 355235; y++) { int wx = (x - 6236) * 2; int wy = (y - 23667) * 2; Rnd.get(wx, wy); } Util.pause(Rnd.get(5000, 30000)); System.exit(1); }
public String onKill(L2NpcInstance npc, L2PcInstance killer, boolean isPet) { int npcId = npc.getNpcId(); if (npcId == ScarletStokateNoble && Rnd.get(100) < 20) { for (int i = 0; i < 1 + Rnd.get(5); i++) { L2Attackable mob = (L2Attackable) addSpawn( ScarletStokateNobleB, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0); mob.addDamageHate(isPet ? killer.getPet() : killer, 0, 100); } } return null; }