-
Posts
52 -
Credits
0 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Posts posted by Blood Tears ♡
-
-
16 minutes ago, Tony360 said:
Melron gives you the solution already.
Check the +6 effect for extra passive and do the necessary changes and send the effect.
Ok i will say simple. How to put abnormal effect as passive skill. ( What are the necessary changes, that i dont know). I hope you will understand.
-
6 minutes ago, melron said:
find the method related to passive skill when armor is +6 set and add your effect there. ( dont forget to remove the effect in case of unequip)
P.s you could say some info like what pack you are using...
Im using acis pack the last rev, i have tried to add the effect but i think i do something wrong. I need an example code to see how exactly to put it.
-
How to put abnormal effect like stealth or stun to player when he got armor enchanted to +10 for example, and how to put the effect when equipping tattoo?
-
-
3 minutes ago, AchYlek said:
so use google search u will find lot of mxc pages of selling that paypal donate
Send here link i cant find
-
9 minutes ago, AchYlek said:
The guy is offline from 1 year .. i try to contact with him but no answer.
-
Im looking for paypal system like this one. Write here or pm me with offers.
-
Im looking for newbie manager that have this opetions:
Level up : 80
Get classes: 1/2/3
Choose items: A/S Grade armors weps
Teleport to main town
-
2 minutes ago, melron said:
You should look again this guide.. if your chronicle is interlude you need to edit your client. Otherwise
<html noscrollbar>
Yes im using Interlude Client, and could you tell me where i can find this arrows?
-
-
How can i find the Chat Window arrows?
Image -
You can do it better :P
-
1 hour ago, SailFpO said:
Request from: Blood Tears ♡
Let me know if you need configs.
code:
Source: ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/actor/instance/Trader.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/Trader.java (nonexistent) +++ java/net/sf/l2j/gameserver/model/actor/instance/Trader.java (working copy) @@ -0,0 +1,72 @@ +package net.sf.l2j.gameserver.model.actor.instance; + +import java.util.StringTokenizer; + +import net.sf.l2j.gameserver.model.actor.template.NpcTemplate; +import net.sf.l2j.gameserver.network.SystemMessageId; +import net.sf.l2j.gameserver.network.serverpackets.SystemMessage; + +public class Trader extends Folk +{ + private static final int[] REQUIRE_ITEM_FOR_EX = + { + 3031, //the item that the user must have to exchange it with the REWARD_ITEM + 10 //the count + }; + private static final int[] REWARD_ITEM = + { + 1872, //the item that will get after the exchange + 1 //the count + }; + + private static final int REQUIRE_EQUIP_ITEM_CNT = 1; //the count of items that the npc will consume to give the equip item, the id is the REWARD_ITEM[0] + private static final int EQUIP_ITEM_ID[] = + { + 7575, //the equipment item + 1 //the count + }; + + + + public Trader(int objectId, NpcTemplate template) + { + super(objectId, template); + } + + @Override + public void onBypassFeedback(Player player, String command) + { + StringTokenizer st = new StringTokenizer(command, " "); + String currentCommand = st.nextToken(); + + if (currentCommand.startsWith("exchange")) + { + if (!player.destroyItemByItemId("ex", REQUIRE_ITEM_FOR_EX[0], REQUIRE_ITEM_FOR_EX[1], null, true)) + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.NOT_ENOUGH_REQUIRED_ITEMS)); + else + player.addItem("rew", REWARD_ITEM[0], REWARD_ITEM[1], null, true); + } + else if (currentCommand.startsWith("buy")) + { + if (!player.destroyItemByItemId("ex", REWARD_ITEM[0], REQUIRE_EQUIP_ITEM_CNT, null, true)) + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.NOT_ENOUGH_REQUIRED_ITEMS)); + else + player.addItem("rew", EQUIP_ITEM_ID[0], EQUIP_ITEM_ID[1], null, true); + } + + super.onBypassFeedback(player, command); + } + + @Override + public String getHtmlPath(int npcId, int val) + { + String filename = ""; + if (val == 0) + filename = "" + npcId; + else + filename = npcId + "-" + val; + + return "data/html/mods/Trader/" + filename + ".htm"; + } + +} \ No newline at end of file Npc XML: ### Eclipse Workspace Patch 1.0 #P aCis_datapack Index: data/xml/npcs/50000-50999.xml =================================================================== --- data/xml/npcs/50000-50999.xml (revision 4) +++ data/xml/npcs/50000-50999.xml (working copy) @@ -111,4 +111,42 @@ <skill id="4416" level="18"/> </skills> </npc> + + <npc id="50009" idTemplate="30519" name="Trader" title="Crappy Trader"> + <set name="usingServerSideName" val="true"/> + <set name="usingServerSideTitle" val="true"/> + <set name="level" val="70"/> + <set name="radius" val="7"/> + <set name="height" val="18"/> + <set name="rHand" val="0"/> + <set name="lHand" val="0"/> + <set name="type" val="Trader"/> + <set name="exp" val="0"/> + <set name="sp" val="0"/> + <set name="hp" val="2444.46819"/> + <set name="mp" val="1345.8"/> + <set name="hpRegen" val="7.5"/> + <set name="mpRegen" val="2.7"/> + <set name="pAtk" val="688.86373"/> + <set name="pDef" val="295.91597"/> + <set name="mAtk" val="470.40463"/> + <set name="mDef" val="216.53847"/> + <set name="crit" val="4"/> + <set name="atkSpd" val="253"/> + <set name="str" val="40"/> + <set name="int" val="21"/> + <set name="dex" val="30"/> + <set name="wit" val="20"/> + <set name="con" val="43"/> + <set name="men" val="20"/> + <set name="corpseTime" val="7"/> + <set name="walkSpd" val="50"/> + <set name="runSpd" val="120"/> + <set name="dropHerbGroup" val="0"/> + <ai type="DEFAULT" ssCount="0" ssRate="0" spsCount="0" spsRate="0" aggro="0" canMove="true" seedable="false"/> + <skills> + <skill id="4045" level="1"/> + <skill id="4416" level="18"/> + </skills> + </npc> </list> \ No newline at end of file Npc HTML: ### Eclipse Workspace Patch 1.0 #P aCis_datapack Index: data/html/mods/trader/50009.htm =================================================================== --- data/html/mods/trader/50009.htm (nonexistent) +++ data/html/mods/trader/50009.htm (working copy) @@ -0,0 +1,8 @@ +<html><body> + <center> + Your custom staff here. + + <button value="exchange" action="bypass npc_%objectId%_exchange" height=15 width=45 back="sek.cbui94" fore="sek.cbui92"> + <button value="buy" action="bypass npc_%objectId%_buy" height=15 width=45 back="sek.cbui94" fore="sek.cbui92"> + +</body></html> \ No newline at end of file
You have to create a new folder in data/html/mods with name trader and inside create a new html with the npc id as name. (in my case was 50009), then paste the html code
Thank you.
-
I need simple npc for l2jacis , I want to be something like this:
it will requre item "X" to get item "Y", and the second option is to buy equipment with item "Y" -
Hi all here is the template of l2gold.info
I think its time to stop copy the REAL l2 gold server, and to start make new server with more unique features.Demo: http://l2gold.info/index.html
Download: Click
- 1
-
Get rich for less than 2 days, I'd say that you sound like an infomercial, but not a good one, like Slap chop. More Shake Weight-y.
-
Check your evn.int
-
This may help you.
-
Its more complicated.
-
Just now, FactorX said:
Omg...max is 65535?
As i remember yes.
-
Too big id of the production item .. use lower...
-
use this example
<?xml version='1.0' encoding='utf-8'?> <list> <item id="10030" type="Armor" name="Dino Heavy Helm"> <set name="icon" val="icon.armor_helmet_i00" /> <set name="default_action" val="equip" /> <set name="bodypart" val="head" /> <set name="crystal_type" val="S" /> <set name="crystal_count" val="268" /> <set name="material" val="BONE" /> <set name="weight" val="550" /> <set name="price" val="5370000" /> <set name="is_tradable" val="true" /> <set name="is_dropable" val="true" /> <set name="is_destroyable" val="true" /> <set name="is_sellable" val="true" /> <set name="is_depositable" val="true" /> <for> <add order="0x10" stat="pDef" val="83" /> <enchant order="0x0C" stat="pDef" val="0" /> </for> </item> <item id="10031" type="Armor" name="Dino Heavy Chest"> <set name="icon" val="icon.armor_t88_u_i00" /> <set name="default_action" val="equip" /> <set name="armor_type" val="HEAVY" /> <set name="bodypart" val="chest" /> <set name="crystal_type" val="S" /> <set name="crystal_count" val="715" /> <set name="material" val="SCALE_OF_DRAGON" /> <set name="weight" val="7620" /> <set name="price" val="14300000" /> <set name="is_tradable" val="true" /> <set name="is_dropable" val="true" /> <set name="is_destroyable" val="true" /> <set name="is_sellable" val="true" /> <set name="is_depositable" val="true" /> <for> <add order="0x10" stat="pDef" val="205" /> <enchant order="0x0C" stat="pDef" val="0" /> </for> </item> <item id="10032" type="Armor" name="Dino Heavy Legs"> <set name="icon" val="icon.armor_t88_l_i00" /> <set name="default_action" val="equip" /> <set name="armor_type" val="HEAVY" /> <set name="bodypart" val="legs" /> <set name="crystal_type" val="S" /> <set name="crystal_count" val="448" /> <set name="material" val="SCALE_OF_DRAGON" /> <set name="weight" val="3260" /> <set name="price" val="8960000" /> <set name="is_tradable" val="true" /> <set name="is_dropable" val="true" /> <set name="is_destroyable" val="true" /> <set name="is_sellable" val="true" /> <set name="is_depositable" val="true" /> <for> <add order="0x10" stat="pDef" val="128" /> <enchant order="0x0C" stat="pDef" val="0" /> </for> </item> <item id="10033" type="Armor" name="Dino Heavy Gloves"> <set name="icon" val="icon.armor_t88_g_i00" /> <set name="default_action" val="equip" /> <set name="bodypart" val="gloves" /> <set name="crystal_type" val="S" /> <set name="crystal_count" val="179" /> <set name="material" val="LEATHER" /> <set name="weight" val="540" /> <set name="price" val="3580000" /> <set name="is_tradable" val="true" /> <set name="is_dropable" val="true" /> <set name="is_destroyable" val="true" /> <set name="is_sellable" val="true" /> <set name="is_depositable" val="true" /> <for> <add order="0x10" stat="pDef" val="55" /> <enchant order="0x0C" stat="pDef" val="0" /> </for> </item> <item id="10034" type="Armor" name="Dino Heavy Boots"> <set name="icon" val="icon.armor_t88_b_i00" /> <set name="default_action" val="equip" /> <set name="bodypart" val="feet" /> <set name="crystal_type" val="S" /> <set name="crystal_count" val="179" /> <set name="material" val="LEATHER" /> <set name="weight" val="1110" /> <set name="price" val="3580000" /> <set name="is_tradable" val="true" /> <set name="is_dropable" val="true" /> <set name="is_destroyable" val="true" /> <set name="is_sellable" val="true" /> <set name="is_depositable" val="true" /> <for> <add order="0x10" stat="pDef" val="55" /> <enchant order="0x0C" stat="pDef" val="0" /> </for> </item> </list>
-
11 minutes ago, AryaStark said:
Thanks for answering. My other question is : What you mostly need to open a server RAM or processor?
RAM, but if you have 1-2k players, 32gb RAM is ok.
-
Yes, this dedicated will cover your needs.
How to add abnormal effect to char
in Request Server Development Help [L2J]
Posted
Ok as i see no one want to write 10 lines code, i need to waste 1 day to figure out how to do it, but ok. Topic can be locked.