Jump to content

[Share]Announce The GM What NPC Spawn And Where Location


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...