Jump to content

Recommended Posts

Posted

Sup, i share a Newbiegift command, a friend of Mine Requested it. So i was Thinking maybe someone of you find it usefull.

Its nothing special nothing hard to do, but i know there some people that cant code such simple codes so i Share it.

 

Index: C:/Dokumente und Einstellungen/michael/workspace2/Equal-GameServer/java/lt/equal/gameserver/handler/voicedcommandhandlers/newbiegift.java
===================================================================
--- C:/Dokumente und Einstellungen/michael/workspace2/Equal-GameServer/java/lt/equal/gameserver/handler/voicedcommandhandlers/newbiegift.java	(revision 0)
+++ C:/Dokumente und Einstellungen/michael/workspace2/Equal-GameServer/java/lt/equal/gameserver/handler/voicedcommandhandlers/newbiegift.java	(revision 0)
@@ -0,0 +1,61 @@
+/*
+ * 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 lt.equal.gameserver.handler.voicedcommandhandlers;
+
+import lt.equal.gameserver.handler.IVoicedCommandHandler;
+import lt.equal.gameserver.model.actor.instance.L2PcInstance;
+import lt.equal.util.Rnd;
+
+/**
+*
+* @author eko
+*/
+public class newbiegift implements IVoicedCommandHandler
+{
+	private static final String[] VOICED_COMMANDS = { "newbiegift" };
+	   
+public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+{
+	if (command.equalsIgnoreCase("newbiegift"))
+	{
+		if (activeChar.getLevel() >= 1 && activeChar.isNewbie())
+		{
+			activeChar.sendMessage("You are allready Used that Command.");
+			return true;
+		}
+		else if (activeChar.getInventory().getItemByItemId(3434).getCount() >= 1)
+		{
+			activeChar.getInventory().destroyItemByItemId("newbiegift", 3434, 1, activeChar, activeChar.getTarget());
+			// {ItemID, Item Ammount}
+    		int[][] items = { {8557, 1}, {8184, 1}, { 8187, 1}, { 8552, 1}, { 8185, 1}, { 8563, 1}, { 8562, 1}, { 8561, 1}, { 8560, 1} };
+            // How many Items Aviable on the List
+    		int[] ar = items[Rnd.get(9)];
+    		activeChar.addItem(command,  ar[0], ar[1], activeChar, true);
+			activeChar.sendMessage("You Recived a Newbiegift!");
+            activeChar.broadcastUserInfo();
+		}
+		else
+		{
+			activeChar.sendMessage("Missing Coke to Create your Gift.");
+			return true;
+		}
+	}
+	return false;
+}
+public String[] getVoicedCommandList()
+{
+	return VOICED_COMMANDS;
+}
+}
\ No newline at end of file
Index: C:/Dokumente und Einstellungen/michael/workspace2/Equal-GameServer/java/lt/equal/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- C:/Dokumente und Einstellungen/michael/workspace2/Equal-GameServer/java/lt/equal/gameserver/network/clientpackets/EnterWorld.java	(revision 206)
+++ C:/Dokumente und Einstellungen/michael/workspace2/Equal-GameServer/java/lt/equal/gameserver/network/clientpackets/EnterWorld.java	(working copy)
@@ -189,10 +184,14 @@
+		if (activeChar.getLevel() >= 1 && activeChar.isNewbie() && activeChar.getInventory().getItemByItemId(3436) == null)
+		{
+			activeChar.addItem("loot", 3434, 1, activeChar, true);
+		}

the Code Allows newbieplayers to Recive a small gitft, atm its set to 9 Random items as gitft(demon horns,party hat,blue party hat,feathered hat etc.)

the item will be choosen Randomly

 

HF & GL

 

Note: no flame plix i know its a simple code i explained above why i shared it

Posted

but what is the voice command type? .?

 

type .newbiegift and you revice a random Accessorie

Useable only when you are a Newbie lvl 1 and have the item 3434 wich is Coke

 

on enter world i gives you the item if you are a newbie your lvl is 1 and you dont have the item in your inventory

Posted

and that command just give's newbie characters items?

 

why i need command if i just use customstartingitems ?

 

first. customstarting items is for everyone not only newbies, second its a randomly chosen reward

you can add unlimited items to it, such as adena,items,Hair Accessories,Scrolls etc.

Posted

first. customstarting items is for everyone not only newbies, second its a randomly chosen reward

you can add unlimited items to it, such as adena,items,Hair Accessories,Scrolls etc.

what you mean custumstartingitems are not only for newbies? :D

custom starting items you have only once!

 

and i have add 29 items in custom starting items so i think is unlimited too

Posted

what you mean custumstartingitems are not only for newbies? :D

custom starting items you have only once!

 

and i have add 29 items in custom starting items so i think is unlimited too

 

are the items randomly choosen? i think not. you dont have to Bitch around because i flamed you for making 3213 topics whit c/p codes that werent yourself just to gain some praise from other people

Posted

+1 karma from me.

and thanks i need smth like this.

thanks again :)

i wonder why today some ppls increase the karma so eazy...

by the way

@eKo its nice share thanks you :)

Posted

i wonder why today some ppls increase the karma so eazy...

by the way

@eKo its nice share thanks you :)

 

haha, i was thinking the same didnt expect a +1 karma from that share

Posted

i do it just because i need that code HARD.

 

i just wonder beacuse its too eazy make something like this but okey :P

Posted

i just wonder beacuse its too eazy make something like this but okey :P

 

as i said above its a simple code i made for a friend he requested it ;)

Guest
This topic is now closed to further replies.



  • Posts

    • ⚔️ The Grand Opening Has Arrived! ⚔️ In just a few hours the gate to the eternal battlefield will be open and the war between Order and Chaos will be set once again ! Its time to claim your destiny 🔥 👉 Register now and join the fight today! 🌐 https://l2ovc.com register now : https://l2ovc.com
    • Don’t miss the new Telegram gifts with our Telegram Stars purchasing bot! A great opportunity to invest in a stable digital asset at an early stage while the market is still forming. Buy other existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium subscriptions, and react to messages in channels! Low prices, multiple payment options, and other cool unique features! ⚡ Try it today — SOCNET STARS BOT ⚡ Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. ⭐ Telegram Stars Purchase Bot: Go – fast and profitable way to buy stars in Telegram. SMM Panel: Go – promote your social media accounts. We present to you the current list of promotions and special offers for purchasing our products and services: 1️⃣ Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in October! You can also use the promo code SOCNET (15% discount) for your first purchase. 2️⃣ Get $1 on your store balance or a 10–20% discount — just write your username after registration on our website using the template: "SEND ME BONUS, MY USERNAME IS..." — post it in our forum thread! 3️⃣ Get $1 for your first SMM Panel trial — simply open a ticket titled “Get Trial Bonus” on our website (Support). 4️⃣ Weekly ⭐ Telegram Stars giveaways in our Telegram channel and in our Telegram Stars bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Don’t miss the new Telegram gifts with our Telegram Stars purchasing bot! A great opportunity to invest in a stable digital asset at an early stage while the market is still forming. Buy other existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium subscriptions, and react to messages in channels! Low prices, multiple payment options, and other cool unique features! ⚡ Try it today — SOCNET STARS BOT ⚡ Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. ⭐ Telegram Stars Purchase Bot: Go – fast and profitable way to buy stars in Telegram. SMM Panel: Go – promote your social media accounts. We present to you the current list of promotions and special offers for purchasing our products and services: 1️⃣ Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in October! You can also use the promo code SOCNET (15% discount) for your first purchase. 2️⃣ Get $1 on your store balance or a 10–20% discount — just write your username after registration on our website using the template: "SEND ME BONUS, MY USERNAME IS..." — post it in our forum thread! 3️⃣ Get $1 for your first SMM Panel trial — simply open a ticket titled “Get Trial Bonus” on our website (Support). 4️⃣ Weekly ⭐ Telegram Stars giveaways in our Telegram channel and in our Telegram Stars bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Don’t miss the new Telegram gifts with our Telegram Stars purchasing bot! A great opportunity to invest in a stable digital asset at an early stage while the market is still forming. Buy other existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium subscriptions, and react to messages in channels! Low prices, multiple payment options, and other cool unique features! ⚡ Try it today — SOCNET STARS BOT ⚡ Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. ⭐ Telegram Stars Purchase Bot: Go – fast and profitable way to buy stars in Telegram. SMM Panel: Go – promote your social media accounts. We present to you the current list of promotions and special offers for purchasing our products and services: 1️⃣ Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in October! You can also use the promo code SOCNET (15% discount) for your first purchase. 2️⃣ Get $1 on your store balance or a 10–20% discount — just write your username after registration on our website using the template: "SEND ME BONUS, MY USERNAME IS..." — post it in our forum thread! 3️⃣ Get $1 for your first SMM Panel trial — simply open a ticket titled “Get Trial Bonus” on our website (Support). 4️⃣ Weekly ⭐ Telegram Stars giveaways in our Telegram channel and in our Telegram Stars bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • 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