Jump to content

.  

24 members have voted

  1. 1. Cand ia Nervos permisul?

    • Anu asta
      8
    • Anu viitor
      11
    • Niciodata
      5


Recommended Posts

Posted

Fi atent akm arata asa :

/**
* 
*/
package handlers.voicedcommandhandlers;

/**
* @author Plyku
*
*/
public class FactionInfo
{

}

 

Si vreau sa bag asta in el

Index: data/scripts/handlers/voicedcommandhandlers/FactionInfo.java
===================================================================
--- data/scripts/handlers/voicedcommandhandlers/FactionInfo.java	(revision 0)
+++ data/scripts/handlers/voicedcommandhandlers/FactionInfo.java	(revision 0)
@@ -0,0 +1,62 @@
+/*
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package handlers.voicedcommandhandlers;
+
+import java.util.logging.Logger;
+
+import com.l2jserver.Config;
+import com.l2jserver.gameserver.GameServer;
+import com.l2jserver.gameserver.cache.HtmCache;
+import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
+
+public class FactionInfo implements IVoicedCommandHandler
+{
+    private static final String[] VOICED_COMMANDS = { "finfo" };
+    private static final Logger _log = Logger.getLogger(GameServer.class.getName());
+
+    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+    {	
+        if (command.equalsIgnoreCase("finfo"))
+        {
+        	if (Config.ENABLE_FACTION_ENGINE && Config.ENABLE_FINFO_VC)
+        	{
+        		String htmFile = "data/html/mods/Faction/info.htm";
+        		String htmContent = HtmCache.getInstance().getHtm(htmFile);
+        		if (htmContent != null)
+        		{
+        			NpcHtmlMessage showHtml = new NpcHtmlMessage(1);
+        			showHtml.setHtml(htmContent);
+        			activeChar.sendPacket(showHtml);
+        		}
+        		else
+        		{
+        			_log.info("Failed to load VCAIO File! Make sure that you fix it soon!");
+        		}
+        	}
+        	else
+        	{
+        		activeChar.sendMessage("Command unavailable!");
+        	}
+        }
+		return false;
+    }
+
+    public String[] getVoicedCommandList()
+    {
+        return VOICED_COMMANDS;
+    }
+}

sterg tot + si copy/paste ? code;D?

Daca imi explici asta ma descurc sal fac tot :))

Posted

adauga asta ...

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package handlers.voicedcommandhandlers;

import java.util.logging.Logger;

import com.l2jserver.Config;
import com.l2jserver.gameserver.GameServer;
import com.l2jserver.gameserver.cache.HtmCache;
import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;

public class FactionInfo implements IVoicedCommandHandler
{
    private static final String[] VOICED_COMMANDS = { "finfo" };
    private static final Logger _log = Logger.getLogger(GameServer.class.getName());

    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
    {	
        if (command.equalsIgnoreCase("finfo"))
        {
        	if (Config.ENABLE_FACTION_ENGINE && Config.ENABLE_FINFO_VC)
        	{
        		String htmFile = "data/html/mods/Faction/info.htm";
        		String htmContent = HtmCache.getInstance().getHtm(htmFile);
        		if (htmContent != null)
        		{
        			NpcHtmlMessage showHtml = new NpcHtmlMessage(1);
        			showHtml.setHtml(htmContent);
        			activeChar.sendPacket(showHtml);
        		}
        		else
        		{
        			_log.info("Failed to load VCAIO File! Make sure that you fix it soon!");
        		}
        	}
        	else
        	{
        		activeChar.sendMessage("Command unavailable!");
        	}
        }
	return false;
    }

    public String[] getVoicedCommandList()
    {
        return VOICED_COMMANDS;
    }
}

Posted

adauga asta ...

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package handlers.voicedcommandhandlers;

import java.util.logging.Logger;

import com.l2jserver.Config;
import com.l2jserver.gameserver.GameServer;
import com.l2jserver.gameserver.cache.HtmCache;
import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;

public class FactionInfo implements IVoicedCommandHandler
{
    private static final String[] VOICED_COMMANDS = { "finfo" };
    private static final Logger _log = Logger.getLogger(GameServer.class.getName());

    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
    {	
        if (command.equalsIgnoreCase("finfo"))
        {
        	if (Config.ENABLE_FACTION_ENGINE && Config.ENABLE_FINFO_VC)
        	{
        		String htmFile = "data/html/mods/Faction/info.htm";
        		String htmContent = HtmCache.getInstance().getHtm(htmFile);
        		if (htmContent != null)
        		{
        			NpcHtmlMessage showHtml = new NpcHtmlMessage(1);
        			showHtml.setHtml(htmContent);
        			activeChar.sendPacket(showHtml);
        		}
        		else
        		{
        			_log.info("Failed to load VCAIO File! Make sure that you fix it soon!");
        		}
        	}
        	else
        	{
        		activeChar.sendMessage("Command unavailable!");
        	}
        }
	return false;
    }

    public String[] getVoicedCommandList()
    {
        return VOICED_COMMANDS;
    }
}

Mersi mult,mam rugat de multi toata ziua, akm mai invatat:)),

 

 

 

Dupa ce am adaugat , se salveaza singur?:))

Posted

ne-am dus sa ne rugam si popa statea pi ciurci

pai cum sa stea ma pe biserica?

daca ciurciu era acoperit di floconi undi vrei sa shada ?

si nu ii era frig?

uai si gluma sinistra, cum sa-i fie frig la un om mort?

 

ciurci = chruch = biserica

 

flocon = fulg

Guest
This topic is now closed to further replies.



×
×
  • Create New...