`RoSe^ Posted May 14, 2010 Posted May 14, 2010 Hello Guys i have one idea and i tell in (xAddytzu) and Code It Index: L2PcInstance.java + private boolean _AnnSpawnLoc = true; + public void setAnnSpawnLoc(boolean x) + { + _AnnSpawnLoc = x; + } + public boolean getAnnSpawnLoc() + { + return _AnnSpawnLoc; + } Index: AdminSpawn.java private static final String[] ADMIN_COMMANDS = { "admin_show_spawns", "admin_spawn", "admin_spawn_monster", "admin_spawn_index", "admin_unspawnall","admin_respawnall","admin_spawn_reload","admin_npc_index","admin_spawn_once", "admin_show_npcs","admin_teleport_reload","admin_spawnnight","admin_spawnday", - "admin_spawnfence","admin_deletefence","admin_listfence", "admin_deleteallfence" }; + "admin_spawnfence","admin_deletefence","admin_listfence", "admin_deleteallfence", "admin_announcespawnloc" }; @@ else if (command.startsWith("admin_teleport_reload")) { TeleportLocationTable.getInstance().reloadAll(); GmListTable.broadcastMessageToGMs("Teleport List Table reloaded."); } + else if (command.startsWith("admin_announcespawnloc")) + { + if (activeChar.getAnnSpawnLoc()) // already announce spawn location + { + activeChar.setAnnSpawnLoc(false); + activeChar.sendMessage("Your Message"); + } + else + { + activeChar.setAnnSpawnLoc(true); + activeChar.sendMessage("Your Message"); + } + } @@ if (!permanent) spawn.stopRespawn(); activeChar.sendMessage("Created " + template1.name + " on " + target.getObjectId()); + if (activeChar.getAnnSpawnLoc()) + Announcements.getInstance().announceToAll("GM:"+activeChar.getName()+" had spawn "+template1.name+ " in "+activeChar.getX()+" "+activeChar.getY()+" "+activeChar.getZ()); Credits:xAddytzu For Code Credits:Bleach-X For Idea ;P Quote
Loren Posted May 14, 2010 Posted May 14, 2010 whats the point of this script huh.. Its Usefull for the events. Thx for share Bleach-X and thx addytzu for the code! Quote
Street-Gamer Posted May 14, 2010 Posted May 14, 2010 w00w super idea man ^^ i am keeping to add my pack :) thanks a lot and keep up the good works... Quote
`RoSe^ Posted May 14, 2010 Author Posted May 14, 2010 w00w super idea man ^^ i am keeping to add my pack :) thanks a lot and keep up the good works... i have good ideas :D More Codes With my Ideas Coming And Thnx For ur Good Words Quote
`RoSe^ Posted May 18, 2010 Author Posted May 18, 2010 Sorry im lagged and reply Wronge please Delete this Post Quote
forsas Posted June 9, 2010 Posted June 9, 2010 This is for anyone mob or npc? How make only raidboss or boss? Quote
sower Posted March 5, 2011 Posted March 5, 2011 its not usefull, maybe events but thx for share Quote
Mimosin Posted October 23, 2012 Posted October 23, 2012 is good but leaves the loc and ugly so no one will know where it is. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.