-
Posts
8,941 -
Credits
0 -
Joined
-
Last visited
-
Days Won
25 -
Feedback
0%
Community Answers
-
SweeTs's post in User Commands was marked as the answer
private static final int[] COMMAND_IDS = { 52 };
That's the id from the core side.
commandname-e.dat from system folder
nbr id name 53 52 unstuck -
SweeTs's post in Add Effect When Player Insideradius was marked as the answer
You can do the trick with for loop.
for (L2PcInstance player : getKnownList().getKnownTypeInRadius(L2PcInstance.class, 300)) -
SweeTs's post in Adding Or Removing Items From Non-Custom Npc was marked as the answer
Like he said. Shift click on the npc to get ID of the npc. Then, you go to merchant folder and you search for that ID. Open it and see the bypass
<a action="bypass -h npc_%objectId%_Buy 1"> Buy stands for merchant, multisell - obviously for multisell. The number is the ID of the list, so you have to find the buylist.xml / .sql or w.e it is on H5, name of the file may be different as well. Never used H5 / l2jserver, so no idea :P
When you find it, then you can add/remove whatever you wish, for instance
<buylist id="1" npcId="30001"> <product id="1" price="883" /> <product id="4" price="883" /> <product id="11" price="883" /> <product id="13" price="883" /> <product id="3" price="14375" /> <product id="152" price="9280" /> <product id="12" price="14375" /> <product id="215" price="14375" /> <product id="14" price="14375" /> <product id="5" price="14375" /> <product id="153" price="21275" /> <product id="1333" price="62215" /> <product id="66" price="62215" /> <product id="67" price="62215" /> <product id="122" price="62215" /> <product id="154" price="62215" /> <product id="216" price="62215" /> <product id="271" price="62215" /> <product id="2" price="156400" /> <product id="218" price="156400" /> <product id="272" price="156400" /> <product id="15" price="156400" /> <product id="5284" price="280600" /> </buylist> Yes, you can edit xml / multisell and reload it in realtime from the game.
-
SweeTs's post in Nobless Trader (L2Jfrozen) was marked as the answer
if st.getPlayer().getLevel() >= 70 and count > 1:
Mehehe
-
SweeTs's post in L2J Frozen ? was marked as the answer
"addapt".. Ohh my :troll:
For example.. logical thinking .. seems hard to some ppl.. error says it all : column's count doesn't match.
your table has 20 columns
sql file has 18 or 22 columns - ohh my god, what to do!? - delete from the query 2 records or add them
Count tables / compare them / add or delete and execute. Else, add it by hand / use existing record and change id / type / colision / heigh / w.e is necessary.
-
SweeTs's post in Core Side - Mobs Respawn Time was marked as the answer
L2Spawn spawn = new L2Spawn(template); spawn.setLocx(target.getX()); spawn.setLocy(target.getY()); spawn.setLocz(target.getZ()); spawn.setHeading(activeChar.getHeading()); spawn.setRespawnDelay(respawnTime); -
SweeTs's post in [Solved] Commands Which Work In The Same Way That The Getkarma ()? was marked as the answer
activeChar.setKarma(getKarma() + 100);
-
SweeTs's post in L2Jacis Buffs Problems was marked as the answer
First of all, you are using "L2Gold" pack by Trance, we won't search for it and download just to help you.
Secondly, you did not post the buffer instance.
Thirdly, have you only problem with skills like level 130, meaning they are enchanted, or with any buff?
Edit:
The problem: skill 1363 is Chant of Victory, and as you know it's not enchantable - the skill doesn't exist. Change the htm to 1363 1
ID level
1363 1 - correct
1363 130 - wrong, such skill doesn't exist, bam error
-
SweeTs's post in Instanced Teleporter was marked as the answer
We won't code for you. You only ask and ask for ready code, it's not working like that. Even Tessa won't help you :happyforever:
I won't even explain you how to make it, since you won't understand a single thing, but anyway.. I will tell you how to make it
You can take as a base the original L2TeleportInstance, clean it a bit, put a check about party and it's members amount on onBypassFeedback under you command, if it's null or < 5 then return; Then you have to make a for loop to check for the items @ party members inventory, if they don't have it return, if everything is fine then 2nd for loop with teleport.
Bam done. Piece of cake :D
-
SweeTs's post in Clan Reputation Item Part2 was marked as the answer
I was sure you wont make it work :D
Register the handler. Then use it on the items xml.
-
SweeTs's post in [Acis] Java Code Help was marked as the answer
frozen or l2j, it's the same as aCis .. The code, line, is the same in each pack. CharacterCreate.java
There is something like newChar.setTitle(" ");
Write w/e you want.
-
SweeTs's post in [Acis] Question About Escape.java was marked as the answer
activeChar.doCast(SkillTable.getInstance().getInfo(2099, 1)
Skill id 2099 level 1
-
SweeTs's post in Active Skill On Weapon was marked as the answer
Add this line to the weapon's xml
<set name="item_skill" val="1085-3;" /> -
SweeTs's post in L2Multifunctionzone was marked as the answer
No idea what have you done, but dont do it next time. Paste the original file and enjoy.
valueSplit = value.split(","); -
SweeTs's post in Command was marked as the answer
You think ? :happyforever:
Go to .../gameserver/handler/ and open VoicedCommandHandler.java and check if it's registered, like
registerVoicedCommandHandler(new Chaos());
If not, then add it and press Ctrl+Shift+O to organize import - otherwise you will have error (missing import).
-
SweeTs's post in Chaos Event was marked as the answer
Yup, it's shared. I even shared it :happyforever:
Google is such an OP thing.
http://bit.ly/1xhUEzC
-
SweeTs's post in Force Attack On Multfunctionzone was marked as the answer
You are in wrong section, anyway :P
Add a check (return true) about your zone @ isAutoAttackable( method ;)
-
SweeTs's post in Any Way To Disable Some Sieges? was marked as the answer
Remove the record from the database, castle table ;)
-
SweeTs's post in Problem With Tvt Event Code (Acis) was marked as the answer
Your file name is EvestState, must be EventState. Just rename the file.
-
SweeTs's post in Buffer Question was marked as the answer
So find that bypass responsible for your "scheme" button and do the same. You can also add a check inside the method, like
if (action.equals("add")) { if (player.getInventory().getItemsByItemId(57) == null) return; HTML_MESSAGE += "You can add <font color=LEVEL>" + (MAX_SCHEME_BUFFS - BUFF_COUNT) + "</font> Buffs and <font color=LEVEL>" + (MAX_SCHEME_DANCES - DANCE_SONG) + "</font> Dances more!"; String QUERY = "SELECT * FROM npcbuffer_buff_list WHERE buffType IN (" + generateQuery(BUFF_COUNT, DANCE_SONG) + ") AND canUse=1 ORDER BY Buff_Class ASC, id"; PreparedStatement getBuffCount = con.prepareStatement(QUERY); ResultSet rss = getBuffCount.executeQuery(); while (rss.next()) { String name = SkillTable.getInstance().getInfo(rss.getInt("buffId"), rss.getInt("buffLevel")).getName(); name = name.replace(" ", "+"); buffList.add(name + "_" + rss.getInt("buffId") + "_" + rss.getInt("buffLevel")); } } ) Else, you can hardcode it in another way, like if player dont have the item, send him normal.htm (with 2 category buffs). If player has the item then send him premium.htm (with 4 category buffs). You got the main point, now just add the checks @ correct places :P