Jump to content

Recommended Posts

Posted (edited)

Hello I will Share Here My Script for aCis with Barakiel Kill And Set noblesse to No Noblesse party Members..

Here We Go...

We Need to Create a new Class Here:net.sf.l2j.gameserver.scripting.scripts.custom

With Name:BarakielNobless.Java 

Then Paste This Inside:

+/*
+ * 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 net.sf.l2j.gameserver.scripting.scripts.custom;
+
+
+import net.sf.l2j.gameserver.model.actor.L2Npc;
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
+import net.sf.l2j.gameserver.scripting.Quest;
+
+
+public class BarakielNobless extends Quest
+{
+public BarakielNobless()
+{
+super(-1, "custom");
+
+addKillId(25325);
+}
+
+@Override
+public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)
+{
+if (player.getParty() != null)
+{
+for (L2PcInstance members : player.getParty().getPartyMembers())
+{
+if (!members.isInsideRadius(npc, 2000, false, false))
+{
+members.sendMessage("You Was On Wrong Place");
+continue;
+}
+if (!members.isNoble())
+{
+members.setNoble(true, true);
+members.getInventory().addItem("Noblesse Tiara",7694,1,members,null);
+members.sendMessage("You Are Noblesse now.");
+}
+else
+{
+members.sendMessage("You already Noblesse.");
+}
+
+members.broadcastUserInfo();
+}
+}
+
+return null;
+}
+
+public static void main(String args[])
+{
+new BarakielNobless();
+}
+}

And Dont Forget To Add Your Scripts.xml

 

<script path="scripts.custom.HeroWeapon"/>
+<script path="scripts.custom.BarakielNobless"/>
Edited by Reborn12
Posted

Could be easier with 1 check at doDie method.

yeap i know but why not a script..there is another checks with radious if one player is so far will not take noblesse if is already noblesse will not take noblesse status again...

Posted

yeap i know but why not a script..there is another checks with radious if one player is so far will not take noblesse if is already noblesse will not take noblesse status again...

I mean, you don't have to make the whole script. Just check the ID for the boss, add the rest checks and you are done.

Posted (edited)

One check sounds easier/faster. But why to mess your core when you can activate/deactive/reload a script from dp. No point to mess sometimes :)

 

 

members.broadcastUserInfo();

 

What's the point?

Edited by SweeTs
Posted

it can be much easier if you just add it on the L2RaidBossInstance.java like this

 				if (player.isInParty())
 				{
+					if (getNpcId() == 25325 && !player.isNoble()) // barakielId = 25325;
+					{
+						
+					for(L2PcInstance newNoble : player.getParty().getPartyMembers())
+	                    {
+	                    newNoble.setNoble(true, true);
+	                    newNoble.sendMessage("You Are Now a Noble, You Are Granted With Noblesse Status, And Noblesse Skills.");
+	                    }
+                    
+					}
 					for (L2PcInstance member : player.getParty().getPartyMembers())
 					{
 						RaidBossPointsManager.getInstance().addPoints(member, getNpcId(), (getLevel() / 2) + Rnd.get(-5, 5));

Posted (edited)

One check sounds easier/faster. But why to mess your core when you can activate/deactive/reload a script from dp. No point to mess sometimes :)

 

members.broadcastUserInfo();
 

What's the point?

Thats was a test i have forget to delete it...

 

Shares was stopped like some weeks now and i would like to share one script...if is wrong we can delete this share..

 

 

Yeah, it can be with many ways.

 

Anyway, nice job.

Yeap thanks at all but can be like you said with many ways..

Edited by SweeTs
Posted (edited)

It's easier to put all chathandlers, admincommandlers, npc bypasses, even scripts in a single file, but it is not done like that.

 

You should fix the english on strings, there isn't a single sentence without a mistake.

 

Coding-wise, nothing to say.

Edited by Tryskell
Posted

broadCasUserInfo is needed to update character's status to Baron to his stats and target of other players.

Its not important ofc, none will notice but you should put it sinceits lightweight

Posted

http://www.maxcheaters.com/topic/128969-killedbarakiel-setnobles-party/

 

Useless to make a new file since there is already file that control these.. just 1 check and the code bellow

 

for(L2PcInstance p : player.getParty().getPartyMembers())

      if (!p.isNobless && p.getDistanceFromTarget(_barakielId) <= 2000)

         p.setNobless(true, true);

         p.updateplayerinfo();

Posted

http://www.maxcheaters.com/topic/128969-killedbarakiel-setnobles-party/

 

Useless to make a new file since there is already file that control these.. just 1 check and the code bellow

 

for(L2PcInstance p : player.getParty().getPartyMembers())

      if (!p.isNobless && p.getDistanceFromTarget(_barakielId) <= 2000)

         p.setNobless(true, true);

         p.updateplayerinfo();

Πως φαίνεται ο έμπειρος developer, να'σε καλά φίλε :*

  • 11 months later...
Posted

You can change the text with these lines:

 

1. You were too far away from Barakiel buddy. You've missed the chance of becoming Noblesse!

2. Congratulations! All party members have obtained Noblesse Status.

3. You are already Noblesse. Once It's done,It's forever buddy!

 

Nothing special but more presentable  :)  :P

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


  • Posts

    • 新品上线! 快来抢购最优质的 GMAIL 账号,享受 超低价格,注册年份范围从 2005–2022! 老版 Gmail.com 账号(已启用 2FA 双重验证) | 使用 MIX IP 注册 | 年份:2005 至 2022(可自行选择) | 账号可能包含邮件 | 格式:email:password:submail | 无需短信验证 | 已启用 IMAP | 附带 Submail | 价格起步:$0.9 我们还提供 Outlook、Firstmail、Rambler、Onet、Gazeta.pl、GMX、Yahoo、Proton、Web.de 等邮箱账号。 立即通过我们的网站或机器人购买! 活跃链接: 数字商品商店(网站):进入 商店 Telegram 机器人:进入 – 通过 Telegram 方便快捷地访问商店。 其他服务: Telegram Stars 购买机器人:进入 – 快速又实惠地购买 Telegram Stars。 SMM 面板:进入 – 推广您的社交媒体账号。 我们为您呈现当前 促销活动 与 特别优惠,适用于购买我们的商品和服务: 1. 优惠码 OCTOBER2025(8% 折扣)适用于九月在我们的商店(网站、机器人)购物!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获取 $1 商店余额或 10–20% 折扣 —— 注册后在我们网站的论坛贴中按照以下格式留言:"SEND ME BONUS, MY USERNAME IS..."。 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在网站(Support)中创建名为 “Get Trial Bonus” 的支持工单。 4. 每周在我们的 Telegram 频道和 Stars 购买机器人中举行 Telegram Stars 抽奖活动! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器:https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram:https://t.me/socnet_support ➡ WhatsApp:https://wa.me/79051904467 ➡ Discord:socnet_support ➡ ✉ 邮箱:solomonbog@socnet.store
    • 新品上线! 快来抢购最优质的 GMAIL 账号,享受 超低价格,注册年份范围从 2005–2022! 老版 Gmail.com 账号(已启用 2FA 双重验证) | 使用 MIX IP 注册 | 年份:2005 至 2022(可自行选择) | 账号可能包含邮件 | 格式:email:password:submail | 无需短信验证 | 已启用 IMAP | 附带 Submail | 价格起步:$0.9 我们还提供 Outlook、Firstmail、Rambler、Onet、Gazeta.pl、GMX、Yahoo、Proton、Web.de 等邮箱账号。 立即通过我们的网站或机器人购买! 活跃链接: 数字商品商店(网站):进入 商店 Telegram 机器人:进入 – 通过 Telegram 方便快捷地访问商店。 其他服务: Telegram Stars 购买机器人:进入 – 快速又实惠地购买 Telegram Stars。 SMM 面板:进入 – 推广您的社交媒体账号。 我们为您呈现当前 促销活动 与 特别优惠,适用于购买我们的商品和服务: 1. 优惠码 OCTOBER2025(8% 折扣)适用于九月在我们的商店(网站、机器人)购物!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获取 $1 商店余额或 10–20% 折扣 —— 注册后在我们网站的论坛贴中按照以下格式留言:"SEND ME BONUS, MY USERNAME IS..."。 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在网站(Support)中创建名为 “Get Trial Bonus” 的支持工单。 4. 每周在我们的 Telegram 频道和 Stars 购买机器人中举行 Telegram Stars 抽奖活动! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器:https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram:https://t.me/socnet_support ➡ WhatsApp:https://wa.me/79051904467 ➡ Discord:socnet_support ➡ ✉ 邮箱:solomonbog@socnet.store
    • New Products! Hurry up and grab the best GMAIL accounts at low prices with creation years from 2005–2022! Old Gmail.com accounts (with 2FA enabled) | Registered with MIX IP | Age: from 2005 to 2022 (choose the year you prefer) | Accounts may contain messages | Format: email:password:submail | No SMS verification required | IMAP enabled | Submail included | Price from: $0.9 We also offer email accounts for Outlook, Firstmail, Rambler, Onet, Gazeta.pl, GMX, Yahoo, Proton, and Web.de. Buy now in our store via website or bot! Active Links: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store directly through Telegram messenger. Other Services: Telegram Bot for purchasing Telegram Stars: Go – fast and profitable way to buy Telegram Stars. SMM Panel: Go – promote your social media accounts. We would like to present 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) during September! You can also use the first-time promo code: SOCNET (15% discount). 2. Get $1 to your store balance or a 10–20% discount — simply post your username after registration on our website using the following format "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing 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 & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • New Products! Hurry up and grab the best GMAIL accounts at low prices with creation years from 2005–2022! Old Gmail.com accounts (with 2FA enabled) | Registered with MIX IP | Age: from 2005 to 2022 (choose the year you prefer) | Accounts may contain messages | Format: email:password:submail | No SMS verification required | IMAP enabled | Submail included | Price from: $0.9 We also offer email accounts for Outlook, Firstmail, Rambler, Onet, Gazeta.pl, GMX, Yahoo, Proton, and Web.de. Buy now in our store via website or bot! Active Links: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store directly through Telegram messenger. Other Services: Telegram Bot for purchasing Telegram Stars: Go – fast and profitable way to buy Telegram Stars. SMM Panel: Go – promote your social media accounts. We would like to present 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) during September! You can also use the first-time promo code: SOCNET (15% discount). 2. Get $1 to your store balance or a 10–20% discount — simply post your username after registration on our website using the following format "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing 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 & 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