Jump to content

Recommended Posts

Posted

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

Posted

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

  • 3 weeks later...
  • 1 month later...
  • 7 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock