Jump to content

Blood Tears ♡

Members
  • Posts

    52
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Blood Tears ♡

  1. 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.

  2. 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?

  3. 1 hour ago, SailFpO said:

    Request from: Blood Tears ♡

    Let me know if you need configs.

    code:

      Reveal hidden contents
    
    
    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.

  4. 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>

     

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