-
Posts
1,486 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Posts posted by Thelasthero
-
-
auth h etairia dn exo egatastasi 150 euros
eh ama ta pliroseis omos meta eisai gg 49 euro ton mina kai einai apo tis pio gamates eteries......
-
-
Guys, i have bought deticated pc from www.tophost.gr with os: Linux CentOS, they told me that i will have to install plesk, but i don't know how to do that. They also told me that i can connect my pc with putty. I found putty, connected to pc but i get only a black screen.
-
-
eh..... Check that in the code:
activeChar.teleToLocation(leaderx, leadery, leaderz); activeChar.sendMessage("You have been teleported to your leader!"); activeChar.getInventory().destroyItemByItemId("RessSystem", 3470, 1, activeChar, activeChar.getTarget()); activeChar.sendMessage("One GoldBar has dissapeared! Thank you!");
RessSystem?? xexe. Anyway very usefull like .ch thanks.
-
Matim is correct
Well.........
well, i copied the base code from portable aug., but some changes were needed to work... not only the imports, portable aug was made for gracia final...
-
To be honest, nothing special, just:
1. Open Eclipse
2. Create new class.
3. C/p protections (if/else) from other handler
4. Insert new packet.
Thats all, but anyway, can be useful for someone.
well, i copied the base code from portable aug., but some changes were needed to work... not only the imports, portable aug was made for gracia final...
-
Guys, i made an itemhandler (credits to me so don't start saying c/p and and and), that when you double click on gold dragon(3481), cancel augment window pops up, and the item GETS consumed(not 100%). <<I have tested it so give me feedback. I won't explain how to register an itemhandler or how to register it with configs... there are plenty of guides... (MADE IN L2J INTERLUDE)
Here you go: Create a file CancelAugPortable.java in java/net/sf/l2j/gameserver/handler/itemhandlers and paste:
/* * 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 2, 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package net.sf.l2j.gameserver.handler.itemhandlers; import net.sf.l2j.gameserver.handler.IItemHandler; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.serverpackets.ExShowVariationMakeWindow; public class CancelAugPortable implements IItemHandler { private static final int ITEM_IDS[] = { 3481 }; public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if (!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance)playable; if (activeChar.isInCombat()) { activeChar.sendMessage("You cant cancel Augment while you are attacking"); return; } else if (activeChar.isInJail()) { activeChar.sendMessage("You cant cancel Augment while you are in jail"); return; } else if (activeChar.isInOlympiadMode()) { activeChar.sendMessage("You cant cancel Augment while you are on olympiad game"); return; } else activeChar.sendPacket(new ExShowVariationCancelWindow()); } public int[] getItemIds() { return ITEM_IDS; } }
Idea was taken from TheEnd's share with portable augment.
-
I think this only server attacker.
well thanks, but i checked in my server core and this code already exists... i tried l2j attacker and works(not 100%, i have to wait sometime untill it work).
-
well, i will try this thanks, but i don't really think that fixes j killer......
-
Guys, i need fast fix for serk's attacker (shared not the one he sells). Please help me and Thanks!
-
well l2reliable had l2strict's pack and failed because of bugs..... how can we trust it is protected now..
-
you don't have to insult him. dude go make a better website. server features are kinda nice.... but when i saw the website i closed my internet explorer...
-
eh here if you become lvl 2 you don't need more lol. even kick you have. dude remove invul command from all gms to be pvp server. btw c/p from www.l2-gm.com
-
bump. i am making this and 1 more and pff close topic.
-
i think it is possible to change from navicat at table armors have a colum time change it to -1 but first you have to close your server
Thanks. Locked.
-
Guys i downloaded and added epic armor, but it is shadow item and dissapears. I tried to make it not to be shadow but i didn't manage to. Help ???
-
well thanks, i searched but did find lol. locked.
-
Now it does, because
activeChar.getInventory().destroyItemByItemId("GoldDragon", Config.HERO_ITEM_ID, Config.HERO_ITEM_COUNT, activeChar, activeChar.getTarget());
And yes it is a C/P, otherwise you wouldn't add useless protections..
dude please don't continue this, we are both spamming. it isn't copy paste man really, i am not so noob, i can make a simple code.
-
No it doesn't.
I hate it when ppl c/p stuff that don't even know to read.
Let's take a closer look.
if(activeChar.getInventory().getItemByItemId(Config.HERO_ITEM_ID) != null && activeChar.getInventory().getItemByItemId(Config.HERO_ITEM_ID).getCount() >= Config.HERO_ITEM_COUNT)
Here you say:
If the X item isn't null (null = 0) at the inv of the player and
if there are more or equal items at the inv
{
bla bla
}
So what do we have here?
A failure >_< You make almost the same check twice, and what's more, the item doesn't even get consumed.
This means, that the player can be hero for ever, if he has just 1 item.
Do you need a guide to press right click, team, create patch?
well sorry, i forgot 1 line. added. about the creating a patch, 1000 sorries i didn't see that...
actually not, it gets consumed normally i didn't forget something. AND IT IS NOT c/p .
-
OMG! A lot confusing now xD BTW i will try it !
well yes :( i can't find a guide how to make diff files.
-
updated added configs.... uh i need a guide on how to make diffs :@
-
why useless? you mean that everyone can became hero Free?
no it will take from players 1 gold dragon and it will make them hero. it is not useless man. lol. if someone has errors with hero item, that's easier.
P.S tested and works. adding configs......
-
can't be 'null' if item id >= 1
w8 i am compiling my pack to test it just 5 minutes...
[Help_Fast]Can't connect to deticated pc. (they told me something about plesk)
in Request Server Development Help [L2J]
Posted
well in putty i connect to my pc, and i know commands like cd dir, but when i press dir there are only three files. nothing more. and lol i bought pc, so i can use explorer programs..... how to do that.