Use code tags please.
|
Tried using this guide;
http://www.rune-server.org/runescape...direction.html
Got it down to one error and solved it, and it compiled and all. Logged in and my NPC's are still facing the default direction. Can anyone help me out? I'll post my NPCSpawning.java below-
Code:package com.rs.utils.spawning; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.utils.Utils.EntityDirection; public enum NPCSpawning { EDWARD(13727, 2673, 2665, 0, false, "south"), MANAGER(13768, 3466, 2217, 0, false, "east"), GENERAL_STORE(529, 2647, 2664, 0, false, "east"), HERBLORE(587, 2682, 2672, 0, false, "south"), CRAFTING(585, 2681, 2672, 0, false, "south"), SLAYER(8467, 2654, 2656, 0, false, "north"), BOB(519, 2680, 2672, 0, false, "south"), PVM_STORE(6537, 2675, 2655, 0, false, "west"), POTIONS(576, 2679, 2672, 0, false, "south"), RANGED(575, 2664, 2660, 0, false, "west"), BARROWS(11683, 2644, 2677, 0, false, "east"), WEAPON_STORE(1303, 2645, 2675, 0, false, "east"), LOW_LEVEL(1208, 2649, 2660, 0, false, "east"), HORVIK_ARMOR(14058, 2649, 2659, 0, false, "east"), HUNTER(5112, 2525, 2915, 0, false, "north"), FOOD_SHOP(8864, 2683, 2672, 0, false, "south"), MAGIC_SHOP(4513, 2658, 2654, 0, false, "north"), PURE_SHOP(2538, 2645, 2679, 0, false, "south"), SKILLCAPES(548, 2685, 2662, 0, false, "west"), PRESTIGE_SHOP(13959, 2682, 2656, 0, false, "north"), ARCHAEOLOGIST(1918, 2247, 3314, 0, false, "east"), PVP_SHOP(6539, 2673, 2655, 0, false, "east"), FISHING_SPOT_1(327, 2604, 3419, 0, true, "east"), FISHING_SPOT_2(6267, 2605, 3420, 0 , true, "east"), FISHING_SPOT_3(312, 2605, 3421, 0, true, "east"), FISHING_SPOT_4(313, 2604, 3422, 0, true, "east"), FISHING_SPOT_5(952, 2603, 3422, 0, true, "east"), FISHING_SPOT_6(327, 2604, 3423, 0, true, "east"), FISHING_SPOT_7(6267, 2605, 3424, 0, true, "east"), FISHING_SPOT_8(312, 2605, 3425, 0, true, "east"), FISHING_SPOT_9(327, 2599, 3419, 0, true, "east"), FISHING_SPOT_10(6267, 2598, 3422, 0, true, "east"), FISHING_SPOT_11(8864, 2590, 3419, 0, true, "east"), POLY_DUNG_SHOP(875, 4724, 5466, 0, false, "east"), CORP_SHOP(13191, 2959, 4382, 2, false, "east"), TZHAAR_1(2625, 2617, 5132, 0, false, "east"), TZHAAR_2(2614, 4666, 5082, 0, false, "east"), /** DONOR ZONE NPCS **/ DONOR_ZONE_1(6892, 1605, 4508, 0, false, "east"), DONOR_ZONE_2(1918, 1605, 4506, 0, false, "east"), DONOR_ZONE_3(14854, 1605, 4505, 0, false, "east"), DONOR_ZONE_4(537, 2598, 3162, 0, false, "east"), DONOR_ZONE_5(6970, 2207, 5345, 0, false, "east"); private int npcId; private int posX; private int posY; private int height; private boolean spawned; private String direction; NPCSpawning(int id, int x, int y, int z, boolean spawned, String direction) { this.npcId = id; this.posX = x; this.posY = y; this.height = z; this.spawned = spawned; } public static void spawnNpcs() { for (NPCSpawning spawn : NPCSpawning.values()) { World.spawnNPC(spawn.npcId, new WorldTile(spawn.posX, spawn.posY, spawn.height), 0, spawn.spawned); } } }
Use code tags please.
Use code tags
Code:package com.rs.utils.spawning; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.utils.Utils.EntityDirection; public enum NPCSpawning { EDWARD(13727, 2673, 2665, 0, false, "south"), MANAGER(13768, 3466, 2217, 0, false, "east"), GENERAL_STORE(529, 2647, 2664, 0, false, "east"), HERBLORE(587, 2682, 2672, 0, false, "south"), CRAFTING(585, 2681, 2672, 0, false, "south"), SLAYER(8467, 2654, 2656, 0, false, "north"), BOB(519, 2680, 2672, 0, false, "south"), PVM_STORE(6537, 2675, 2655, 0, false, "west"), POTIONS(576, 2679, 2672, 0, false, "south"), RANGED(575, 2664, 2660, 0, false, "west"), BARROWS(11683, 2644, 2677, 0, false, "east"), WEAPON_STORE(1303, 2645, 2675, 0, false, "east"), LOW_LEVEL(1208, 2649, 2660, 0, false, "east"), HORVIK_ARMOR(14058, 2649, 2659, 0, false, "east"), HUNTER(5112, 2525, 2915, 0, false, "north"), FOOD_SHOP(8864, 2683, 2672, 0, false, "south"), MAGIC_SHOP(4513, 2658, 2654, 0, false, "north"), PURE_SHOP(2538, 2645, 2679, 0, false, "south"), SKILLCAPES(548, 2685, 2662, 0, false, "west"), PRESTIGE_SHOP(13959, 2682, 2656, 0, false, "north"), ARCHAEOLOGIST(1918, 2247, 3314, 0, false, "east"), PVP_SHOP(6539, 2673, 2655, 0, false, "east"), FISHING_SPOT_1(327, 2604, 3419, 0, true, "east"), FISHING_SPOT_2(6267, 2605, 3420, 0 , true, "east"), FISHING_SPOT_3(312, 2605, 3421, 0, true, "east"), FISHING_SPOT_4(313, 2604, 3422, 0, true, "east"), FISHING_SPOT_5(952, 2603, 3422, 0, true, "east"), FISHING_SPOT_6(327, 2604, 3423, 0, true, "east"), FISHING_SPOT_7(6267, 2605, 3424, 0, true, "east"), FISHING_SPOT_8(312, 2605, 3425, 0, true, "east"), FISHING_SPOT_9(327, 2599, 3419, 0, true, "east"), FISHING_SPOT_10(6267, 2598, 3422, 0, true, "east"), FISHING_SPOT_11(8864, 2590, 3419, 0, true, "east"), POLY_DUNG_SHOP(875, 4724, 5466, 0, false, "east"), CORP_SHOP(13191, 2959, 4382, 2, false, "east"), TZHAAR_1(2625, 2617, 5132, 0, false, "east"), TZHAAR_2(2614, 4666, 5082, 0, false, "east"), /** DONOR ZONE NPCS **/ DONOR_ZONE_1(6892, 1605, 4508, 0, false, "east"), DONOR_ZONE_2(1918, 1605, 4506, 0, false, "east"), DONOR_ZONE_3(14854, 1605, 4505, 0, false, "east"), DONOR_ZONE_4(537, 2598, 3162, 0, false, "east"), DONOR_ZONE_5(6970, 2207, 5345, 0, false, "east"); private int npcId; private int posX; private int posY; private int height; private boolean spawned; private String direction; NPCSpawning(int id, int x, int y, int z, boolean spawned, String direction) { this.npcId = id; this.posX = x; this.posY = y; this.height = z; this.spawned = spawned; } public static void spawnNpcs() { for (NPCSpawning spawn : NPCSpawning.values()) { World.spawnNPC(spawn.npcId, new WorldTile(spawn.posX, spawn.posY, spawn.height), 0, spawn.spawned); } } }
the spawned npc's in the "NPCSpawning.java" should look like this:
shows this at the bottom of the snippetCode:World.spawnNPC(530, new WorldTile(2957, 3390, 0), -1, false, EntityDirection.EAST);
bump..
bump- if someone has this done, can they just pm me their NpcSpawning.java?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |